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

Function toImplementationLocation

test/fixtures/snapshot/typescript.js:137196–137205  ·  view source on GitHub ↗
(entry, checker)

Source from the content-addressed store, hash-verified

137194 return ts.emptyOptions;
137195 }
137196 function toImplementationLocation(entry, checker) {
137197 var documentSpan = entryToDocumentSpan(entry);
137198 if (entry.kind !== 0 /* EntryKind.Span */) {
137199 var node = entry.node;
137200 return __assign(__assign({}, documentSpan), implementationKindDisplayParts(node, checker));
137201 }
137202 else {
137203 return __assign(__assign({}, documentSpan), { kind: "" /* ScriptElementKind.unknown */, displayParts: [] });
137204 }
137205 }
137206 function implementationKindDisplayParts(node, checker) {
137207 var symbol = checker.getSymbolAtLocation(ts.isDeclaration(node) && node.name ? node.name : node);
137208 if (symbol) {

Callers 1

Calls 2

entryToDocumentSpanFunction · 0.85

Tested by

no test coverage detected