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

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: Tweaks. 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 af45572c7bba909c839ffd665d84963d9bba4654..4c92de50ab3bc59c27a70e4d598935b9938c1b72 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;
@@ -14,6 +16,19 @@ import 'java_core.dart';
import 'scanner.dart' show Token;
import 'source.dart';
+const List<ErrorFilter> _noFilters = const <ErrorFilter>[];
Brian Wilkerson 2015/10/27 19:18:59 I'd prefer to have this inlined, given that it's o
pquitslund 2015/10/27 22:33:42 Done.
+
+/** The descriptor used to associate lints with analysis contexts in
+ * configuration data.
+ */
+final ResultDescriptor<List<ErrorFilter>> CONFIGURED_ERROR_FILTERS =
+ new ResultDescriptorImpl('configured.errors', _noFilters);
+
+/**
+ * A predicate used to potentially filter an [error].
+ */
+typedef bool ErrorFilter(AnalysisError error);
+
/**
* An error discovered during the analysis of some Dart code.
*
« 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