errors property

Return the errors collected by the listener.

Implementation

List<AnalysisError> get errors {
  if (_errors == null) {
    return const <AnalysisError>[];
  }
  return _errors!.toList();
}