mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Python: Add missing QLDoc for isUnicode
This commit is contained in:
@@ -627,6 +627,10 @@ deprecated class StrConst = StringLiteral;
|
|||||||
/** A string constant. */
|
/** A string constant. */
|
||||||
class StringLiteral extends Str_, ImmutableLiteral {
|
class StringLiteral extends Str_, ImmutableLiteral {
|
||||||
/* syntax: "hello" */
|
/* syntax: "hello" */
|
||||||
|
/**
|
||||||
|
* Holds if this string is a unicode string, either by default (e.g. if Python 3), or with an
|
||||||
|
* explicit prefix.
|
||||||
|
*/
|
||||||
predicate isUnicode() {
|
predicate isUnicode() {
|
||||||
this.getPrefix() = unicode_prefix()
|
this.getPrefix() = unicode_prefix()
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user