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

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: Test fix. 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e7175629a5f6682a7b926e3dcab74321007538ef..5f7e3f68b267a65ef034d2799334fc637ca688ed 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,20 @@ import 'scanner.dart' show Token;
import 'source.dart';
/**
+ * The descriptor used to associate error filters with analysis contexts in
+ * configuration data.
+ */
+final ListResultDescriptor<List<ErrorFilter>> CONFIGURED_ERROR_FILTERS =
+ new ListResultDescriptorImpl('configured.errors', const <ErrorFilter>[]);
+
+/**
+ * A predicate used to potentially filter an [error].
+ *
+ * Returns `true` if this error should be filtered from analysis results.
+ */
+typedef bool ErrorFilter(AnalysisError error);
+
+/**
* An error discovered during the analysis of some Dart code.
*
* See [AnalysisErrorListener].
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698