Node n = ((AnalysisMessage)err).getTreeNode();
if(n != null)
n = com.redhat.ceylon.compiler.typechecker.tree.Util.getIdentifyingNode(n);
out.write(String.format(" at %s of %s", n.getLocation(), n.getUnit().getFilename()));
} else if (err instanceof RecognitionError) {
RecognitionError rer = (RecognitionError)err;
out.write(String.format(" at %d:%d", rer.getLine(), rer.getCharacterInLine()));
}
out.write(System.lineSeparator());
count++;
if(diagnosticListener != null){