Beispiel #1
0
            public override IAstNode Visit(JumpStatement node)
            {
                IAstNode n;

                if (AcceptJump(node))
                {
                    n = new GoToStatement(CreateLabel(node))
                    {
                        StartOffset = node.StartOffset, EndOffset = node.EndOffset
                    };
                }
                else
                {
                    n = node;
                }
                return(n);
            }
Beispiel #2
0
 public override string Visit(GoToStatement node)
 {
     return(Indentation(node, string.Format("goto {0}{1}", node.Label, Environment.NewLine)));
 }