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

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1517723002: Server custom error severity support (#24452). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: lib_renames Created 5 years 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/source/error_processor.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.generated.error; 5 library analyzer.src.generated.error;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/source/error_processor.dart';
9 import 'package:analyzer/src/generated/ast.dart' show AstNode; 10 import 'package:analyzer/src/generated/ast.dart' show AstNode;
10 import 'package:analyzer/src/generated/element.dart'; 11 import 'package:analyzer/src/generated/element.dart';
11 import 'package:analyzer/src/generated/java_core.dart'; 12 import 'package:analyzer/src/generated/java_core.dart';
12 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 13 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
13 import 'package:analyzer/src/generated/scanner.dart' 14 import 'package:analyzer/src/generated/scanner.dart'
14 show ScannerErrorCode, Token; 15 show ScannerErrorCode, Token;
15 import 'package:analyzer/src/generated/source.dart'; 16 import 'package:analyzer/src/generated/source.dart';
16 import 'package:analyzer/src/task/model.dart'; 17 import 'package:analyzer/src/task/model.dart';
17 import 'package:analyzer/task/model.dart'; 18 import 'package:analyzer/task/model.dart';
18 import 'package:source_span/source_span.dart'; 19 import 'package:source_span/source_span.dart';
19 20
20 /** 21 /**
21 * The descriptor used to associate error filters with analysis contexts in 22 * The descriptor used to associate error processors with analysis contexts in
22 * configuration data. 23 * configuration data.
23 */ 24 */
24 final ListResultDescriptor<List<ErrorFilter>> CONFIGURED_ERROR_FILTERS = 25 final ListResultDescriptor<List<ErrorProcessor>> CONFIGURED_ERROR_PROCESSORS =
25 new ListResultDescriptorImpl('configured.errors', const <ErrorFilter>[]); 26 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]);
26
27 /**
28 * A predicate used to potentially filter an [error].
29 *
30 * Returns `true` if this error should be filtered from analysis results.
31 */
32 typedef bool ErrorFilter(AnalysisError error);
33 27
34 /** 28 /**
35 * An error discovered during the analysis of some Dart code. 29 * An error discovered during the analysis of some Dart code.
36 * 30 *
37 * See [AnalysisErrorListener]. 31 * See [AnalysisErrorListener].
38 */ 32 */
39 class AnalysisError { 33 class AnalysisError {
40 /** 34 /**
41 * An empty array of errors used when no errors are expected. 35 * An empty array of errors used when no errors are expected.
42 */ 36 */
(...skipping 5614 matching lines...) Expand 10 before | Expand all | Expand 10 after
5657 * Initialize a newly created error code to have the given [name]. 5651 * Initialize a newly created error code to have the given [name].
5658 */ 5652 */
5659 const TodoCode(String name) : super(name, "{0}"); 5653 const TodoCode(String name) : super(name, "{0}");
5660 5654
5661 @override 5655 @override
5662 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5656 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5663 5657
5664 @override 5658 @override
5665 ErrorType get type => ErrorType.TODO; 5659 ErrorType get type => ErrorType.TODO;
5666 } 5660 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/error_processor.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698