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

Function trackComputedName

test/fixtures/snapshot/typescript.js:53397–53406  ·  view source on GitHub ↗
(accessExpression, enclosingDeclaration, context)

Source from the content-addressed store, hash-verified

53395 }
53396 }
53397 function trackComputedName(accessExpression, enclosingDeclaration, context) {
53398 if (!context.tracker.trackSymbol)
53399 return;
53400 // get symbol of the first identifier of the entityName
53401 var firstIdentifier = ts.getFirstIdentifier(accessExpression);
53402 var name = resolveName(firstIdentifier, firstIdentifier.escapedText, 111551 /* SymbolFlags.Value */ | 1048576 /* SymbolFlags.ExportValue */, /*nodeNotFoundErrorMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true);
53403 if (name) {
53404 context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* SymbolFlags.Value */);
53405 }
53406 }
53407 function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {
53408 context.tracker.trackSymbol(symbol, context.enclosingDeclaration, meaning); // TODO: GH#18217
53409 return lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol);

Callers 2

addPropertyToElementListFunction · 0.85

Calls 1

resolveNameFunction · 0.85

Tested by

no test coverage detected