logError(getPosition(err.getTreeNode()), "ceylon", err.getMessage());
}
@Override
protected void out(AnalysisError err) {
setSource();
Node node = getIdentifyingNode(err.getTreeNode());
logError(getPosition(node), "ceylon", err.getMessage());
}
@Override
protected void out(Node that, LexError err) {
setSource();
int pos = getPosition((err.getLine()), err.getCharacterInLine());
logError(pos, "ceylon", err.getMessage());
}
@Override
protected void out(Node that, ParseError err) {
setSource();
int pos = getPosition((err.getLine()), err.getCharacterInLine());
logError(pos, "ceylon", err.getMessage());
}
@Override
protected void out(UnsupportedError err) {
setSource();
Node node = getIdentifyingNode(err.getTreeNode());
logError(getPosition(node), "ceylon", err.getMessage());
}
@Override
protected void out(UsageWarning warning) {
if (reportWarnings && !warning.isSuppressed()) {
setSource();
Node node = getIdentifyingNode(warning.getTreeNode());
logWarning(getPosition(node), "ceylon", warning.getMessage());
}
}
@Override
protected void out(Node that, String message) {