MCPcopy
hub / github.com/BloombergGraphics/whatiscode / match

Function match

scripts/libs/esprima.js:2172–2174  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2170 // Return true if the next token matches the specified punctuator.
2171
2172 function match(value) {
2173 return lookahead.type === Token.Punctuator && lookahead.value === value;
2174 }
2175
2176 // Return true if the next token matches the specified keyword
2177

Callers 15

consumeSemicolonFunction · 0.85
parseArrayPatternFunction · 0.85
parsePropertyPatternFunction · 0.85
parseObjectPatternFunction · 0.85
parsePatternFunction · 0.85
parsePatternWithDefaultFunction · 0.85
parseArrayInitialiserFunction · 0.85
tryParseMethodDefinitionFunction · 0.85
parseObjectPropertyFunction · 0.85
parseObjectInitialiserFunction · 0.85
parseGroupExpressionFunction · 0.85
parsePrimaryExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected