code: 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);
      }
docs: Generates a fatal compilation error.
  
  @param sourceUnit the SourceUnit
  @param astNode the ASTNode which caused the error
  @param message The error message
  @param fatal indicates if this is a fatal error