All usages of a declaration (LayerMap)
project_find_referencesFind every usage of a declaration—calls, imports, re-exports, reads, writes—compiled from current source, so you can trace impact across aliases and references.
Instructions
Use this to list every place a declaration is used (calls, imports, re-exports, reads and writes), compiled from current source: more complete than searching for its name. Compute usages of a mapped declaration from current source, including aliases, re-exports and non-call references. Select it with symbol {path,name,line?} as printed by project_explore_map or project_search_map (line is its start line when names repeat), or with an entityRef or locator {path,start,kind}. Broader and more expensive than the cached callers in project_explore_map; file or unsupported declarations may lack a reference target. path and kinds filter usage locations before paging. objects contains compact declarations; targetRef and reference ownerRef identify them. Read a reference at its line range. A file that several compiler contexts read (such as packages of one workspace) lists its references once per context, each with that context's configPath. Continue with nextCursor and unchanged conditions, including after an empty partial page. Filtered exhaustion and missing results do not prove absence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Filter usage locations; compiler inputs and declarations may lie elsewhere in the project. | . |
| kinds | No | ||
| cursor | No | ||
| symbol | No | Declaration as printed by the map: file path, name or Container.member, and start line when names repeat. | |
| locator | No | Declaration location: path and UTF-16 start offset; include kind to distinguish declarations at the same offset. | |
| entityRef | No | ||
| maxResults | No |