| 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.error.error; | 5 library analyzer.error.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/error/listener.dart'; | 9 import 'package:analyzer/error/listener.dart'; |
| 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; | 10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, | 226 CompileTimeErrorCode.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, |
| 227 CompileTimeErrorCode.YIELD_EACH_IN_NON_GENERATOR, | 227 CompileTimeErrorCode.YIELD_EACH_IN_NON_GENERATOR, |
| 228 CompileTimeErrorCode.YIELD_IN_NON_GENERATOR, | 228 CompileTimeErrorCode.YIELD_IN_NON_GENERATOR, |
| 229 HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, | 229 HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE, |
| 230 HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, | 230 HintCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, |
| 231 HintCode.CAN_BE_NULL_AFTER_NULL_AWARE, | 231 HintCode.CAN_BE_NULL_AFTER_NULL_AWARE, |
| 232 HintCode.DEAD_CODE, | 232 HintCode.DEAD_CODE, |
| 233 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH, | 233 HintCode.DEAD_CODE_CATCH_FOLLOWING_CATCH, |
| 234 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE, | 234 HintCode.DEAD_CODE_ON_CATCH_SUBTYPE, |
| 235 HintCode.DEPRECATED_MEMBER_USE, | 235 HintCode.DEPRECATED_MEMBER_USE, |
| 236 HintCode.DEPRECATED_FUNCTION_CLASS_DECLARATION, | |
| 237 HintCode.DEPRECATED_EXTENDS_FUNCTION, | |
| 238 HintCode.DEPRECATED_MIXIN_FUNCTION, | |
| 239 HintCode.DIVISION_OPTIMIZATION, | 236 HintCode.DIVISION_OPTIMIZATION, |
| 240 HintCode.DUPLICATE_IMPORT, | 237 HintCode.DUPLICATE_IMPORT, |
| 241 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, | 238 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, |
| 242 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, | 239 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, |
| 243 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, | 240 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, |
| 244 HintCode.INVALID_ASSIGNMENT, | 241 HintCode.INVALID_ASSIGNMENT, |
| 245 HintCode.INVALID_FACTORY_ANNOTATION, | 242 HintCode.INVALID_FACTORY_ANNOTATION, |
| 246 HintCode.INVALID_FACTORY_METHOD_DECL, | 243 HintCode.INVALID_FACTORY_METHOD_DECL, |
| 247 HintCode.INVALID_FACTORY_METHOD_IMPL, | 244 HintCode.INVALID_FACTORY_METHOD_IMPL, |
| 248 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, | 245 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 | 898 |
| 902 @override | 899 @override |
| 903 int get hashCode => ordinal; | 900 int get hashCode => ordinal; |
| 904 | 901 |
| 905 @override | 902 @override |
| 906 int compareTo(ErrorProperty other) => ordinal - other.ordinal; | 903 int compareTo(ErrorProperty other) => ordinal - other.ordinal; |
| 907 | 904 |
| 908 @override | 905 @override |
| 909 String toString() => name; | 906 String toString() => name; |
| 910 } | 907 } |
| OLD | NEW |