Skip to main content

cpp_sentinel_recovered_scope_for_node

Function cpp_sentinel_recovered_scope_for_node 

Source
pub fn cpp_sentinel_recovered_scope_for_node(
    node: Node<'_>,
    source: &str,
    recovered_classes: &[CppSentinelRecoveredClass],
) -> Option<Vec<String>>
Expand description

Resolve the lexical scope restored for a node in a malformed namespace-sentinel region. Owner spans (out-of-line member definitions) outrank class spans, which in turn outrank the surviving namespace body. The class ancestor suffix is recovered from the original CST so nested members keep their complete Outer::Inner owner chain.