/** * Get an iterator over the set of problems that * are to be reported based on the current settings. * * @param filter - the filter to apply. * * @return an Iterable<ICompilerProblem> over the * subset of problems that are of interest to the client. */ private Iterable<ICompilerProblem> getFilteredProblems(IProblemFilter filter) { if (problemSettings != null) filter = CompositeProblemFilter.and(filter, new ProblemSettingsFilter(problemSettings)); // Sort the problems so that the semantic cascade // filter can find semantic problems that occur // on the same line as parser problems. sortProblems(); return getProblemView(filter); }
/** * Get an iterator over the set of problems that * are to be reported based on the current settings. * * @param filter - the filter to apply. * * @return an Iterable<ICompilerProblem> over the * subset of problems that are of interest to the client. */ private Iterable<ICompilerProblem> getFilteredProblems(IProblemFilter filter) { if (problemSettings != null) filter = CompositeProblemFilter.and(filter, new ProblemSettingsFilter(problemSettings)); // Sort the problems so that the semantic cascade // filter can find semantic problems that occur // on the same line as parser problems. sortProblems(); return getProblemView(filter); }