Esempio n. 1
0
        public override void Dump(int indent)
        {
            writeLine(indent, "for loop init:");
            if (Initialize != null)
            {
                Initialize.Dump(indent + 1);
            }
            else
            {
                writeLine(indent + 1, "n/a");
            }

            writeLine(indent, "condition:");
            if (Condition != null)
            {
                Condition.Dump(indent + 1);
            }
            else
            {
                writeLine(indent + 1, "n/a");
            }

            writeLine(indent, "increment:");
            if (Increment != null)
            {
                Increment.Dump(indent + 1);
            }
            else
            {
                writeLine(indent + 1, "n/a");
            }

            writeLine(indent, "do:");
            Code.Dump(indent + 1);
        }
Esempio n. 2
0
 public override void Dump(int indent)
 {
     writeLine(indent, "with:");
     Expression.Dump(indent + 1);
     writeLine(indent, "do:");
     Code.Dump(indent + 1);
 }
Esempio n. 3
0
 public override void Dump(int indent)
 {
     writeLine(indent, "while:");
     Condition.Dump(indent + 1);
     writeLine(indent, "do:");
     Code.Dump(indent + 1);
 }
Esempio n. 4
0
 public override void Dump(int indent)
 {
     writeLine(indent, Op.ToString());
     if (Value != null)
     {
         Value.Dump(indent + 1);
     }
 }
Esempio n. 5
0
 public override void Dump(int indent)
 {
     writeLine(indent, "if condition:");
     Condition.Dump(indent + 1);
     writeLine(indent, "true:");
     TrueStatement.Dump(indent + 1);
     if (FalseStatement != null)
     {
         writeLine(indent, "else:");
         FalseStatement.Dump(indent + 1);
     }
 }
Esempio n. 6
0
        public override void Dump(int indent)
        {
            if (Condition != null)
            {
                writeLine(indent, "catch `{0}` if:", ExceptionVariable);
                Condition.Dump(indent + 1);
                writeLine(indent, "do:");
            }
            else
            {
                writeLine(indent, "catch `{0}` do:", ExceptionVariable);
            }

            Code.Dump(indent + 1);
        }
Esempio n. 7
0
        public override void Dump(int indent)
        {
            if (VariableDeclaration != null)
            {
                writeLine(indent, "for each loop, with new variable:");
            }
            else
            {
                writeLine(indent, "for each loop, with existing variable");
            }

            if (VariableDeclaration != null)
            {
                VariableDeclaration.Dump(indent + 1);
            }
            else
            {
                Iterator.Dump(indent + 1);
            }
            writeLine(indent, "collection:");
            Collection.Dump(indent + 1);
            writeLine(indent, "do:");
            Code.Dump(indent + 1);
        }
Esempio n. 8
0
 public override void Dump(int indent)
 {
     writeLine(indent, "Expression:");
     Expression.Dump(indent + 1);
 }