if (goldenCuds.length == 0) {
compilationFailed = true;
}
for (int iCud = 0; iCud < goldenCuds.length; iCud++) {
CompilationUnitDeclaration cud = goldenCuds[iCud];
CompilationResult result = cud.compilationResult();
if (result.hasErrors()) {
compilationFailed = true;
// Early out if we don't need to itemize.
if (!itemizeErrors) {
break;
}
TreeLogger branch = logger.branch(TreeLogger.ERROR, "Errors in "
+ String.valueOf(result.getFileName()), null);
IProblem[] errors = result.getErrors();
for (int i = 0; i < errors.length; i++) {
IProblem problem = errors[i];
if (problemSet.contains(problem)) {
continue;
}