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

Function parseWithStatement

scripts/libs/esprima.js:3662–3680  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

3660 // 12.10 The with statement
3661
3662 function parseWithStatement(node) {
3663 var object, body;
3664
3665 if (strict) {
3666 tolerateError(Messages.StrictModeWith);
3667 }
3668
3669 expectKeyword('with');
3670
3671 expect('(');
3672
3673 object = parseExpression();
3674
3675 expect(')');
3676
3677 body = parseStatement();
3678
3679 return node.finishWithStatement(object, body);
3680 }
3681
3682 // 12.10 The swith statement
3683

Callers 1

parseStatementFunction · 0.85

Calls 5

tolerateErrorFunction · 0.85
expectKeywordFunction · 0.85
expectFunction · 0.85
parseExpressionFunction · 0.85
parseStatementFunction · 0.85

Tested by

no test coverage detected