Skip to main content

cpp_colon_source_aliases

Function cpp_colon_source_aliases 

Source
pub fn cpp_colon_source_aliases(rendered: &str) -> Vec<FqName>
Expand description

Fully-kinded identities a C++ source spelling joined only by :: can name.

parse_symbol_path records every component as SegmentKind::Unknown, and Unknown re-renders with .. Top::Only therefore compares as Top.Only, and the exact-name retain drops the persisted nested identity Top$Only (Type + Nested). These interpretations are the kind placements extraction stores, so each exact query’s parent and terminal match a persisted row and the structural retain keeps it.

A spelling that already uses . or $ is a canonical rendering (#3520) and stays on cpp_rendered_name_fq alone. base::android.ScopedJavaGlobalRef is one of those: the :: there is the package join the canonical name already spells.