reportErrorForToken method
void
reportErrorForToken(])
Report an error with the given errorCode
and arguments
. The token
is
used to compute the location of the error.
Implementation
void reportErrorForToken(
ErrorCode errorCode,
Token token, [
List<Object>? arguments,
List<DiagnosticMessage>? messages,
Object? data,
]) {
reportErrorForOffset(
errorCode, token.offset, token.length, arguments, messages, data);
}