API reference
python:astx:astx.SourceLocation
class SourceLocation
SourceLocation(line: int, col: int)
Source: packages/astx/src/astx/base.py:57
Declared as: python:astx:astx.base.SourceLocation
Source coordinates attached to AST nodes.
Attributes
-
line — Type: int
-
col — Type: int
Methods
-
__init__ — Initialize the source location.
-
__repr__ — Return a representation of the source location.
-
__str__ — Return a string representation of the source location.