Exemple #1
0
			public StaticFieldEmittableDataItem(IRField fld)
			{
				this.FieldType = fld.Type;
				this.FieldName = fld.ToString();
			}
Exemple #2
0
		/// <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;
		}
Exemple #3
0
			public FieldMetadataEmittableDataItem(IRField f)
			{
#warning Need to get the required data here
				this.FieldName = f.ToString();
			}
Exemple #4
0
		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)];
		}