reportErrorForSpan method

void reportErrorForSpan(
  1. ErrorCode errorCode,
  2. SourceSpan span, [
  3. List<Object>? arguments
])

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);
}