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

Function bindExportDeclaration

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

Source from the content-addressed store, hash-verified

47112 }
47113 }
47114 function bindExportDeclaration(node) {
47115 if (!container.symbol || !container.symbol.exports) {
47116 // Export * in some sort of block construct
47117 bindAnonymousDeclaration(node, 8388608 /* SymbolFlags.ExportStar */, getDeclarationName(node));
47118 }
47119 else if (!node.exportClause) {
47120 // All export * declarations are collected in an __export symbol
47121 declareSymbol(container.symbol.exports, container.symbol, node, 8388608 /* SymbolFlags.ExportStar */, 0 /* SymbolFlags.None */);
47122 }
47123 else if (ts.isNamespaceExport(node.exportClause)) {
47124 // declareSymbol walks up parents to find name text, parent _must_ be set
47125 // but won't be set by the normal binder walk until `bindChildren` later on.
47126 ts.setParent(node.exportClause, node);
47127 declareSymbol(container.symbol.exports, container.symbol, node.exportClause, 2097152 /* SymbolFlags.Alias */, 2097152 /* SymbolFlags.AliasExcludes */);
47128 }
47129 }
47130 function bindImportClause(node) {
47131 if (node.name) {
47132 declareSymbolAndAddToSymbolTable(node, 2097152 /* SymbolFlags.Alias */, 2097152 /* SymbolFlags.AliasExcludes */);

Callers 1

bindWorkerFunction · 0.85

Calls 3

bindAnonymousDeclarationFunction · 0.85
getDeclarationNameFunction · 0.85
declareSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…