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