Skip to main content

parse_cpp_c_reading_with_orphaned_namespaces

Function parse_cpp_c_reading_with_orphaned_namespaces 

Source
pub fn parse_cpp_c_reading_with_orphaned_namespaces<'tree>(
    file: &ProjectFile,
    source: &str,
    root: Node<'tree>,
    ancestry: &ParentIndex<'tree>,
    primary: &ParsedFile,
    orphaned_namespaces: &OrphanedNamespaceScopeIndex,
) -> ParsedFile
Expand description

Extract the C reading while reusing the primary reading’s recovery index.

The declaration walk remains separate because C tag scope changes the identity and ownership of declarations. Only recovery state proven to be dialect-independent is shared.