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

Function parsePatternWithDefault

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

Source from the content-addressed store, hash-verified

2309 }
2310
2311 function parsePatternWithDefault() {
2312 var pattern, right;
2313 pattern = parsePattern();
2314 if (match('=')) {
2315 lex();
2316 right = parseAssignmentExpression();
2317 pattern = new WrappingNode(pattern).finishAssignmentPattern(pattern, right);
2318 }
2319 return pattern;
2320 }
2321
2322 // 11.1.4 Array Initialiser
2323

Callers 3

parseArrayPatternFunction · 0.85
parsePropertyPatternFunction · 0.85
parseParamFunction · 0.85

Calls 4

parsePatternFunction · 0.85
matchFunction · 0.85
lexFunction · 0.85

Tested by

no test coverage detected