Author: miguel
Date: 2007-02-15 14:40:48 -0500 (Thu, 15 Feb 2007)
New Revision: 72951
Modified:
trunk/mcs/mcs/pending.cs
Log:
Reapply the patch from Marek from 72793
Modified: trunk/mcs/mcs/pending.cs
===================================================================
--- trunk/mcs/mcs/pending.cs 2007-02-15 19:40:34 UTC (rev 72950)
+++ trunk/mcs/mcs/pending.cs 2007-02-15 19:40:48 UTC (rev 72951)
@@ -148,7 +148,43 @@
pending_implementations = new TypeAndMethods [total];
int i = 0;
- foreach (MissingInterfacesInfo missing in
missing_ifaces){
+ if (abstract_methods != null) {
+ int count = abstract_methods.Count;
+ pending_implementations [i].methods = new
MethodInfo [count];
+ pending_implementations [i].need_proxy = new
MethodInfo [count];
+
+ abstract_methods.CopyTo
(pending_implementations [i].methods, 0);
+ pending_implementations [i].found = new bool
[count];
+ pending_implementations [i].args = new Type
[count][];
+ pending_implementations [i].mods = new
Parameter.Modifier [count][];
+ pending_implementations [i].type = type_builder;
+
+ string indexer_name =
TypeManager.IndexerPropertyName (type_builder);
+ pending_implementations [i].set_indexer_name =
"set_" + indexer_name;
+ pending_implementations [i].get_indexer_name =
"get_" + indexer_name;
+
+ int j = 0;
+ foreach (MemberInfo m in abstract_methods) {
+ MethodInfo mi = (MethodInfo) m;
+
+ ParameterData pd =
TypeManager.GetParameterData (mi);
+ Type [] types = pd.Types;
+
+ pending_implementations [i].args [j] =
types;
+ pending_implementations [i].mods [j] =
null;
+ if (pd.Count > 0) {
+ Parameter.Modifier [] pm = new
Parameter.Modifier [pd.Count];
+ for (int k = 0; k < pd.Count;
k++)
+ pm [k] =
pd.ParameterModifier (k);
+ pending_implementations
[i].mods [j] = pm;
+ }
+
+ j++;
+ }
+ ++i;
+ }
+
+ foreach (MissingInterfacesInfo missing in
missing_ifaces) {
MethodInfo [] mi;
Type t = missing.Type;
@@ -200,41 +236,6 @@
}
i++;
}
-
- if (abstract_methods != null){
- int count = abstract_methods.Count;
- pending_implementations [i].methods = new
MethodInfo [count];
- pending_implementations [i].need_proxy = new
MethodInfo [count];
-
- abstract_methods.CopyTo
(pending_implementations [i].methods, 0);
- pending_implementations [i].found = new bool
[count];
- pending_implementations [i].args = new Type
[count][];
- pending_implementations [i].mods = new
Parameter.Modifier [count][];
- pending_implementations [i].type = type_builder;
-
- string indexer_name =
TypeManager.IndexerPropertyName (type_builder);
- pending_implementations [i].set_indexer_name =
"set_" + indexer_name;
- pending_implementations [i].get_indexer_name =
"get_" + indexer_name;
-
- int j = 0;
- foreach (MemberInfo m in abstract_methods){
- MethodInfo mi = (MethodInfo) m;
-
- ParameterData pd =
TypeManager.GetParameterData (mi);
- Type [] types = pd.Types;
-
- pending_implementations [i].args [j] =
types;
- pending_implementations [i].mods [j] =
null;
- if (pd.Count > 0){
- Parameter.Modifier [] pm = new
Parameter.Modifier [pd.Count];
- for (int k = 0; k < pd.Count;
k++)
- pm [k] =
pd.ParameterModifier (k);
- pending_implementations
[i].mods [j] = pm;
- }
-
- j++;
- }
- }
}
struct MissingInterfacesInfo {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches