base
¶
nodes.base
contains definition of node
class.
SourceInfo
¶
Bases: ModelType
Source information for the node.
line
¶
line() -> int
Get the line number of the start location within the string; the first line is line 1, newlines start new rows.
column
¶
column() -> int
Get the column number of the start location within the string; the first column is column 1, newlines reset the column number to 1.
end_line
¶
end_line() -> int
Get the line number of the end location within the string; the first line is line 1, newlines start new rows.