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

Function getInternalSymbolName

test/fixtures/snapshot/typescript.js:55329–55338  ·  view source on GitHub ↗
(symbol, localName)

Source from the content-addressed store, hash-verified

55327 return localName;
55328 }
55329 function getInternalSymbolName(symbol, localName) {
55330 var id = getSymbolId(symbol);
55331 if (context.remappedSymbolNames.has(id)) {
55332 return context.remappedSymbolNames.get(id);
55333 }
55334 localName = getNameCandidateWorker(symbol, localName);
55335 // The result of this is going to be used as the symbol's name - lock it in, so `getUnusedName` will also pick it up
55336 context.remappedSymbolNames.set(id, localName);
55337 return localName;
55338 }
55339 }
55340 }
55341 function typePredicateToString(typePredicate, enclosingDeclaration, flags, writer) {

Callers 8

serializeSymbolWorkerFunction · 0.85
serializeTypeAliasFunction · 0.85
serializeInterfaceFunction · 0.85
serializeModuleFunction · 0.85
serializeEnumFunction · 0.85
serializeAsAliasFunction · 0.85

Calls 5

getSymbolIdFunction · 0.85
getNameCandidateWorkerFunction · 0.85
hasMethod · 0.65
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected