Inheritance: TargetClassType
示例#1
0
 internal NativeClass(NativeStructType type, NativeFieldInfo[] fields)
 {
     this.type = type;
     this.fields = fields != null ? fields : new NativeFieldInfo [0];
 }
 public NativeBaseInfo(NativeStructType base_type)
 {
     this.BaseType = base_type;
 }
示例#3
0
 public NativeStructObject(NativeStructType type, TargetLocation location)
     : base(type, location)
 {
     this.type = type;
 }
示例#4
0
 internal NativeClass(NativeStructType type, NativeFieldInfo[] fields)
 {
     this.type   = type;
     this.fields = fields != null ? fields : new NativeFieldInfo [0];
 }
示例#5
0
 public NativeStructObject(NativeStructType type, TargetLocation location)
     : base(type, location)
 {
     this.type = type;
 }
示例#6
0
 public DwarfBaseInfo(DieInheritance inheritance, NativeStructType base_type)
     : base(base_type)
 {
     this.Inheritance = inheritance;
 }
示例#7
0
            protected override TargetType CreateType()
            {
                if (!abbrev.HasChildren)
                    return new NativeTypeAlias (language, Name, Name);

                foreach (Die child in Children) {
                    DieInheritance inheritance = child as DieInheritance;
                    if ((inheritance == null) || !inheritance.HasDataMember)
                        continue;
                    if (!inheritance.Resolve ())
                        continue;
                    debug ("INHERITANCE: {0} {1}", inheritance, inheritance.BaseInfo);
                    base_info = inheritance.BaseInfo;
                    break;
                }

                type = new NativeStructType (language, Name, byte_size, base_info);
                return type;
            }
示例#8
0
            void DoResolve()
            {
                DieType type = comp_unit.GetType (type_offset);
                if (type == null)
                    return;

                base_type = type.ResolveType () as NativeStructType;
                if (base_type == null)
                    return;

                base_info = new DwarfBaseInfo (this, base_type);
            }
示例#9
0
 public NativeBaseInfo(NativeStructType base_type)
 {
     this.BaseType = base_type;
 }