private static void Writing(IlReader ilReader, string[] filter, ICodeWriter codeWriter, List <IType> newListOfITypes, SortedDictionary <string, IType> genDefinitionsByMetadataName, SortedDictionary <IType, IEnumerable <IMethod> > genericMethodSpecializationsSorted) { // writing codeWriter.WriteStart(ilReader.ModuleName, ilReader.AssemblyQualifiedName, ilReader.IsCoreLib, ilReader.AllReferences()); WriteForwardDeclarations(codeWriter, newListOfITypes); ConvertAllTypes( ilReader, filter, codeWriter, newListOfITypes, genDefinitionsByMetadataName, genericMethodSpecializationsSorted, ConvertingMode.Declaration); ConvertAllTypes( ilReader, filter, codeWriter, newListOfITypes, genDefinitionsByMetadataName, genericMethodSpecializationsSorted, ConvertingMode.Definition); // Append definition of Generic Methods of not used non-generic types ConvertAllTypes( ilReader, filter, codeWriter, genericMethodSpecializationsSorted.Keys.Where(k => !newListOfITypes.Contains(k)).ToList(), genDefinitionsByMetadataName, genericMethodSpecializationsSorted, ConvertingMode.Definition, true); codeWriter.WriteEnd(); codeWriter.Close(); }
private static void Writing( IlReader ilReader, ICodeWriter codeWriter, IList <IType> newListOfITypes, IDictionary <IType, IEnumerable <IMethod> > genericMethodSpecializationsSorted) { // writing codeWriter.WriteStart(ilReader); WriteForwardDeclarations(codeWriter, newListOfITypes); ConvertAllTypes( ilReader, codeWriter, newListOfITypes, genericMethodSpecializationsSorted, ConvertingMode.Declaration); ConvertAllTypes( ilReader, codeWriter, newListOfITypes, genericMethodSpecializationsSorted, ConvertingMode.Definition); // Append definition of Generic Methods of not used non-generic types ConvertAllTypes( ilReader, codeWriter, genericMethodSpecializationsSorted.Keys.Where(k => !newListOfITypes.Contains(k)).ToList(), genericMethodSpecializationsSorted, ConvertingMode.Definition, true); codeWriter.WriteEnd(); codeWriter.Close(); }
private static void Writing( IlReader ilReader, ICodeWriter codeWriter, IList<IType> newListOfITypes, IDictionary<IType, IEnumerable<IMethod>> genericMethodSpecializationsSorted) { // writing codeWriter.WriteStart(ilReader); WriteForwardDeclarations(codeWriter, newListOfITypes); ConvertAllTypes( ilReader, codeWriter, newListOfITypes, genericMethodSpecializationsSorted, ConvertingMode.Declaration); ConvertAllTypes( ilReader, codeWriter, newListOfITypes, genericMethodSpecializationsSorted, ConvertingMode.Definition); // Append definition of Generic Methods of not used non-generic types ConvertAllTypes( ilReader, codeWriter, genericMethodSpecializationsSorted.Keys.Where(k => !newListOfITypes.Contains(k)).ToList(), genericMethodSpecializationsSorted, ConvertingMode.Definition, true); codeWriter.WriteEnd(); codeWriter.Close(); }