Package com.google.minijoe.compiler.ast

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


    readToken(Token.OPERATOR_OPENPAREN);
    expression = parseExpression(true);
    readToken(Token.OPERATOR_CLOSEPAREN);
    statement = parseStatement();

    return new WithStatement(expression, statement);
  }
View Full Code Here


    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")
View Full Code Here

TOP

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

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.