MCPcopy Create free account
hub / github.com/microsoft/SandDance / match

Function match

docs/app/js/sanddance-app.js:144100–144102  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

144098 if (token.type !== TokenPunctuator || token.value !== value) throwUnexpected(token);
144099} // Return true if the next token matches the specified punctuator.
144100function match(value) {
144101 return lookahead.type === TokenPunctuator && lookahead.value === value;
144102} // Return true if the next token matches the specified keyword
144103function matchKeyword(keyword) {
144104 return lookahead.type === TokenKeyword && lookahead.value === keyword;
144105} // 11.1.4 Array Initialiser

Callers 9

parseArrayInitialiserFunction · 0.70
parseObjectInitialiserFunction · 0.70
parsePrimaryExpressionFunction · 0.70
parseArgumentsFunction · 0.70
parsePostfixExpressionFunction · 0.70
parseUnaryExpressionFunction · 0.70
parseExpressionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected