MCPcopy Create free account
hub / github.com/nodejs/node / toReferencedSymbolEntry

Function toReferencedSymbolEntry

test/fixtures/snapshot/typescript.js:137127–137132  ·  view source on GitHub ↗
(entry, symbol)

Source from the content-addressed store, hash-verified

137125 }
137126 FindAllReferences.toRenameLocation = toRenameLocation;
137127 function toReferencedSymbolEntry(entry, symbol) {
137128 var referenceEntry = toReferenceEntry(entry);
137129 if (!symbol)
137130 return referenceEntry;
137131 return __assign(__assign({}, referenceEntry), { isDefinition: entry.kind !== 0 /* EntryKind.Span */ && isDeclarationOfSymbol(entry.node, symbol) });
137132 }
137133 function toReferenceEntry(entry) {
137134 var documentSpan = entryToDocumentSpan(entry);
137135 if (entry.kind === 0 /* EntryKind.Span */) {

Callers 1

findReferencedSymbolsFunction · 0.85

Calls 2

toReferenceEntryFunction · 0.85
isDeclarationOfSymbolFunction · 0.85

Tested by

no test coverage detected