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

Function getLocalSymbolForExportDefault

test/fixtures/snapshot/typescript.js:19178–19187  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

19176 }
19177 ts.isEmptyArrayLiteral = isEmptyArrayLiteral;
19178 function getLocalSymbolForExportDefault(symbol) {
19179 if (!isExportDefaultSymbol(symbol) || !symbol.declarations)
19180 return undefined;
19181 for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {
19182 var decl = _a[_i];
19183 if (decl.localSymbol)
19184 return decl.localSymbol;
19185 }
19186 return undefined;
19187 }
19188 ts.getLocalSymbolForExportDefault = getLocalSymbolForExportDefault;
19189 function isExportDefaultSymbol(symbol) {
19190 return symbol && ts.length(symbol.declarations) > 0 && hasSyntacticModifier(symbol.declarations[0], 512 /* ModifierFlags.Default */);

Callers

nothing calls this directly

Calls 1

isExportDefaultSymbolFunction · 0.85

Tested by

no test coverage detected