Package com.dragome.compiler.ast

Examples of com.dragome.compiler.ast.ASTNodeStack


      }
      astNode= astNode.getNextSibling();
    }

    nodeB.stack= node.stack;
    node.stack= new ASTNodeStack();

    return nodeB;
  }
View Full Code Here


  private void makeTryFrame(TryStatement stmt)
  {
    TryHeaderNode header= stmt.header;

    Node tryNode= graph.getOrCreateNode(stmt.getBeginIndex());
    tryNode.stack= new ASTNodeStack();
    header.setTryBody(tryNode);

    CatchClause clause= (CatchClause) stmt.getCatchStatements().getFirstChild();
    while (clause != null)
    {
      // Push implicit exception.
      Node catchNode= graph.createNode(clause.getBeginIndex());
      // catchNode.type = NodeType.CATCH;
      catchNode.stack= new ASTNodeStack(new VariableBinding(clause.getException()));
      header.addCatchNode(catchNode);

      clause= (CatchClause) clause.getNextSibling();
    }
  }
View Full Code Here

        if (finallyNode == null)
        {

          finallyNode= graph.createNode(jsr.getTargetIndex());

          finallyNode.stack= new ASTNodeStack(new Expression());

        }
        finallyNode.jsrCallers.add(cNode);
        if (cNode.preds().size() == 1 && finallyNode.preds().size() == 0 && cNode.getPred() instanceof TryHeaderNode)
        {
View Full Code Here

TOP

Related Classes of com.dragome.compiler.ast.ASTNodeStack

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.