Expand description
Find references (ADR-0091 Phase 5).
Walk the merged AST and collect every identifier whose name matches a given target name and whose enclosing scope is consistent with the definition. Without sema-level symbol resolution we use a textual match scoped to:
- all references whose name matches a top-level item’s defining name (functions, structs, enums, interfaces, derives, consts) — Phase 5 conservatively returns every occurrence, since the same name at top level can only resolve to that item under the current “all symbols live in a flat namespace” rule (ADR-0023).
- parameter and local-let references — limited to the enclosing function body. The same name in a different function is a different binding.
Functions§
- references_
at - Find every reference to the identifier under the cursor.