Index: pkg/analyzer/lib/analyzer.dart |
diff --git a/pkg/analyzer/lib/analyzer.dart b/pkg/analyzer/lib/analyzer.dart |
index 0ac8cf48f93ba93a2c75cf97862e2eab37117781..fffb006c788a8f4bf1d395103e3252be1053c164 100644 |
--- a/pkg/analyzer/lib/analyzer.dart |
+++ b/pkg/analyzer/lib/analyzer.dart |
@@ -127,5 +127,6 @@ class _ErrorCollector extends AnalysisErrorListener { |
/// Whether any errors where collected. |
bool get hasErrors => !_errors.isEmpty; |
+ @override |
void onError(AnalysisError error) => _errors.add(error); |
} |