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

Function isBindingIdentifier

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

Source from the content-addressed store, hash-verified

32082 return speculationHelper(callback, 0 /* SpeculationKind.TryParse */);
32083 }
32084 function isBindingIdentifier() {
32085 if (token() === 79 /* SyntaxKind.Identifier */) {
32086 return true;
32087 }
32088 // `let await`/`let yield` in [Yield] or [Await] are allowed here and disallowed in the binder.
32089 return token() > 116 /* SyntaxKind.LastReservedWord */;
32090 }
32091 // Ignore strict mode flag because we will report an error in type checker instead.
32092 function isIdentifier() {
32093 if (token() === 79 /* SyntaxKind.Identifier */) {

Calls 1

tokenFunction · 0.70

Tested by

no test coverage detected