mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-26 21:42:11 +00:00
This commit is contained in:
parent
40b895bffc
commit
fa8dff887f
1 changed files with 9 additions and 12 deletions
|
|
@ -333,8 +333,17 @@ namespace Cosmos.IL2CPU {
|
||||||
var xParams = aMethod.GetParameters();
|
var xParams = aMethod.GetParameters();
|
||||||
var xParamTypes = new Type[xParams.Length];
|
var xParamTypes = new Type[xParams.Length];
|
||||||
for (int i = 0; i < xParams.Length; i++) {
|
for (int i = 0; i < xParams.Length; i++) {
|
||||||
|
Queue(xParamTypes[i], aMethod, "Parameter");
|
||||||
xParamTypes[i] = xParams[i].ParameterType;
|
xParamTypes[i] = xParams[i].ParameterType;
|
||||||
}
|
}
|
||||||
|
// Queue Types directly related to method
|
||||||
|
if (!aIsPlug) {
|
||||||
|
// Don't queue declaring types of plugs
|
||||||
|
Queue(aMethod.DeclaringType, aMethod, "Declaring Type");
|
||||||
|
}
|
||||||
|
if (aMethod is System.Reflection.MethodInfo) {
|
||||||
|
Queue(((System.Reflection.MethodInfo)aMethod).ReturnType, aMethod, "Return Type");
|
||||||
|
}
|
||||||
|
|
||||||
// We only need to look in ancestors and descendants if the method is virtual
|
// We only need to look in ancestors and descendants if the method is virtual
|
||||||
if (aMethod.IsVirtual) {
|
if (aMethod.IsVirtual) {
|
||||||
|
|
@ -408,18 +417,6 @@ namespace Cosmos.IL2CPU {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Queue Types directly related to method
|
|
||||||
if (!aIsPlug) {
|
|
||||||
// Don't queue declaring types of plugs
|
|
||||||
Queue(aMethod.DeclaringType, aMethod, "Declaring Type");
|
|
||||||
}
|
|
||||||
if (aMethod is System.Reflection.MethodInfo) {
|
|
||||||
Queue(((System.Reflection.MethodInfo)aMethod).ReturnType, aMethod, "Return Type");
|
|
||||||
}
|
|
||||||
foreach (var xType in xParamTypes) {
|
|
||||||
Queue(xType, aMethod, "Parameter");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue