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

Method match

src/parser.ts:477–479  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

475 // Return true if the next token matches the specified punctuator.
476
477 match(value) {
478 return this.lookahead.type === Token.Punctuator && this.lookahead.value === value;
479 }
480
481 // Return true if the next token matches the specified keyword
482

Callers 15

consumeSemicolonMethod · 0.95
parseArrayInitializerMethod · 0.95
parseObjectPropertyMethod · 0.95
parseGroupExpressionMethod · 0.95
parseArgumentsMethod · 0.95
parseNewExpressionMethod · 0.95
parseAsyncArgumentsMethod · 0.95
parseSuperMethod · 0.95
parseUpdateExpressionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected