OLD | NEW |
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/dart/ast/ast.dart' show AstNode; | 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; |
10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
11 import 'package:analyzer/dart/element/type.dart'; | 11 import 'package:analyzer/dart/element/type.dart'; |
12 import 'package:analyzer/source/error_processor.dart'; | 12 import 'package:analyzer/source/error_processor.dart'; |
13 import 'package:analyzer/src/generated/java_core.dart'; | 13 import 'package:analyzer/src/generated/java_core.dart'; |
14 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; | 14 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
15 import 'package:analyzer/src/generated/scanner.dart' | 15 import 'package:analyzer/src/generated/scanner.dart' |
16 show ScannerErrorCode, Token; | 16 show ScannerErrorCode, Token; |
17 import 'package:analyzer/src/generated/source.dart'; | 17 import 'package:analyzer/src/generated/source.dart'; |
18 import 'package:analyzer/src/task/model.dart'; | 18 import 'package:analyzer/src/task/model.dart'; |
19 import 'package:analyzer/task/model.dart'; | 19 import 'package:analyzer/task/model.dart'; |
20 import 'package:source_span/source_span.dart'; | 20 import 'package:source_span/source_span.dart'; |
21 | 21 |
| 22 import 'generated/shared_messages.dart' as shared_messages; |
| 23 |
22 /** | 24 /** |
23 * The descriptor used to associate error processors with analysis contexts in | 25 * The descriptor used to associate error processors with analysis contexts in |
24 * configuration data. | 26 * configuration data. |
25 */ | 27 */ |
26 final ListResultDescriptor<List<ErrorProcessor>> CONFIGURED_ERROR_PROCESSORS = | 28 final ListResultDescriptor<List<ErrorProcessor>> CONFIGURED_ERROR_PROCESSORS = |
27 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]); | 29 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]); |
28 | 30 |
29 /** | 31 /** |
30 * An error discovered during the analysis of some Dart code. | 32 * An error discovered during the analysis of some Dart code. |
31 * | 33 * |
(...skipping 5659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5691 * Initialize a newly created error code to have the given [name]. | 5693 * Initialize a newly created error code to have the given [name]. |
5692 */ | 5694 */ |
5693 const TodoCode(String name) : super(name, "{0}"); | 5695 const TodoCode(String name) : super(name, "{0}"); |
5694 | 5696 |
5695 @override | 5697 @override |
5696 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5698 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
5697 | 5699 |
5698 @override | 5700 @override |
5699 ErrorType get type => ErrorType.TODO; | 5701 ErrorType get type => ErrorType.TODO; |
5700 } | 5702 } |
OLD | NEW |