//------------------------------------------------------------------------------------------------------------------------------------------------- public void DefineHoistedField(ClassWriterBase closureClassWriter) { this.HoistedField = closureClassWriter.DefineField( name: "<hoisted>" + this.Name, isStatic: false, isPublic: true, fieldType: this.OperandType); }
//------------------------------------------------------------------------------------------------------------------------------------------------- private Field <List <string> > BindToLogField(ClassType classType, ClassWriterBase writer) { var actionLogField = classType.GetAllMembers().OfType <FieldMember>().Single(f => !f.IsStatic && f.FieldType == typeof(List <string>)); return(actionLogField.AsOperand <List <string> >()); }
//----------------------------------------------------------------------------------------------------------------------------------------------------- internal void AddWriter(ClassWriterBase writer) { m_Writers.Add(writer); }