public override void CaseABreakStm(ABreakStm node)
 {
     Node graphNode = GetNode(node);
     AWhileStm whileStm = Util.GetAncestor<AWhileStm>(node);
     PStm stm = GetNext(whileStm);
     if (stm != null)
         graphNode.AddSucc(GetNode(stm));
 }
Пример #2
0
 public virtual void InABreakStm(ABreakStm node)
 {
     DefaultIn(node);
 }
Пример #3
0
 public virtual void OutABreakStm(ABreakStm node)
 {
     DefaultOut(node);
 }
Пример #4
0
 public virtual void CaseABreakStm(ABreakStm node)
 {
     DefaultCase(node);
 }
Пример #5
0
 public override void CaseABreakStm(ABreakStm node)
 {
     InABreakStm(node);
     if (node.GetToken() != null)
     {
         node.GetToken().Apply(this);
     }
     OutABreakStm(node);
 }
Пример #6
0
 public override void OutABreakStm(ABreakStm node)
 {
     PStm stm = Util.GetAncestor<AWhileStm>(node) ?? (PStm)Util.GetAncestor<ASwitchCaseStm>(node);
     if (stm == null)
         errors.Add(new ErrorCollection.Error(node.GetToken(), currentSourceFile, LocRM.GetString("ErrorText188"), false));
     base.OutABreakStm(node);
 }
 public override void CaseABreakStm(ABreakStm node)
 {
     Write("break;\n");
 }
Пример #8
0
 ArrayList New299()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TBreak tbreakNode2 = (TBreak)nodeArrayList1[0];
     ABreakStm pstmNode1 = new ABreakStm (
       tbreakNode2
     );
     nodeList.Add(pstmNode1);
     return nodeList;
 }