public override void VisitNestedClassTable(NestedClassTable table)
        {
            int number = m_rows [NestedClassTable.RId];

            table.Rows = new RowCollection(number);
            for (int i = 0; i < number; i++)
            {
                table.Rows.Add(new NestedClassRow());
            }
        }
Exemplo n.º 2
0
        public NestedClassTable GetNestedClassTable()
        {
            NestedClassTable table = m_heap [NestedClassTable.RId] as NestedClassTable;

            if (table != null)
            {
                return(table);
            }

            table = new NestedClassTable();
            InitializeTable(table);
            return(table);
        }
Exemplo n.º 3
0
        public NestedClassTable GetNestedClassTable()
        {
            int rid = NestedClassTable.RId;

            if (m_heap.HasTable(rid))
            {
                return(m_heap [rid] as NestedClassTable);
            }

            NestedClassTable table = new NestedClassTable();

            table.Rows    = new RowCollection();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add(table);
            return(table);
        }
Exemplo n.º 4
0
		public NestedClassTable GetNestedClassTable ()
		{
			NestedClassTable table = m_heap [NestedClassTable.RId] as NestedClassTable;
			if (table != null)
				return table;

			table = new NestedClassTable ();
			InitializeTable (table);
			return table;
		}
Exemplo n.º 5
0
 public override void VisitNestedClassTable(NestedClassTable table)
 {
     int number = m_rows [NestedClassTable.RId];
     table.Rows = new RowCollection (number);
     for (int i = 0; i < number; i++)
         table.Rows.Add (new NestedClassRow ());
 }
Exemplo n.º 6
0
        public NestedClassTable GetNestedClassTable()
        {
            int rid = NestedClassTable.RId;
            if (m_heap.HasTable (rid))
                return m_heap [rid] as NestedClassTable;

            NestedClassTable table = new NestedClassTable ();
            table.Rows = new RowCollection ();
            m_heap.Valid |= 1L << rid;
            m_heap.Tables.Add (table);
            return table;
        }
Exemplo n.º 7
0
		void EncodeNestedClassTable (NestedClassTable table)
		{
			int index = 0;

			foreach (NestedClassRow row in table.Rows) {
				this.asm.ALIGN (Assembly.OBJECT_ALIGNMENT);
				this.asm.LABEL (moduleName + " NestedClassRow#" + index);
				this.asm.AddObjectFields (typeof (SharpOS.AOT.Metadata.NestedClassRow).ToString ());

				this.asm.DATA (row.NestedClass);
				this.asm.DATA (row.EnclosingClass);

				++index;
			}

			this.MetadataArray ("NestedClass", table);
		}