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

Class Locatable

A program element with a location.

Import path

import javascript

Direct supertypes

Known direct subtypes

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.