Class Locatable
A program element with a location.
Import path
import javascript
Direct supertypes
Known direct subtypes
- AddsUntrustedUrl
- Attribute
- AttributeDefinition
- Comment
- CommentNode
- Configuration
- ConfigurationObject
- ControlFlowNode
- CustomAbstractValueDefinition
- Dependency
- DirectiveTarget
- Element
- Element
- ElementDefinition
- Error
- FirstLineOf
- GlobalDeclaration
- JSDoc
- JSDocTypeExprParent
- JsonValue
- LastLineOf
- Line
- NgSourceProvider
- NodeInStmtContainer
- PathExpr
- RegExpParent
- RegExpTerm
- TemplatePlaceholderTag
- Test
- TextNode
- Token
Predicates
getAPrimaryQlClass | Gets the primary QL class for the Locatable. |
getEndLine | Gets the line on which this element ends. |
getFile | Gets the file this program element comes from. |
getLocation | Gets this element’s location. |
getNumLines | Gets the number of lines covered by this element. |
getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. |
getStartLine | Gets the line on which this element starts. |
toString | Gets a textual representation of this element. |