437438439440441442443
} private Statement parseThrowStatement() throws CompilerException { readToken(Token.KEYWORD_THROW); return new ThrowStatement(parseExpression(true)); }
3435363738394041424344454647484950
super(name); } public void testThrowStatement() throws CompilerException { assertParserOutput( new ThrowStatement( new BooleanLiteral(true) ), "throw true;" ); assertParserOutput( new ThrowStatement( new Identifier("something") ), "throw something;" ); }