CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (changelog, source)
Search

Class Make::RegExpRoot

A branch in a disjunction that is the root node in a literal, or a literal whose root node is not a disjunction.

Import path

import codeql.regex.nfa.NfaUtils

Direct supertypes

Indirect supertypes

Predicates

isRelevant

Holds if this root term is relevant to the ReDoS analysis.

Inherited predicates

getAChild

Gets a child term of this term.

from RegExpTerm
getChild

Gets the ith child term of this term.

from RegExpTerm
getLastChild

Gets the last child term of this element.

from RegExpTerm
getNumChild

Gets the number of child terms of this term.

from RegExpTerm
getParent

Gets the parent term of this regular expression term, or the regular expression literal if this is the root term.

from RegExpTerm
getRawValue

Gets the raw source text of this term.

from RegExpTerm
getRootTerm

Gets the outermost term of this regular expression.

from RegExpTerm
getSuccessor

Gets the regular expression term that is matched (textually) after this one, if any.

from RegExpTerm
hasLocationInfofrom RegExpTerm
isRootTerm

Holds if this is the root term of a regular expression.

from RegExpTerm
isUsedAsRegExp

Holds if this term is part of a regular expression literal, or a string literal that is interpreted as a regular expression.

from RegExpTerm
toStringfrom RegExpTerm

Charpred