Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1420363005: Error Suppression FTW. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Typo. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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].

Powered by Google App Engine
This is Rietveld 408576698