| 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'; |
| (...skipping 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3053 | 3053 |
| 3054 /** | 3054 /** |
| 3055 * The type of the error. | 3055 * The type of the error. |
| 3056 */ | 3056 */ |
| 3057 ErrorType get type; | 3057 ErrorType get type; |
| 3058 | 3058 |
| 3059 /** | 3059 /** |
| 3060 * The unique name of this error code. | 3060 * The unique name of this error code. |
| 3061 */ | 3061 */ |
| 3062 String get uniqueName => "$runtimeType.$name"; | 3062 String get uniqueName => "$runtimeType.$name"; |
| 3063 |
| 3064 @override |
| 3065 String toString() => uniqueName; |
| 3063 } | 3066 } |
| 3064 | 3067 |
| 3065 /** | 3068 /** |
| 3066 * The properties that can be associated with an [AnalysisError]. | 3069 * The properties that can be associated with an [AnalysisError]. |
| 3067 */ | 3070 */ |
| 3068 class ErrorProperty extends Enum<ErrorProperty> { | 3071 class ErrorProperty extends Enum<ErrorProperty> { |
| 3069 /** | 3072 /** |
| 3070 * A property whose value is a list of [FieldElement]s that are final, but | 3073 * A property whose value is a list of [FieldElement]s that are final, but |
| 3071 * not initialized by a constructor. | 3074 * not initialized by a constructor. |
| 3072 */ | 3075 */ |
| (...skipping 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5744 * Initialize a newly created error code to have the given [name]. | 5747 * Initialize a newly created error code to have the given [name]. |
| 5745 */ | 5748 */ |
| 5746 const TodoCode(String name) : super(name, "{0}"); | 5749 const TodoCode(String name) : super(name, "{0}"); |
| 5747 | 5750 |
| 5748 @override | 5751 @override |
| 5749 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5752 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5750 | 5753 |
| 5751 @override | 5754 @override |
| 5752 ErrorType get type => ErrorType.TODO; | 5755 ErrorType get type => ErrorType.TODO; |
| 5753 } | 5756 } |
| OLD | NEW |