Package com.google.minijoe.compiler.ast

Examples of com.google.minijoe.compiler.ast.ThrowStatement


  }

  private Statement parseThrowStatement() throws CompilerException {
    readToken(Token.KEYWORD_THROW);

    return new ThrowStatement(parseExpression(true));
  }
View Full Code Here


    super(name);
  }

  public void testThrowStatement() throws CompilerException {
    assertParserOutput(
        new ThrowStatement(
            new BooleanLiteral(true)
        ),
        "throw true;"
    );
    assertParserOutput(
        new ThrowStatement(
            new Identifier("something")
        ),
        "throw something;"
    );
  }
View Full Code Here

TOP

Related Classes of com.google.minijoe.compiler.ast.ThrowStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.