Package com.dragome.compiler.ast

Examples of com.dragome.compiler.ast.SwitchStatement


    }
  }

  void rollOut_(Block block)
  {
    SwitchStatement switchStmt= new SwitchStatement();
    switchStmt.setExpression(header.switchExpression);

    for (int i= 0; i < caseGroups.size(); i++)
    {
      Node scNode= caseGroups.get(i);
      SwitchCase switchCase= new SwitchCase(scNode.getInitialPc());
      switchCase.setExpressions(caseGroupExpressions.get(i));
      switchStmt.appendChild(switchCase);

      graph.rollOut(scNode, switchCase);
    }

    block.appendChild(switchStmt);
View Full Code Here

TOP

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

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.