510511512513514515516
readToken(Token.OPERATOR_OPENPAREN); expression = parseExpression(true); readToken(Token.OPERATOR_CLOSEPAREN); statement = parseStatement(); return new WithStatement(expression, statement); }
3233343536373839404142434445464748495051
super(name); } public void testWithStatement() throws CompilerException { assertParserOutput( new WithStatement( new Identifier("foo"), new ExpressionStatement( new Identifier("something") ) ), "with (foo) something;" ); assertParserOutput( new WithStatement( new Identifier("foo"), new BlockStatement( new Statement[] { new ExpressionStatement( new Identifier("something")