private static GenerateRegisterInternalCallsForTypes ( IEnumerable |
||
types | IEnumerable |
|
output | ||
Résultat | void |
public static void GenerateRegisterInternalCalls(AssemblyDefinition[] assemblies, TextWriter output) { output.Write("void RegisterAllStrippedInternalCalls ()\n{\n"); foreach (AssemblyDefinition assembly in assemblies) { MonoAOTRegistration.GenerateRegisterInternalCallsForTypes((IEnumerable <TypeDefinition>)assembly.get_MainModule().get_Types(), output); } output.Write("\n}\n"); }
public static void GenerateRegisterInternalCalls(AssemblyDefinition[] assemblies, TextWriter output) { output.Write("void RegisterAllStrippedInternalCalls ()\n{\n"); for (int i = 0; i < assemblies.Length; i++) { AssemblyDefinition assemblyDefinition = assemblies[i]; MonoAOTRegistration.GenerateRegisterInternalCallsForTypes(assemblyDefinition.MainModule.Types, output); } output.Write("\n}\n"); }
private static void GenerateRegisterInternalCallsForTypes(IEnumerable <TypeDefinition> types, TextWriter output) { foreach (TypeDefinition current in types) { foreach (MethodDefinition current2 in current.Methods) { MonoAOTRegistration.GenerateInternalCallMethod(current, current2, output); } MonoAOTRegistration.GenerateRegisterInternalCallsForTypes(current.NestedTypes, output); } }
private static void GenerateRegisterInternalCallsForTypes(IEnumerable <TypeDefinition> types, TextWriter output) { foreach (TypeDefinition current in types) { using (Collection <MethodDefinition> .Enumerator enumerator2 = current.get_Methods().GetEnumerator()) { while (enumerator2.MoveNext()) { MethodDefinition current2 = enumerator2.get_Current(); MonoAOTRegistration.GenerateInternalCallMethod(current, current2, output); } } MonoAOTRegistration.GenerateRegisterInternalCallsForTypes(current.get_NestedTypes(), output); } }
private static void GenerateRegisterInternalCallsForTypes(IEnumerable <TypeDefinition> types, TextWriter output) { using (IEnumerator <TypeDefinition> enumerator1 = types.GetEnumerator()) { while (((IEnumerator)enumerator1).MoveNext()) { TypeDefinition current1 = enumerator1.Current; using (Collection <MethodDefinition> .Enumerator enumerator2 = current1.get_Methods().GetEnumerator()) { // ISSUE: explicit reference operation while (((Collection <MethodDefinition> .Enumerator)@enumerator2).MoveNext()) { // ISSUE: explicit reference operation MethodDefinition current2 = ((Collection <MethodDefinition> .Enumerator)@enumerator2).get_Current(); MonoAOTRegistration.GenerateInternalCallMethod(current1, current2, output); } } MonoAOTRegistration.GenerateRegisterInternalCallsForTypes((IEnumerable <TypeDefinition>)current1.get_NestedTypes(), output); } } }