Ejemplo n.º 1
0
 internal override Statement CloneInternal(CloneContext ctx)
 {
     GotoStatement result = new GotoStatement();
     if (Target != null)
         ctx.Complete += () => result.Target = ctx.Map(Target);
     return result;
 }
Ejemplo n.º 2
0
        public void AcceptGoto(GotoStatement stmt)
        {
            switch (Pass)
            {
                case EPass.Preprocess:
                    _gotoTargets.Add(stmt.Target);
                    break;

                default:
                    break;
            }
        }
Ejemplo n.º 3
0
 public void AcceptGoto(GotoStatement stmt)
 {
     throw new NotConvertibleToInlineExpressionException();
 }
Ejemplo n.º 4
0
 public void AcceptGoto(GotoStatement stmt)
 {
 }
Ejemplo n.º 5
0
 public virtual GotoStatement Goto()
 {
     GotoStatement stmt = new GotoStatement();
     _cstack.Peek().Statements.Add(stmt);
     return stmt;
 }
Ejemplo n.º 6
0
 public void AcceptGoto(GotoStatement stmt)
 {
     stmt.Successor = stmt.Target;
 }
 public void AcceptGoto(GotoStatement stmt)
 {
     _execLeaf = stmt;
 }
 public override void AcceptGoto(GotoStatement stmt)
 {
     Success = false;
 }
Ejemplo n.º 9
0
 public void AcceptGoto(GotoStatement stmt)
 {
     _tw.WriteLine("-- goto unsupported");
 }
Ejemplo n.º 10
0
 //      ????
 public void AcceptGoto(GotoStatement stmt)
 {
     GenerateComments(stmt);
     _tw.Write("goto");
     if (stmt.Label != null)
         _tw.Write(" " + stmt.Label);
     _tw.WriteLine(";");
 }