* @param message The error message
* @param fatal indicates if this is a fatal error
*/
public static void error(final SourceUnit sourceUnit, final ASTNode astNode, final String message, final boolean fatal) {
final SyntaxException syntaxException = new SyntaxException(message, astNode.getLineNumber(), astNode.getColumnNumber());
final SyntaxErrorMessage syntaxErrorMessage = new SyntaxErrorMessage(syntaxException, sourceUnit);
sourceUnit.getErrorCollector().addError(syntaxErrorMessage, fatal);
}