try {
if (!typeDeclarationsScanned) {
//System.out.println("Scan type declarations for " + fileName);
compilationUnit.visit(new DefaultTypeArgVisitor());
compilationUnit.visit(new SupertypeVisitor(false)); //TODO: move to a new phase!
compilationUnit.visit(new TypeVisitor());
typeDeclarationsScanned = true;
}
}
finally {
ProducedTypeCache.setEnabled(enabled);