MCPcopy Create free account
hub / github.com/nodejs/node / isLiteralPropertyName

Function isLiteralPropertyName

test/fixtures/snapshot/typescript.js:32400–32404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32398 return createIdentifier(ts.tokenIsIdentifierOrKeyword(token()), diagnosticMessage);
32399 }
32400 function isLiteralPropertyName() {
32401 return ts.tokenIsIdentifierOrKeyword(token()) ||
32402 token() === 10 /* SyntaxKind.StringLiteral */ ||
32403 token() === 8 /* SyntaxKind.NumericLiteral */;
32404 }
32405 function isAssertionKey() {
32406 return ts.tokenIsIdentifierOrKeyword(token()) ||
32407 token() === 10 /* SyntaxKind.StringLiteral */;

Callers 4

canFollowModifierFunction · 0.85
isListElementFunction · 0.85
isTypeMemberStartFunction · 0.85
isClassMemberStartFunction · 0.85

Calls 1

tokenFunction · 0.70

Tested by

no test coverage detected