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

Function isExportDefaultSymbol

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

Source from the content-addressed store, hash-verified

19187 }
19188 ts.getLocalSymbolForExportDefault = getLocalSymbolForExportDefault;
19189 function isExportDefaultSymbol(symbol) {
19190 return symbol && ts.length(symbol.declarations) > 0 && hasSyntacticModifier(symbol.declarations[0], 512 /* ModifierFlags.Default */);
19191 }
19192 /** Return ".ts", ".d.ts", or ".tsx", if that is the extension. */
19193 function tryExtractTSExtension(fileName) {
19194 return ts.find(supportedTSExtensionsForExtractExtension, function (extension) { return ts.fileExtensionIs(fileName, extension); });

Callers 1

Calls 2

hasSyntacticModifierFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…