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