From 843827a5a2db7ff940a2ebdac5afd5dc7e02a42f Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 8 Apr 2003 05:46:09 +0000 Subject: [PATCH] * TypeRef.cs: Return FieldDef when adding a field def to a class svn path=/trunk/mcs/; revision=13295 --- mcs/ilasm/codegen/ChangeLog | 4 ++++ mcs/ilasm/codegen/CodeGen.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mcs/ilasm/codegen/ChangeLog b/mcs/ilasm/codegen/ChangeLog index 77beee53100..97370d3fe75 100644 --- a/mcs/ilasm/codegen/ChangeLog +++ b/mcs/ilasm/codegen/ChangeLog @@ -1,3 +1,7 @@ +2003-04-07 Jackson Harper + + * TypeRef.cs: Return FieldDef when adding a field def to a class + 2003-04-01 Jackson Harper * TypeRef.cs: Add flag for making types pinned diff --git a/mcs/ilasm/codegen/CodeGen.cs b/mcs/ilasm/codegen/CodeGen.cs index 550e80922f4..9fcca74830d 100644 --- a/mcs/ilasm/codegen/CodeGen.cs +++ b/mcs/ilasm/codegen/CodeGen.cs @@ -111,11 +111,11 @@ namespace Mono.ILASM { return method_table.GetReference (name, return_type, param_list, param_type_list, location); } - public void AddField (FieldAttr attr, string name, TypeRef type, Location location) + public FieldDef AddField (FieldAttr attr, string name, TypeRef type, Location location) { FieldTable field_table = class_table.GetFieldTable (current_class.Name, location); - field_table.AddDefinition (attr, name, type, location); + return field_table.AddDefinition (attr, name, type, location); } public Field GetFieldRef (TypeRef parent, TypeRef type, string name, Location location) -- 2.25.1