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

Function trackSymbol

test/fixtures/snapshot/typescript.js:108174–108180  ·  view source on GitHub ↗
(symbol, enclosingDeclaration, meaning)

Source from the content-addressed store, hash-verified

108172 }
108173 }
108174 function trackSymbol(symbol, enclosingDeclaration, meaning) {
108175 if (symbol.flags & 262144 /* SymbolFlags.TypeParameter */)
108176 return false;
108177 var issuedDiagnostic = handleSymbolAccessibilityError(resolver.isSymbolAccessible(symbol, enclosingDeclaration, meaning, /*shouldComputeAliasesToMakeVisible*/ true));
108178 recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));
108179 return issuedDiagnostic;
108180 }
108181 function reportPrivateInBaseOfClassExpression(propertyName) {
108182 if (errorNameNode || errorFallbackNode) {
108183 context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected, propertyName));

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…