示例#1
0
        // ECMA-262 13.11 The with statement

        public Node parseWithStatement(Node node)
        {
            Node @object;
            List<Node> body;

            if (strict)
            {
                tolerateError(Messages.StrictModeWith);
            }

            expectKeyword("with");

            expect("(");

            @object = parseExpression();

            expect(")");

            body = new List<Node>() { parseStatement() };

            return node.finishWithStatement(@object, body);
        }