Skip to content

SourceLocation

source_id selects a snapshot in result.sources; line is one-based.

dataclass linescope.model.SourceLocation[source]

Locate a one-based line and zero-based character column in a snapshot.

Attributes

source_id : str

Identifier of the snapshot containing this location.

line : int

One-based source line number.

column : int | None

Zero-based character offset, or None when unavailable.

symbol : str | None

Resolved symbol label, or None when unavailable.


See Also

LineStats

Aggregate a visible source line without inventing unsupported hit counts.

SourceUnit

Preserve the full source text observed during collection.

SymbolRef

Link one source token, rather than an entire line, to a definition.