Example #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);
 }
Example #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);
     }
 }
Example #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"));
        }
Example #4
0
File: Node.cs Project: bencz/Beryl
 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();
     }
 }
Example #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();
     }
 }
Example #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"));
        }
Example #7
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Command command in _commands)
     {
         stream.WriteLine("Command = {0,4:D4}", command.Id);
     }
 }
Example #8
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Commands = {0,4:D4}", _commands.Id);
 }
Example #9
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _name);
 }
Example #10
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Command command in _commands)
         stream.WriteLine("Command = {0,4:D4}", command.Id);
 }
Example #11
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Expression = {0,4:D4}", _expression.Id);
 }
Example #12
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Expression = {0,4:D4}", _expression.Id);
 }
Example #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);
 }
Example #14
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value);
 }
Example #15
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Commands = {0,4:D4}", _commands.Id);
 }
Example #16
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value);
 }
Example #17
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Name = {0}", _name);
 }
Example #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);
 }
Example #19
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value ? "true" : "false");
 }
Example #20
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Kind = {0}", _kind.ToString());
 }
Example #21
0
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Value = {0}", _value ? "true" : "false");
 }
Example #22
0
File: Type.cs Project: bencz/Beryl
 public override void DumpFields(Indenter stream)
 {
     stream.WriteLine("Kind = {0}", _kind.ToString());
 }
Example #23
0
 public override void DumpFields(Indenter stream)
 {
     foreach (Declaration declaration in _declarations)
         stream.WriteLine("Declaration = {0,4:D4}", declaration.Id);
 }
Example #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);
 }