Beispiel #1
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Declaration declaration in _declarations)
     {
         stream.WriteLine("Declaration = {0,4:D4}", declaration.Id);
     }
     stream.WriteLine("Command = {0,4:D4}", _command.Id);
 }
Beispiel #2
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _identifier);
     foreach (Expression argument in _arguments)
     {
         stream.WriteLine("Argument = {0,4:D4}", argument.Id);
     }
 }
Beispiel #3
0
        public override void DumpFields(Indenter stream)
        {
            base.DumpFields(stream);

            System.Text.StringBuilder mangled = new System.Text.StringBuilder(64);
            this.Encode(mangled);
            stream.WriteLine("Mangled = {0}", mangled.ToString());
            stream.WriteLine("Demangled = {0}", Demangler.Decode(mangled.ToString()));

            foreach (ParameterDeclaration parameter in _parameters)
                stream.WriteLine("Parameter = {0,4:D4}", parameter.Id);
            stream.WriteLine("Body = {0,4:D4}", (_body == null) ? "null" : _body.Id.ToString("D4"));
        }
Beispiel #4
0
 public void Dump(Indenter stream)
 {
     // display the nodes in reverse order of creation as we create the tree bottom-up so the last are the topmost nodes
     for (int i = _count - 1; i >= 0; i--)
     {
         Node node = _index[i];
         stream.WriteLine("{0,4:D4} {1} {2}:", node.Id, node.ToString(), node.Position.ToString());
         stream.Indent();
         node.DumpFields(stream);
         stream.Dedent();
         stream.WriteLine();
     }
 }
Beispiel #5
0
 public void Dump(Indenter stream)
 {
     // display the nodes in reverse order of creation as we create the tree bottom-up so the last are the topmost nodes
     for (int i = _count - 1; i >= 0; i--)
     {
         Node node = _index[i];
         stream.WriteLine("{0,4:D4} {1} {2}:", node.Id, node.ToString(), node.Position.ToString());
         stream.Indent();
         node.DumpFields(stream);
         stream.Dedent();
         stream.WriteLine();
     }
 }
Beispiel #6
0
        public override void DumpFields(Indenter stream)
        {
            base.DumpFields(stream);

            System.Text.StringBuilder mangled = new System.Text.StringBuilder(64);
            this.Encode(mangled);
            stream.WriteLine("Mangled = {0}", mangled.ToString());
            stream.WriteLine("Demangled = {0}", Demangler.Decode(mangled.ToString()));

            foreach (ParameterDeclaration parameter in _parameters)
            {
                stream.WriteLine("Parameter = {0,4:D4}", parameter.Id);
            }
            stream.WriteLine("Body = {0,4:D4}", (_body == null) ? "null" : _body.Id.ToString("D4"));
        }
Beispiel #7
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Command command in _commands)
     {
         stream.WriteLine("Command = {0,4:D4}", command.Id);
     }
 }
Beispiel #8
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Commands = {0,4:D4}", _commands.Id);
 }
Beispiel #9
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _name);
 }
Beispiel #10
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Command command in _commands)
         stream.WriteLine("Command = {0,4:D4}", command.Id);
 }
Beispiel #11
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Expression = {0,4:D4}", _expression.Id);
 }
Beispiel #12
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Expression = {0,4:D4}", _expression.Id);
 }
Beispiel #13
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _identifier);
     foreach (Expression argument in _arguments)
         stream.WriteLine("Argument = {0,4:D4}", argument.Id);
 }
Beispiel #14
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value);
 }
Beispiel #15
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Commands = {0,4:D4}", _commands.Id);
 }
Beispiel #16
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value);
 }
Beispiel #17
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _name);
 }
Beispiel #18
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _name);
     stream.WriteLine("Kind = {0}", _kind.ToString());
     stream.WriteLine("Type = {0,4:D4}", _type.Id);
 }
Beispiel #19
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value ? "true" : "false");
 }
Beispiel #20
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Kind = {0}", _kind.ToString());
 }
Beispiel #21
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value ? "true" : "false");
 }
Beispiel #22
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Kind = {0}", _kind.ToString());
 }
Beispiel #23
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Declaration declaration in _declarations)
         stream.WriteLine("Declaration = {0,4:D4}", declaration.Id);
 }
Beispiel #24
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _name);
     stream.WriteLine("Kind = {0}", _kind.ToString());
     stream.WriteLine("Type = {0,4:D4}", _type.Id);
 }