mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
JS: More qldoc
This commit is contained in:
@@ -410,7 +410,12 @@ class BigIntLiteral extends @bigintliteral, Literal {
|
||||
class StringLiteral extends @stringliteral, Literal {
|
||||
override string getStringValue() { result = getValue() }
|
||||
|
||||
/** Gets the value of this string literal parsed as a regular expression. */
|
||||
/**
|
||||
* Gets the value of this string literal parsed as a regular expression, if possible.
|
||||
*
|
||||
* All string literals have an associated regular expression tree, provided it can
|
||||
* be parsed without syntax errors.
|
||||
*/
|
||||
RegExpTerm asRegExp() { this = result.getParent() }
|
||||
}
|
||||
|
||||
|
||||
@@ -855,6 +855,9 @@ abstract class RegExpPatternSource extends DataFlow::Node {
|
||||
*/
|
||||
abstract DataFlow::SourceNode getARegExpObject();
|
||||
|
||||
/**
|
||||
* Gets the root term of the regular expression parsed from this pattern.
|
||||
*/
|
||||
abstract RegExpTerm getRegExpTerm();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user