Skip to main content

Module trace

Module trace 

Source
Expand description

Read-only trace helpers exposed through the engine boundary.

Structs§

ClassMemberTrace
Result of tracing a class / enum / store MEMBER: the --trace FILE:NAME fallback when NAME is not a top-level export but a member declared on one (issue #1744). The trace runs on the module graph only, so it reports the OWNING export’s reachability and usage (the gating precondition for member-level crediting) plus a pointer to the right --unused-*-members command, rather than per-member crediting provenance.
CloneTrace
Result of tracing a clone: all groups containing the code at a source location or addressed by a stable clone fingerprint.
DependencyTrace
Result of tracing a dependency: where it is used.
ExportReference
A direct reference to an export.
ExportTrace
Result of tracing an export: why it is considered used or unused.
FileTrace
Result of tracing all edges for a file.
ImpactClosureGap
One coordination-gap entry in an ImpactClosureTrace.
ImpactClosureTrace
Result of computing the impact closure for a single file as the seed.
ImportPathHop
One import edge on an ImportPathTrace.
ImportPathTrace
Result of asking how one module reaches another: the shortest import path.
PipelineTimings
Pipeline performance timings.
ReExportChain
A re-export chain showing how an export is propagated.
TraceProvenance
Which configs name which files and which dependency names, collected by one analysis for the trace output.
TraceSource
A config that names a traced file or a traced dependency, and the key that names it.
TracedCloneGroup
One clone group returned from a clone trace request.
TracedExport
An export with usage information.
TracedReExport
A re-export with source information.

Enums§

ImportPathEndpoint
Which endpoint of a --path request did not resolve to exactly one module.
SemanticClassMethodResolutionError
Stable reason why an exact class-method target cannot be resolved.

Functions§

reconcile_semantic_trace_reachability
Reconcile checker-backed trace evidence with graph reachability while retaining non-crediting evidence for inspection.
semantic_symbol_for_class_member
Resolve the source identity for an exact semantic class-member query.
semantic_symbol_for_exact_class_method
Resolve one exact exported class method for semantic impact analysis.
semantic_symbol_for_export
Resolve the source identity for an exact semantic export query.
trace_class_member
Trace a class / enum / store member (the --trace FILE:MEMBER fallback when MEMBER is not a top-level export). See issue #1744.
trace_clone
Trace duplicate-code groups that contain a source location.
trace_clone_by_fingerprint
Trace a duplicate-code group by its stable content fingerprint.
trace_dependency
Trace where a dependency is used.
trace_eager_import_path
Trace the shortest import path over eager edges only: static imports that carry a runtime value. The route explains why to_path loads before from_path runs.
trace_export
Trace why an export is considered used or unused.
trace_file
Trace all graph edges for a file.
trace_impact_closure
Trace the impact closure for a file.
trace_import_path
Trace the shortest import path between two modules.
trace_import_path_with_session
Trace the shortest import path through an existing analysis session. With eager_only, the walk follows static value imports only.