reportErrorMessage method

  1. @deprecated
void reportErrorMessage(
  1. ErrorCode errorCode,
  2. int offset,
  3. int length,
  4. Message message
)

Report an error with the given errorCode and message. The location of the error is specified by the given offset and length.

Deprecated - the Message type assumes named arguments, and no analyzer errors use named arguments anymore. Please use other methods of ErrorReporter.

Implementation

@deprecated
void reportErrorMessage(
    ErrorCode errorCode, int offset, int length, Message message) {
  _errorListener.onError(AnalysisError.withNamedArguments(
      _source, offset, length, errorCode, message.arguments));
}