Index: pkg/analyzer/lib/src/generated/error.dart |
diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart |
index af45572c7bba909c839ffd665d84963d9bba4654..5ad31cf21369cbca2bedf77f193345c5d7712cf3 100644 |
--- a/pkg/analyzer/lib/src/generated/error.dart |
+++ b/pkg/analyzer/lib/src/generated/error.dart |
@@ -6,6 +6,8 @@ library engine.error; |
import 'dart:collection'; |
+import 'package:analyzer/src/task/model.dart'; |
+import 'package:analyzer/task/model.dart'; |
import 'package:source_span/source_span.dart'; |
import 'ast.dart' show AstNode; |
@@ -15,6 +17,19 @@ import 'scanner.dart' show Token; |
import 'source.dart'; |
/** |
+ * The descriptor used to associate error filters with analysis contexts in |
+ * configuration data. |
+ */ |
+final ResultDescriptor<List<ErrorFilter>> CONFIGURED_ERROR_FILTERS = |
scheglov
2015/10/27 23:41:44
ListResultDescriptor
pquitslund
2015/10/28 15:56:44
Done.
|
+ new ResultDescriptorImpl('configured.errors', const <ErrorFilter>[]); |
+ |
+/** |
+ * (For now) a predicate used to potentially filter an [error]. |
+ * In the future, may support changing severity as well. |
scheglov
2015/10/27 23:41:44
Does returning `true` mean "include the value into
pquitslund
2015/10/28 15:56:44
Updated doc.
|
+ */ |
+typedef bool ErrorFilter(AnalysisError error); |
+ |
+/** |
* An error discovered during the analysis of some Dart code. |
* |
* See [AnalysisErrorListener]. |