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

Function bindObjectDefinePropertyExport

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

Source from the content-addressed store, hash-verified

47145 return true;
47146 }
47147 function bindObjectDefinePropertyExport(node) {
47148 if (!setCommonJsModuleIndicator(node)) {
47149 return;
47150 }
47151 var symbol = forEachIdentifierInEntityName(node.arguments[0], /*parent*/ undefined, function (id, symbol) {
47152 if (symbol) {
47153 addDeclarationToSymbol(symbol, id, 1536 /* SymbolFlags.Module */ | 67108864 /* SymbolFlags.Assignment */);
47154 }
47155 return symbol;
47156 });
47157 if (symbol) {
47158 var flags = 4 /* SymbolFlags.Property */ | 1048576 /* SymbolFlags.ExportValue */;
47159 declareSymbol(symbol.exports, symbol, node, flags, 0 /* SymbolFlags.None */);
47160 }
47161 }
47162 function bindExportsPropertyAssignment(node) {
47163 // When we create a property via 'exports.foo = bar', the 'exports.foo' property access
47164 // expression is the declaration

Callers 1

bindWorkerFunction · 0.85

Calls 4

addDeclarationToSymbolFunction · 0.85
declareSymbolFunction · 0.85

Tested by

no test coverage detected