Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.AstNode


   * @param node
   *            The node we want to have wrapped.
   * @return The (new) node parent (the block probably)
   */
  public AstNode makeSureBlockExistsAround(AstNode node) {
    AstNode parent = node.getParent();

    if (parent instanceof IfStatement) {
      /* the parent is an if and there are no braces, so we should make a new block */
      IfStatement i = (IfStatement) parent;

View Full Code Here

TOP

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

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.