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

Function getUsageModeForExpression

test/fixtures/snapshot/typescript.js:50436–50438  ·  view source on GitHub ↗
(usage)

Source from the content-addressed store, hash-verified

50434 return ((ts.isExportAssignment(node) && !node.isExportEquals) || ts.hasSyntacticModifier(node, 512 /* ModifierFlags.Default */) || ts.isExportSpecifier(node));
50435 }
50436 function getUsageModeForExpression(usage) {
50437 return ts.isStringLiteralLike(usage) ? ts.getModeForUsageLocation(ts.getSourceFileOfNode(usage), usage) : undefined;
50438 }
50439 function isESMFormatImportImportingCommonjsFormatFile(usageMode, targetMode) {
50440 return usageMode === ts.ModuleKind.ESNext && targetMode === ts.ModuleKind.CommonJS;
50441 }

Callers 4

isOnlyImportedAsDefaultFunction · 0.85
canHaveSyntheticDefaultFunction · 0.85
resolveESModuleSymbolFunction · 0.85
checkAssertClauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…