private static void sortAnonymous ( List < IType > anonymous , IType anonType ) { SourceOffsetComparator sourceComparator = new SourceOffsetComparator ( ) ; final AnonymClassComparator classComparator = new AnonymClassComparator ( anonType , sourceComparator ) ; Collections . sort ( anonymous , classComparator ) ; // if (Reporter.DEBUG) { // debugCompilePrio(classComparator); // } }
Sort given anonymous classes in order like java compiler would generate output classes in context of given anonymous type