| 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/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| 11 import 'package:analyzer/dart/element/element.dart'; | 11 import 'package:analyzer/dart/element/element.dart'; |
| 12 import 'package:analyzer/dart/element/type.dart'; | 12 import 'package:analyzer/dart/element/type.dart'; |
| 13 import 'package:analyzer/source/error_processor.dart'; | 13 import 'package:analyzer/source/error_processor.dart'; |
| 14 import 'package:analyzer/src/dart/element/type.dart'; | 14 import 'package:analyzer/src/dart/element/type.dart'; |
| 15 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; | 15 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; |
| 16 import 'package:analyzer/src/generated/generated/shared_messages.dart' | 16 import 'package:analyzer/src/generated/generated/shared_messages.dart' |
| 17 as shared_messages; | 17 as shared_messages; |
| 18 import 'package:analyzer/src/generated/java_core.dart'; | 18 import 'package:analyzer/src/generated/java_core.dart'; |
| 19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; | 19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; |
| 20 import 'package:analyzer/src/generated/source.dart'; | 20 import 'package:analyzer/src/generated/source.dart'; |
| 21 import 'package:analyzer/src/task/model.dart'; | 21 import 'package:analyzer/src/task/model.dart'; |
| 22 import 'package:analyzer/task/model.dart'; | 22 import 'package:analyzer/task/model.dart'; |
| 23 import 'package:source_span/source_span.dart'; | 23 import 'package:source_span/source_span.dart'; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * The descriptor used to associate error processors with analysis contexts in | 26 * The descriptor used to associate error processors with analysis contexts in |
| 27 * configuration data. | 27 * configuration data. |
| 28 */ | 28 */ |
| 29 final ListResultDescriptor<List<ErrorProcessor>> CONFIGURED_ERROR_PROCESSORS = | 29 final ListResultDescriptor<ErrorProcessor> CONFIGURED_ERROR_PROCESSORS = |
| 30 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]); | 30 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]); |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * An error discovered during the analysis of some Dart code. | 33 * An error discovered during the analysis of some Dart code. |
| 34 * | 34 * |
| 35 * See [AnalysisErrorListener]. | 35 * See [AnalysisErrorListener]. |
| 36 */ | 36 */ |
| 37 class AnalysisError { | 37 class AnalysisError { |
| 38 /** | 38 /** |
| 39 * An empty array of errors used when no errors are expected. | 39 * An empty array of errors used when no errors are expected. |
| (...skipping 5707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5747 * Initialize a newly created error code to have the given [name]. | 5747 * Initialize a newly created error code to have the given [name]. |
| 5748 */ | 5748 */ |
| 5749 const TodoCode(String name) : super(name, "{0}"); | 5749 const TodoCode(String name) : super(name, "{0}"); |
| 5750 | 5750 |
| 5751 @override | 5751 @override |
| 5752 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5752 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5753 | 5753 |
| 5754 @override | 5754 @override |
| 5755 ErrorType get type => ErrorType.TODO; | 5755 ErrorType get type => ErrorType.TODO; |
| 5756 } | 5756 } |
| OLD | NEW |