pub type TraceClassMemberOutput = ClassMemberTrace;Expand description
Concrete class / enum / store member trace output (the trace_export
fallback when the name is a member rather than a top-level export). See
issue #1744.
Aliased Type§
pub struct TraceClassMemberOutput {
pub file: PathBuf,
pub member_name: String,
pub member_kind: String,
pub owner_export: String,
pub owner_namespace: SemanticNamespace,
pub owner_is_used: bool,
pub owner_file_reachable: bool,
pub owner_is_entry_point: bool,
pub owner_direct_references: Vec<ExportReference>,
pub owner_re_export_chains: Vec<ReExportChain>,
pub reason: String,
pub semantic: Option<SemanticSymbolTrace>,
}Fields§
§file: PathBufThe file containing the member.
member_name: StringThe member name being traced.
member_kind: StringThe member kind: class-method, class-property, enum-member,
store-member, or namespace-member.
owner_export: StringThe export that declares this member (the class / enum / store name).
owner_namespace: SemanticNamespaceNamespace whose references credit the owning export, mirroring
[ExportTrace::namespace] for the export this member is declared on.
owner_is_used and owner_direct_references describe that lane, so a
member of a value export credited only by a bound import type reports
type here. semantic.target.namespace names the lane the checker
proof covers and can therefore differ. Producers always emit the field;
the schema permits omission by payloads created before the owner
namespace was exposed.
owner_is_used: boolWhether the owning export is considered used.
owner_file_reachable: boolWhether the file is reachable from an entry point.
owner_is_entry_point: boolWhether the file is an entry point.
owner_direct_references: Vec<ExportReference>Files that reference the owning export directly.
owner_re_export_chains: Vec<ReExportChain>Re-export chains through which the owning export is reachable. Populated so a machine consumer can tell “used via a barrel” (empty direct refs but non-empty chains) from “genuinely unreferenced”.
reason: StringHuman-readable reason summary plus the follow-up command to inspect the member finding.
semantic: Option<SemanticSymbolTrace>Exact checker-backed member references when type-aware tracing is enabled.