Example #1
0
		/// <summary>
		/// Add an instruction with a field parameter
		/// </summary>
		/// <param name="inst">the CIL instruction</param>
		/// <param name="f">the field parameter</param>
		public void FieldInst(FieldOp inst, Field f) 
		{
			AddToBuffer(new FieldInstr((int)inst,f));
		}
Example #2
0
 /// <summary>
 /// Add an instruction with a field parameter
 /// </summary>
 /// <param name="inst">the CIL instruction</param>
 /// <param name="f">the field parameter</param>
 public void FieldInst(FieldOp inst, Field f)
 {
     Debug.Assert(f != null);
     if (f is FieldDef)
         if (((FieldDef)f).GetScope() != thisMeth.GetScope())
             throw new DescriptorException();
     AddToBuffer(new FieldInstr(inst,f));
 }
Example #3
0
 /*-------------------- Constructors ---------------------------------*/
 public FieldInstr(FieldOp inst, Field f)
     : base((uint)inst)
 {
     field = f;
     size += 4;
 }
Example #4
0
 /// <summary>
 /// Add an instruction with a field parameter
 /// </summary>
 /// <param name="inst">the CIL instruction</param>
 /// <param name="f">the field parameter</param>
 public void FieldInst(FieldOp inst, Field f)
 {
     AddToBuffer(new FieldInstr((int)inst, f));
 }