if (anyError) {
logger.log(TreeLogger.ERROR, "Unable to build typeOracle for " + getName());
throw new UnableToCompleteException();
}
CompilationUnitTypeOracleUpdater typeOracleBuilder =
new CompilationUnitTypeOracleUpdater(
new com.google.gwt.dev.javac.typemodel.TypeOracle());
typeOracleBuilder.addNewUnits(logger, units);
logger.log(TreeLogger.INFO, "API " + name + ", Finished with building typeOracle, added "
+ units.size() + " files", null);
return typeOracleBuilder.getTypeOracle();
}