MCPcopy
hub / github.com/jquery/esprima / matchContextualKeyword

Method matchContextualKeyword

src/parser.ts:490–492  ·  view source on GitHub ↗
(keyword)

Source from the content-addressed store, hash-verified

488 // (where an identifier is sometimes a keyword depending on the context)
489
490 matchContextualKeyword(keyword) {
491 return this.lookahead.type === Token.Identifier && this.lookahead.value === keyword;
492 }
493
494 // Return true if the next token is an assignment operator
495

Calls

no outgoing calls

Tested by

no test coverage detected