MCPcopy Create free account
hub / github.com/angular/angular / references

Method references

ngp-vscode-ng-language-service/tests/test_helpers.ts:291–298  ·  view source on GitHub ↗
(filePath: string, position: Position, includeDeclaration = true)

Source from the content-addressed store, hash-verified

289 }
290
291 async references(filePath: string, position: Position, includeDeclaration = true) {
292 const uri = await toUri(filePath);
293 return this.connection.sendRequest<Location[] | null>('textDocument/references', {
294 textDocument: {uri},
295 position,
296 context: {includeDeclaration},
297 });
298 }
299
300 async prepareRename(filePath: string, position: Position) {
301 const uri = await toUri(filePath);

Callers 1

getReferencesAtCursorMethod · 0.45

Calls 1

toUriFunction · 0.70

Tested by

no test coverage detected