Bases: object
Bases: object
The begin coordinates.
Settings this to a tuple will set the first to the row and the latter to the col.
This returns a SmartList with the row and the column.
The begin column.
The begin row.
The column.
Setting this to a tuple will set the first to the begin and the latter to the end.
This returns a SmartList with the begin and end column.
The end.
Settings this to a tuple will set the first to the row and the latter to the col.
This returns a SmartList with the row and column.
The end column.
The end row.
The line.
Setting the line automatically updates the column as well.
Returns a str() object with the line.
The row.
Setting this to a tuple will set the first to the begin and the latter to the end.
This returns a SmartList with the begin and end row.
Bases: object
Format the string, expects the extra whitespace to be removed already
Strip all whitespace so we can begin formatting
Convert the tokens back to a string
Bases: dict
Bases: object
Set the end token in case of children.
Should either be a token or a tuple with TokenType and token which will be a string.
The parent. TokenOffsets
Bases: formatter.offsets.TokenOffset
Bases: object
Set the end token in case of children.
Should either be a token or a tuple with TokenType and token which will be a string.
The parent. TokenOffsets
Bases: object
The begin coordinates.
Settings this to a tuple will set the first to the row and the latter to the col.
This returns a SmartList with the row and the column.
The begin column.
The begin row.
The column.
Setting this to a tuple will set the first to the begin and the latter to the end.
This returns a SmartList with the begin and end column.
The end.
Settings this to a tuple will set the first to the row and the latter to the col.
This returns a SmartList with the row and column.
The end column.
The end row.
The line.
Setting the line automatically updates the column as well.
Returns a str() object with the line.