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

Function parseObjectPattern

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

Source from the content-addressed store, hash-verified

2281 }
2282
2283 function parseObjectPattern() {
2284 var node = new Node(), properties = [];
2285
2286 expect('{');
2287
2288 while (!match('}')) {
2289 properties.push(parsePropertyPattern());
2290 if (!match('}')) {
2291 expect(',');
2292 }
2293 }
2294
2295 lex();
2296
2297 return node.finishObjectPattern(properties);
2298 }
2299
2300 function parsePattern() {
2301 if (lookahead.type === Token.Identifier) {

Callers 1

parsePatternFunction · 0.85

Calls 4

expectFunction · 0.85
matchFunction · 0.85
parsePropertyPatternFunction · 0.85
lexFunction · 0.85

Tested by

no test coverage detected