SourceUnit
Source snapshots in result.sources, keyed by their identifiers.
dataclass linescope.model.SourceUnit[source]
Preserve the full source text observed during collection.
| Attributes |
Stable identifier used by measurements and navigation links. Original file path or notebook cell label shown in the report. Complete source text frozen when the snapshot is captured.
kind : str | SourceKind Source category normalized to SourceKind at construction. One-based position in the original notebook, counting all cell types. None means the frontend did not expose an unambiguous position. Frontend notebook cell identifier, when available. Retain this identity across edits without treating execution counts as notebook positions. |
See Also
Combine portable source snapshots with backend-independent run data.
Locate a one-based line and zero-based character column in a snapshot.
Identify a statically resolved project definition.