| 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 StrongModeCode.INVALID_CAST_FUNCTION_EXPR, | 619 StrongModeCode.INVALID_CAST_FUNCTION_EXPR, |
| 620 StrongModeCode.INVALID_CAST_NEW_EXPR, | 620 StrongModeCode.INVALID_CAST_NEW_EXPR, |
| 621 StrongModeCode.INVALID_CAST_METHOD, | 621 StrongModeCode.INVALID_CAST_METHOD, |
| 622 StrongModeCode.INVALID_CAST_FUNCTION, | 622 StrongModeCode.INVALID_CAST_FUNCTION, |
| 623 StrongModeCode.INVALID_FIELD_OVERRIDE, | 623 StrongModeCode.INVALID_FIELD_OVERRIDE, |
| 624 StrongModeCode.INVALID_METHOD_OVERRIDE, | 624 StrongModeCode.INVALID_METHOD_OVERRIDE, |
| 625 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_BASE, | 625 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_BASE, |
| 626 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_MIXIN, | 626 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_MIXIN, |
| 627 StrongModeCode.INVALID_PARAMETER_DECLARATION, | 627 StrongModeCode.INVALID_PARAMETER_DECLARATION, |
| 628 StrongModeCode.INVALID_SUPER_INVOCATION, | 628 StrongModeCode.INVALID_SUPER_INVOCATION, |
| 629 StrongModeCode.NO_DEFAULT_BOUNDS, |
| 629 StrongModeCode.NON_GROUND_TYPE_CHECK_INFO, | 630 StrongModeCode.NON_GROUND_TYPE_CHECK_INFO, |
| 630 StrongModeCode.NOT_INSTANTIATED_BOUND, | 631 StrongModeCode.NOT_INSTANTIATED_BOUND, |
| 631 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE, | 632 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE, |
| 632 TodoCode.TODO, | 633 TodoCode.TODO, |
| 633 ]; | 634 ]; |
| 634 | 635 |
| 635 /** | 636 /** |
| 636 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode] | 637 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode] |
| 637 * instance. | 638 * instance. |
| 638 */ | 639 */ |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 899 |
| 899 @override | 900 @override |
| 900 int get hashCode => ordinal; | 901 int get hashCode => ordinal; |
| 901 | 902 |
| 902 @override | 903 @override |
| 903 int compareTo(ErrorProperty other) => ordinal - other.ordinal; | 904 int compareTo(ErrorProperty other) => ordinal - other.ordinal; |
| 904 | 905 |
| 905 @override | 906 @override |
| 906 String toString() => name; | 907 String toString() => name; |
| 907 } | 908 } |
| OLD | NEW |