MCPcopy Index your code
hub / github.com/nodejs/node / getImplementationAtPosition

Function getImplementationAtPosition

test/fixtures/snapshot/typescript.js:165366–165369  ·  view source on GitHub ↗
(fileName, position)

Source from the content-addressed store, hash-verified

165364 }
165365 /// Goto implementation
165366 function getImplementationAtPosition(fileName, position) {
165367 synchronizeHostData();
165368 return ts.FindAllReferences.getImplementationsAtPosition(program, cancellationToken, program.getSourceFiles(), getValidSourceFile(fileName), position);
165369 }
165370 /// References and Occurrences
165371 function getOccurrencesAtPosition(fileName, position) {
165372 return ts.flatMap(getDocumentHighlights(fileName, position, [fileName]), function (entry) { return entry.highlightSpans.map(function (highlightSpan) { return (__assign(__assign({ fileName: entry.fileName, textSpan: highlightSpan.textSpan, isWriteAccess: highlightSpan.kind === "writtenReference" /* HighlightSpanKind.writtenReference */ }, highlightSpan.isInString && { isInString: true }), highlightSpan.contextSpan && { contextSpan: highlightSpan.contextSpan })); }); });

Callers

nothing calls this directly

Calls 2

synchronizeHostDataFunction · 0.85
getValidSourceFileFunction · 0.85

Tested by

no test coverage detected