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

Function isBigIntLiteralExpression

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

Source from the content-addressed store, hash-verified

88741 expr.operand.kind === 8 /* SyntaxKind.NumericLiteral */;
88742 }
88743 function isBigIntLiteralExpression(expr) {
88744 return expr.kind === 9 /* SyntaxKind.BigIntLiteral */ ||
88745 expr.kind === 219 /* SyntaxKind.PrefixUnaryExpression */ && expr.operator === 40 /* SyntaxKind.MinusToken */ &&
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)) {

Callers 1

checkAmbientInitializerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected