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