public void visit(ClassUnit clazz)
{
if (clazz.isResolved())
return;
Log logger= Log.getLogger();
if (clazz.getSignature().toString().startsWith("["))
{
}
else if (!clazz.isUpToDate())
{
clazz.clear();
try
{
compile(clazz);
DragomeJsCompiler.compiler.compileCount++;
}
catch (RuntimeException ex)
{
DragomeJsCompiler.errorCount++;
logger.error(ex.toString());
if (DragomeJsCompiler.compiler.failOnError)
{
throw ex;
}
}
}
else
{
logger.debug("Up to date: " + clazz);
}
clazz.setResolved(true);
}