Skip to content

SymbolDefinition

Inspect result.symbols for statically resolved project definitions. Each record identifies its snapshot and the location where the definition begins.

dataclass linescope.model.SymbolDefinition[source]

Identify a statically resolved project definition.

Attributes

kind : str | SymbolKind

Definition category normalized to SymbolKind at construction.

qualified_name : str

Lexical name including enclosing classes and functions.

source_id : str

Identifier of the snapshot containing the definition.

line : int

One-based line where the definition begins.

column : int | None

Zero-based character offset, or None when unavailable.


See Also

SourceLocation

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

SourceUnit

Preserve the full source text observed during collection.

SymbolRef

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