Skip to main content

expr_name_chain

Function expr_name_chain 

Source
fn expr_name_chain(gcx: Gcx<'_>, expr: &Expr<'_>) -> Option<Vec<Symbol>>
Expand description

Extracts a name chain from a member-access expression tree for HIR lookup.

The chain is ordered outermost-first so a.b.c produces ["c", "b", "a"] with the root identifier at the back. This matches the convention expected by infer_custom_type.