protected void addError ( String message , ASTNode node , SourceUnit source ) { source . getErrorCollector ( ) . addErrorAndContinue ( new SyntaxErrorMessage ( new SyntaxException ( message , node . getLineNumber ( ) , node . getColumnNumber ( ) , node . getLastLineNumber ( ) , node . getLastColumnNumber ( ) ) , source ) ) ; }
Adds a new syntax error to the source unit and then continues .