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