Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.WhileLoop


    return t;
  }

  @Override
  public AstNode whileLoop(AstNode condition, AstNode body) {
    WhileLoop w = new WhileLoop();
    w.setCondition(condition);
    w.setBody(body);
    return w;
  }
View Full Code Here


        i.setElsePart(createBlockWithNode(node));
      }
    } else if (parent instanceof WhileLoop) {
      /* the parent is a while and there are no braces, so we should make a new block */
      /* I don't think you can find this in the real world, but just to be sure */
      WhileLoop w = (WhileLoop) parent;
      w.setBody(createBlockWithNode(node));
    } else if (parent instanceof ForLoop) {
      /* the parent is a for and there are no braces, so we should make a new block */
      /* I don't think you can find this in the real world, but just to be sure */
      ForLoop f = (ForLoop) parent;
      f.setBody(createBlockWithNode(node));
View Full Code Here

TOP

Related Classes of org.mozilla.javascript.ast.WhileLoop

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.