Class NodeInStmtContainer
A node that occurs inside a function or top-level or is itself a top-level.
Specifically, this is the union type of ControlFlowNode, TypeAnnotation,
and TopLevel.
Import path
import semmle.javascript.internal.StmtContainersDirect supertypes
Indirect supertypes
Known direct subtypes
Predicates
| getContainer | Gets the function or toplevel to which this node belongs. |
Inherited predicates
| getAPrimaryQlClass | Gets the primary QL class for the Locatable. | from Locatable |
| getEndLine | Gets the line on which this element ends. | from Locatable |
| getFile | Gets the file this program element comes from. | from Locatable |
| getLocation | Gets this element’s location. | from Locatable |
| getNumLines | Gets the number of lines covered by this element. | from Locatable |
| getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. | from Locatable |
| getStartLine | Gets the line on which this element starts. | from Locatable |
| toString | Gets a textual representation of this element. | from Locatable |