(MethodInstance method, MappingFormat format, List<NameType> nsTypes, MappingsExportVerbosity verbosity, boolean forAnyInput, Set<Set<MethodInstance>> exportedHierarchies)
| 764 | } |
| 765 | |
| 766 | private static boolean shouldExport(MethodInstance method, MappingFormat format, List<NameType> nsTypes, |
| 767 | MappingsExportVerbosity verbosity, boolean forAnyInput, Set<Set<MethodInstance>> exportedHierarchies) { |
| 768 | String srcName = method.getName(nsTypes.get(0)); |
| 769 | if (srcName == null) return false; |
| 770 | |
| 771 | return format.supportsComments && method.getMappedComment() != null |
| 772 | || format.supportsArgs && shouldExportAny(method.getArgs(), format, nsTypes) |
| 773 | || format.supportsLocals && shouldExportAny(method.getVars(), format, nsTypes) |
| 774 | || hasAnyNames(method, srcName, nsTypes) && shouldExportName(method, verbosity, forAnyInput, exportedHierarchies); |
| 775 | } |
| 776 | |
| 777 | private static boolean shouldExport(MethodVarInstance var, MappingFormat format, List<NameType> nsTypes) { |
| 778 | String srcName = var.getName(nsTypes.get(0)); |
no test coverage detected