reportErrorForSpan method
Report an error with the given errorCode
and arguments
. The location
of the error is specified by the given span
.
Implementation
void reportErrorForSpan(ErrorCode errorCode, SourceSpan span,
[List<Object>? arguments]) {
reportErrorForOffset(errorCode, span.start.offset, span.length, arguments);
}