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

Function bindBlockScopedDeclaration

test/fixtures/snapshot/typescript.js:46459–46477  ·  view source on GitHub ↗
(node, symbolFlags, symbolExcludes)

Source from the content-addressed store, hash-verified

46457 return symbol;
46458 }
46459 function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) {
46460 switch (blockScopeContainer.kind) {
46461 case 261 /* SyntaxKind.ModuleDeclaration */:
46462 declareModuleMember(node, symbolFlags, symbolExcludes);
46463 break;
46464 case 305 /* SyntaxKind.SourceFile */:
46465 if (ts.isExternalOrCommonJsModule(container)) {
46466 declareModuleMember(node, symbolFlags, symbolExcludes);
46467 break;
46468 }
46469 // falls through
46470 default:
46471 if (!blockScopeContainer.locals) {
46472 blockScopeContainer.locals = ts.createSymbolTable();
46473 addToContainerChain(blockScopeContainer);
46474 }
46475 declareSymbol(blockScopeContainer.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);
46476 }
46477 }
46478 function delayedBindJSDocTypedefTag() {
46479 if (!delayedTypeAliases) {
46480 return;

Callers 6

bindWorkerFunction · 0.85
bindClassLikeDeclarationFunction · 0.85
bindEnumDeclarationFunction · 0.85
bindFunctionDeclarationFunction · 0.85

Calls 3

declareModuleMemberFunction · 0.85
addToContainerChainFunction · 0.85
declareSymbolFunction · 0.85

Tested by

no test coverage detected