Skip to main content

trace_class_member

Function trace_class_member 

Source
pub fn trace_class_member(
    graph: &ModuleGraph,
    root: &Path,
    file_path: &str,
    member_name: &str,
) -> Option<ClassMemberTrace>
Expand description

Trace a class / enum / store MEMBER when --trace FILE:NAME’s NAME is not a top-level export but a member declared on one (issue #1744). Runs on the graph only, so it reports the OWNING export’s reachability and usage (the gating precondition for member crediting) plus a pointer to the right --unused-*-members command, not per-member crediting provenance.