reportErrorForElement method
Report an error with the given errorCode
and arguments
. The element
is used to compute the location of the error.
Implementation
void reportErrorForElement(ErrorCode errorCode, Element element,
[List<Object>? arguments]) {
reportErrorForOffset(errorCode, element.nonSynthetic.nameOffset,
element.nameLength, arguments);
}