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

Function matchKeyword

docs/app/js/sanddance-app.js:144103–144105  ·  view source on GitHub ↗
(keyword)

Source from the content-addressed store, hash-verified

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
144106function parseArrayInitialiser() {
144107 const elements = [];
144108 index = lookahead.start;

Callers 1

parseUnaryExpressionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected