Chromium Code Reviews| 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. |
| * |