Esempio n. 1
0
        public override void Write(TextWriter writer)
        {
            fn.Write(writer);
            writer.Write("(");
            var sep = "";

            foreach (var arg in args)
            {
                writer.Write(sep);
                arg.Write(writer);
                sep = ",";
            }
            foreach (var arg in keywords)
            {
                writer.Write(sep);
                arg.Write(writer);
                sep = ",";
            }
            if (stargs != null)
            {
                writer.Write(sep);
                writer.Write("*");
                stargs.Write(writer);
                sep = ",";
            }
            if (kwargs != null)
            {
                writer.Write(sep);
                writer.Write("**");
                kwargs.Write(writer);
            }
            writer.Write(")");
        }
Esempio n. 2
0
 public override void Write(TextWriter writer)
 {
     writer.Write("(");
     l.Write(writer);
     writer.Write(" {0} ", base.OpToString(op));
     r.Write(writer);
     writer.Write(")");
 }
Esempio n. 3
0
 public override void Write(TextWriter writer)
 {
     writer.Write("{");
     Projection.Write(writer);
     writer.Write(" ");
     Collection.Write(writer);
     writer.Write("}");
 }
Esempio n. 4
0
 public override void Write(TextWriter writer)
 {
     array.Write(writer);
     writer.Write("[");
     foreach (var slice in subs)
     {
         slice.Write(writer);
     }
     writer.Write("]");
 }
Esempio n. 5
0
 public override void Write(TextWriter writer)
 {
     writer.Write("if");
     writer.Write(" ");
     test.Write(writer);
     if (next != null)
     {
         writer.Write(" ");
         next.Write(writer);
     }
 }
Esempio n. 6
0
 public override void Write(TextWriter writer)
 {
     Dst.Write(writer);
     if (Annotation != null)
     {
         writer.Write(": ");
         this.Annotation.Write(writer);
     }
     writer.Write(base.OpToString(op));
     Src.Write(writer);
 }
Esempio n. 7
0
 public override void Write(TextWriter writer)
 {
     this.Consequent.Write(writer);
     writer.Write(" ");
     writer.Write("if");
     writer.Write(" ");
     Condition.Write(writer);
     writer.Write(" ");
     writer.Write("else");
     writer.Write(" ");
     Alternative.Write(writer);
 }
Esempio n. 8
0
 public override void Write(TextWriter writer)
 {
     writer.Write("for");
     writer.Write(" ");
     variable.Write(writer);
     writer.Write(" ");
     writer.Write("in");
     writer.Write(" ");
     collection.Write(writer);
     if (this.next != null)
     {
         writer.Write(" ");
         this.next.Write(writer);
     }
 }
Esempio n. 9
0
 public virtual void Write(TextWriter writer)
 {
     if (name != null)
     {
         name.Write(writer);
         var compFor = defval as CompFor;
         if (compFor != null)
         {
             writer.Write(" ");
             compFor.Write(writer);
             return;
         }
         writer.Write("=");
     }
     if (defval != null)
     {
         defval.Write(writer);
     }
 }
Esempio n. 10
0
 public override void Write(TextWriter writer)
 {
     if (lower == null && step == null && upper == null)
     {
         writer.Write("::");
     }
     else if (lower != null)
     {
         lower.Write(writer);
         if (step != null)
         {
             writer.Write(':');
             step.Write(writer);
             writer.Write(':');
             if (upper != null)
             {
                 writer.Write(':');
                 upper.Write(writer);
             }
         }
     }
 }
Esempio n. 11
0
 public override void Write(TextWriter writer)
 {
     writer.Write("from");
     writer.Write(" ");
     Expression.Write(writer);
 }
Esempio n. 12
0
 public override void Write(TextWriter writer)
 {
     exp.Write(writer);
 }
Esempio n. 13
0
 public override void Write(TextWriter w)
 {
     Expression.Write(w);
     w.Write(".{0}", FieldName);
 }
Esempio n. 14
0
 public override void Write(TextWriter writer)
 {
     writer.Write(OpToString(op));
     e.Write(writer);
 }