String processing = "Processing types in compilation unit: " + loc;
final TreeLogger cudLogger = logger.branch(TreeLogger.SPAM, processing,
null);
final char[] source = cud.compilationResult.compilationUnit.getContents();
cud.traverse(new ASTVisitor() {
public boolean visit(TypeDeclaration typeDecl, BlockScope scope) {
if (!resolveTypeDeclaration(cudLogger, source, typeDecl)) {
String name = String.valueOf(typeDecl.binding.readableName());
String msg = "Unexpectedly unable to fully resolve type " + name;
logger.log(TreeLogger.WARN, msg, null);