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

Function checkName

test/fixtures/snapshot/typescript.js:109283–109298  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

109281 }
109282 }
109283 function checkName(node) {
109284 var oldDiag;
109285 if (!suppressNewDiagnosticContexts) {
109286 oldDiag = getSymbolAccessibilityDiagnostic;
109287 getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNodeName(node);
109288 }
109289 errorNameNode = node.name;
109290 ts.Debug.assert(resolver.isLateBound(ts.getParseTreeNode(node))); // Should only be called with dynamic names
109291 var decl = node;
109292 var entityName = decl.name.expression;
109293 checkEntityNameVisibility(entityName, enclosingDeclaration);
109294 if (!suppressNewDiagnosticContexts) {
109295 getSymbolAccessibilityDiagnostic = oldDiag;
109296 }
109297 errorNameNode = undefined;
109298 }
109299 function shouldStripInternal(node) {
109300 return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile);
109301 }

Callers 1

cleanupFunction · 0.70

Calls 2

assertMethod · 0.80

Tested by

no test coverage detected