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

Direct supertypes

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

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
getStartLine

Gets the line on which this element starts.

from Locatable