Skip to main content

Module references

Module references 

Source

Functions§

cross_file_candidates
The occurrences of name in ANOTHER open document that belong to a cross-file symbol: unresolved locally (they reach across files), or any occurrence when this document itself defines the symbol. Definition spans ride along when include_defs (rename edits the definition too).
find_references
Handle find-all-references request.
is_cross_file_symbol
Is name a symbol other files can see from THIS document’s point of view? True when the document doesn’t define it (the usage reaches across files) or defines it as API shape. A local Let x is nobody’s business.
name_at
The name under the cursor, exactly as the reference machinery reads it.