public StaticFieldEmittableDataItem(IRField fld) { this.FieldType = fld.Type; this.FieldName = fld.ToString(); }
/// <summary> /// Creates a shallow copy of this field. /// </summary> /// <returns>The shallow copy.</returns> public IRField Clone(IRType newParent) { IRField f = new IRField(this.Assembly); f.Name = this.Name; f.Flags = this.Flags; f.ParentType = newParent; f.Type = this.Type; f.mParentField = this.Type == null ? this : null; return f; }
public FieldMetadataEmittableDataItem(IRField f) { #warning Need to get the required data here this.FieldName = f.ToString(); }
public void Resolve(ref IRField selfReference, IRGenericParameterList typeParams, IRGenericParameterList methodParams) { IRType t = ParentType; ParentType.Resolve(ref t, typeParams, methodParams); IRField f2 = selfReference; selfReference = t.Fields[ParentType.Fields.FindIndex(f => f == f2)]; }