MCPcopy
hub / github.com/inlife/nexrender / parseObjectPattern

Function parseObjectPattern

packages/nexrender-action-lottie/lib/jsx/esprima.jsx:2529–2544  ·  view source on GitHub ↗
(params, kind)

Source from the content-addressed store, hash-verified

2527 }
2528
2529 function parseObjectPattern(params, kind) {
2530 var node = new Node(), properties = [];
2531
2532 expect('{');
2533
2534 while (!match('}')) {
2535 properties.push(parsePropertyPattern(params, kind));
2536 if (!match('}')) {
2537 expect(',');
2538 }
2539 }
2540
2541 lex();
2542
2543 return node.finishObjectPattern(properties);
2544 }
2545
2546 function parsePattern(params, kind) {
2547 if (match('[')) {

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