示例#1
0
        public void Dump()
        {
            // Write the block label.
            Dumper.Printf("%s:", GetName());
            Dumper.Incr();

            // Dump the instructions.
            foreach (Instruction inst in instructions)
            {
                inst.Dump();
            }

            Dumper.Decr();
        }
示例#2
0
        public override void Dump()
        {
            Dumper.Printf("namespace %s", name);
            Dumper.Printf("{");
            {
                Dumper.Incr();

                // Dump the members.
                foreach (ScopeMember member in members.Values)
                {
                    member.Dump();
                }

                Dumper.Decr();
            }
            Dumper.Printf("}");
        }
示例#3
0
        public override void Dump()
        {
            Dumper.Printf("property %s %s", GetVariableType().GetName(), GetName());
            Dumper.Printf("{");
            Dumper.Incr();

            // Dump the accessors.
            if (getAccessor != null)
            {
                Dumper.Printf("get = %s", getAccessor.GetName());
            }

            if (setAccessor != null)
            {
                Dumper.Printf("set = %s", setAccessor.GetName());
            }

            Dumper.Decr();
            Dumper.Printf("}");
        }
示例#4
0
        public void Dump()
        {
            Dumper.Printf("{");
            Dumper.Incr();

            // Write the blocks.
            Dumper.Printf("blocks");
            Dumper.Printf("{");
            Dumper.Incr();

            foreach (BasicBlock block in blocks)
            {
                Dumper.Printf("%s", block.GetName());
            }

            Dumper.Decr();
            Dumper.Printf("}");

            // Write the catches.
            foreach (Handler h in handlers)
            {
                Dumper.Printf("catch %s %s", h.exception.GetFullName(), h.handler.GetName());
            }

            // Write the cleanup.
            if (cleanup != null)
            {
                Dumper.Printf("cleanup %s", cleanup.GetName());
            }

            // Write the children context
            foreach (ExceptionContext child in children)
            {
                Dumper.Printf("context");
                child.Dump();
            }

            Dumper.Decr();
            Dumper.Printf("}");
        }
示例#5
0
 public override void Dump()
 {
     Dumper.Printf("typedef %s %s", actualType.GetFullName(), GetName());
 }