type |
the type of the node (e.g. “expression”). |
String |
text |
the text content of the node |
String |
fromLine |
the line at which the node starts |
Numeric |
fromPositionInLine |
the column in the line at which the node starts |
Numeric |
toLine |
the line at which the node ends |
Numeric |
toPositionInLine |
the column in the line at which the node ends |
Numeric |
depth |
the distance from the root |
Numeric |
lateralIndex |
the index of the node amongst its siblings |
Numeric |
childrenCount |
the number of children of this node |
Numeric |
root |
the root syntax node in the tree |
SyntaxNode |