use of org.codehaus.groovy.control.SourceUnit in project gcontracts by andresteingress.
the class ProcessingContextInformation method addError.
public void addError(String msg, ASTNode expr) {
int line = expr.getLineNumber();
int col = expr.getColumnNumber();
SourceUnit source = sourceUnit();
source.getErrorCollector().addErrorAndContinue(new SyntaxErrorMessage(new SyntaxException(msg + '\n', line, col), source));
}
Aggregations