Package org.eclipse.php.internal.core.ast.nodes

Examples of org.eclipse.php.internal.core.ast.nodes.ForStatement


  public void testDeleteForComponent1() throws Exception {
    String str = "<?php for ($i = 1; $i <= 10; $i++) {  echo $i; } ?>";
    String expected = "<?php for (;;) {  echo $i; } ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        ForStatement statement = (ForStatement) program.statements()
            .get(0);
        statement.initializers().remove(0);
        statement.conditions().remove(0);
        statement.updaters().remove(0);
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.ast.nodes.ForStatement

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.