API reference
python:irx:irx.diagnostics.SourceLocation
class SourceLocation
SourceLocation(line: int | None = None, col: int | None = None, end_line: int | None = None, end_col: int | None = None)
Source: packages/irx/src/irx/diagnostics.py:124
One best-effort source location.
Attributes
-
line — Source line coordinate.; Type: int | None
-
col — Source column coordinate.; Type: int | None
-
end_line — End line.; Type: int | None
-
end_col — End col.; Type: int | None
Methods
-
__init__ —
-
format — Render one location without module identity.
-
is_known — Return whether any source position is known.