Skip to main content

build_scope_chain

Function build_scope_chain 

Source
pub fn build_scope_chain(node: Node<'_>, source: &str) -> String
Expand description

Walk up the AST parent chain collecting structural container names.

Produces a scope chain like "impl_item Foo > fn forward" by identifying structural containers (impl blocks, classes, modules, namespaces) and extracting their names. Tries the name field first, then type (for Rust impl_item which uses type instead of name).