reportErrorMessage method
void
reportErrorMessage()
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));
}