MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / parsePattern

Function parsePattern

scripts/libs/esprima.js:2300–2309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2298 }
2299
2300 function parsePattern() {
2301 if (lookahead.type === Token.Identifier) {
2302 return parseVariableIdentifier();
2303 } else if (match('[')) {
2304 return parseArrayPattern();
2305 } else if (match('{')) {
2306 return parseObjectPattern();
2307 }
2308 throwUnexpectedToken(lookahead);
2309 }
2310
2311 function parsePatternWithDefault() {
2312 var pattern, right;

Callers 4

parsePatternWithDefaultFunction · 0.85
parseVariableDeclarationFunction · 0.85
parseLexicalBindingFunction · 0.85
parseCatchClauseFunction · 0.85

Calls 5

parseVariableIdentifierFunction · 0.85
matchFunction · 0.85
parseArrayPatternFunction · 0.85
parseObjectPatternFunction · 0.85
throwUnexpectedTokenFunction · 0.85

Tested by

no test coverage detected