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

Function isSimpleLiteralEnumReference

test/fixtures/snapshot/typescript.js:88748–88753  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

88746 expr.operand.kind === 9 /* SyntaxKind.BigIntLiteral */;
88747 }
88748 function isSimpleLiteralEnumReference(expr) {
88749 if ((ts.isPropertyAccessExpression(expr) || (ts.isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression))) &&
88750 ts.isEntityNameExpression(expr.expression)) {
88751 return !!(checkExpressionCached(expr).flags & 1024 /* TypeFlags.EnumLiteral */);
88752 }
88753 }
88754 function checkAmbientInitializer(node) {
88755 var initializer = node.initializer;
88756 if (initializer) {

Callers 1

checkAmbientInitializerFunction · 0.85

Calls 2

checkExpressionCachedFunction · 0.85

Tested by

no test coverage detected