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

Function bindSourceFileIfExternalModule

test/fixtures/snapshot/typescript.js:47062–47074  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47060 return bindAnonymousDeclaration(node, 2048 /* SymbolFlags.TypeLiteral */, "__type" /* InternalSymbolName.Type */);
47061 }
47062 function bindSourceFileIfExternalModule() {
47063 setExportContextFlag(file);
47064 if (ts.isExternalModule(file)) {
47065 bindSourceFileAsExternalModule();
47066 }
47067 else if (ts.isJsonSourceFile(file)) {
47068 bindSourceFileAsExternalModule();
47069 // Create symbol equivalent for the module.exports = {}
47070 var originalSymbol = file.symbol;
47071 declareSymbol(file.symbol.exports, file.symbol, file, 4 /* SymbolFlags.Property */, 67108863 /* SymbolFlags.All */);
47072 file.symbol = originalSymbol;
47073 }
47074 }
47075 function bindSourceFileAsExternalModule() {
47076 bindAnonymousDeclaration(file, 512 /* SymbolFlags.ValueModule */, "\"".concat(ts.removeFileExtension(file.fileName), "\""));
47077 }

Callers 1

bindWorkerFunction · 0.85

Calls 3

setExportContextFlagFunction · 0.85
declareSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…