API reference
python:arxjit:arxjit.Diagnostic
class Diagnostic
Diagnostic(severity: DiagnosticSeverity, message: str, filename: str, line: int | None, column: int | None, code: str | None = None)
Source: packages/arxjit/src/arxjit/diagnostics.py:27
Declared as: python:arxjit:arxjit.diagnostics.Diagnostic
One structured diagnostic reported by arxjit.
Attributes
-
severity — The severity level of the diagnostic.; Type: DiagnosticSeverity
-
message — The human-readable diagnostic message.; Type: str
-
filename — The file defining the decorated function, or "<unknown>" when the source cannot be attributed.; Type: str
-
line — One-based source line in
filename, when known.; Type: int | None -
column — One-based Unicode character column in
line, when known. Python ASTcol_offsetvalues (zero-based UTF-8 byte offsets) must be converted to this representation at the boundary that produces the diagnostic, never stored raw.; Type: int | None -
code — Stable diagnostic code, e.g. "AJ001", when assigned.; Type: str | None