use of org.codehaus.groovy.syntax.SyntaxException in project groovy-core by groovy.
the class ClassCodeVisitorSupport method addError.
protected void addError(String msg, ASTNode expr) {
SourceUnit source = getSourceUnit();
source.getErrorCollector().addErrorAndContinue(new SyntaxErrorMessage(new SyntaxException(msg + '\n', expr.getLineNumber(), expr.getColumnNumber(), expr.getLastLineNumber(), expr.getLastColumnNumber()), source));
}
Aggregations