assert _sourceFileInfo != null; // process() should guarantee this.
if ( decl instanceof ClassDeclaration )
{
ClassDeclaration classDecl = ( ClassDeclaration ) decl;
BaseChecker checker = getChecker( classDecl, this );
if ( checker != null )
{
checker.check( classDecl );
//
// Also do a silent check on all base classes. We don't want to generate if there were errors
// in the base class.
//
SilentDiagnostics silentDiagnostics = new SilentDiagnostics();
for ( ClassType i = classDecl.getSuperclass(); i != null; i = i.getSuperclass() )
{
ClassDeclaration baseDecl = i.getClassTypeDeclaration();
if ( CompilerUtils.getSourceFile( baseDecl, false ) != null )
{
BaseChecker silentChecker = getChecker( baseDecl, silentDiagnostics );
if ( silentChecker != null ) silentChecker.check( baseDecl );
}
}
if ( silentDiagnostics.hasErrors() ) setHasErrors( true );
}