Beispiel #1
0
 public override void Dump(Runtime.SourceWriter sw, int indentChange)
 {
     foreach (var entry in _entries)
     {
         sw.WriteLine("using {0}", entry);
     }
 }
Beispiel #2
0
        public override void Dump(Runtime.SourceWriter sw, int indentChange)
        {
            foreach (var usingEntry in _usingDirectives)
            {
                sw.WriteLine(usingEntry.ToString());
            }

            DumpChild(Expression, sw, indentChange);
        }
Beispiel #3
0
        public override void Dump(Runtime.SourceWriter sw, int indentChange)
        {
            sw.Write("new ");

            DumpChild(_objectType, sw, indentChange);

            if (HasArguments)
            {
                sw.Write("(");
                _arguments.Dump(sw);
                sw.Write(")");
            }

            if (Initializer != null)
            {
                DumpChild(Initializer, sw);
            }
        }
Beispiel #4
0
        public override void Dump(Runtime.SourceWriter sw, int indentChange)
        {
            sw.Write(" {");

            for (var i = 0; i < _initializers.Count; i++)
            {
                if (i != 0)
                {
                    sw.Write(", ");
                }
                else
                {
                    sw.Write(" ");
                }
                DumpChild(_initializers[i], sw, indentChange);
            }

            sw.Write((_initializers.Count == 0) ? "}" : " }");
        }