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

Function parseObjectInitialiser

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

Source from the content-addressed store, hash-verified

2522 }
2523
2524 function parseObjectInitialiser() {
2525 var properties = [], hasProto = {value: false}, node = new Node();
2526
2527 expect('{');
2528
2529 while (!match('}')) {
2530 properties.push(parseObjectProperty(hasProto));
2531
2532 if (!match('}')) {
2533 expectCommaSeparator();
2534 }
2535 }
2536
2537 expect('}');
2538
2539 return node.finishObjectExpression(properties);
2540 }
2541
2542 // 11.1.6 The Grouping Operator
2543

Callers 1

parsePrimaryExpressionFunction · 0.85

Calls 4

expectFunction · 0.85
matchFunction · 0.85
parseObjectPropertyFunction · 0.85
expectCommaSeparatorFunction · 0.85

Tested by

no test coverage detected