Example #1
0
 public OpCodeListItem(OpCodeList list, OpCodeListItem prev, OpCodeListItem next, AOpCode data)
 {
     this.list = list;
     this.prev = prev;
     this.next = next;
     this.data = data;
 }
Example #2
0
 public OpCodeListItem(OpCodeList list, AOpCode data)
 {
     this.list = list;
     this.prev = null;
     this.next = null;
     this.data = data;
 }
Example #3
0
        public void DumpCodePart(OpCodeList codePart, int id)
        {
            if (codePart == null)
            {
                return;
            }

            Console.WriteLine("  Dumping code part {0}:", id);

            codePart.Rewind();
            OpCodeListItem item     = codePart.Next();
            int            opCodeID = 0;

            while (item != null)
            {
                //Console.WriteLine(">>   item = {0}", item.GetType().ToString());
                //Console.WriteLine(">>   item.Data = {0}", item.Data.GetType().ToString());

                AOpCode opcode = item.Data;
                Console.WriteLine("    [Li:{0} Po:{1} ID:{2}] {3}", opcode.Line, opcode.LinePosition, opCodeID++, opcode.ToString());
                item = codePart.Next();
            }

            Console.WriteLine("  End of code part {0}", id);
        }
Example #4
0
 public OpCodeListItem(OpCodeList list)
 {
     this.list = list;
     this.prev = null;
     this.next = null;
     this.data = null;
 }
Example #5
0
        /*--------------------------------------------------------------*/

        public OpCodeList NewCodePart()
        {
            OpCodeList newCodePart = new OpCodeList();

            codeParts.Add(newCodePart);

            return(newCodePart);
        }