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

Function isSignedNumericLiteral

test/fixtures/snapshot/typescript.js:17490–17492  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

17488 }
17489 ts.isStringOrNumericLiteralLike = isStringOrNumericLiteralLike;
17490 function isSignedNumericLiteral(node) {
17491 return ts.isPrefixUnaryExpression(node) && (node.operator === 39 /* SyntaxKind.PlusToken */ || node.operator === 40 /* SyntaxKind.MinusToken */) && ts.isNumericLiteral(node.operand);
17492 }
17493 ts.isSignedNumericLiteral = isSignedNumericLiteral;
17494 /**
17495 * A declaration has a dynamic name if all of the following are true:

Callers 2

isDynamicNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected