Class Line
A line of text (code, comment, or whitespace) in a source file.
Note that textual information is only available for snapshots that have been
extracted with the --extract-program-text
flag.
Import path
import javascript
Indirect supertypes
Predicates
getIndentChar | Gets the indentation character used by this line. |
getLocation | Gets this element’s location. |
getTerminator | Gets the terminator character(s) of this line. |
getText | Gets the text of this line, excluding the terminator character(s). |
getTopLevel | Gets the toplevel element this line belongs to. |
toString | Gets a textual representation of this element. |
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 |
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 |