atElement2 method
- @experimental
Report an error with the given errorCode
and arguments
.
The element
is used to compute the location of the error.
Implementation
@experimental
void atElement2(
Element2 element2,
ErrorCode errorCode, {
List<Object>? arguments,
List<DiagnosticMessage>? contextMessages,
Object? data,
}) {
var nonSynthetic = element2.nonSynthetic2;
atOffset(
errorCode: errorCode,
offset: nonSynthetic.firstFragment.nameOffset2 ?? -1,
length: nonSynthetic.name3?.length ?? 0,
arguments: arguments,
contextMessages: contextMessages,
data: data,
);
}