if (gendir != null) {
try {
File file = new File(gendir, m_name + ".java");
FileWriter fwrit = new FileWriter(file);
WriterVisitor visitor = new WriterVisitor(text, fwrit);
edits.accept(visitor);
visitor.finish();
fwrit.flush();
fwrit.close();
s_logger.info("Generated class file " + file.getCanonicalPath() + " (writing AST took " + (System.currentTimeMillis()-start) + " ms.)");
} catch (IOException e) {