Chromium Code Reviews| 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_METHOD, | 619 StrongModeCode.INVALID_CAST_METHOD, |
| 620 StrongModeCode.INVALID_CAST_FUNCTION, | 620 StrongModeCode.INVALID_CAST_FUNCTION, |
| 621 StrongModeCode.INVALID_FIELD_OVERRIDE, | 621 StrongModeCode.INVALID_FIELD_OVERRIDE, |
| 622 StrongModeCode.INVALID_METHOD_OVERRIDE, | 622 StrongModeCode.INVALID_METHOD_OVERRIDE, |
| 623 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_BASE, | 623 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_BASE, |
| 624 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_MIXIN, | 624 StrongModeCode.INVALID_METHOD_OVERRIDE_FROM_MIXIN, |
| 625 StrongModeCode.INVALID_PARAMETER_DECLARATION, | 625 StrongModeCode.INVALID_PARAMETER_DECLARATION, |
| 626 StrongModeCode.INVALID_SUPER_INVOCATION, | 626 StrongModeCode.INVALID_SUPER_INVOCATION, |
| 627 StrongModeCode.NON_GROUND_TYPE_CHECK_INFO, | 627 StrongModeCode.NON_GROUND_TYPE_CHECK_INFO, |
| 628 StrongModeCode.NOT_INSTANTIATED_BOUND, | 628 StrongModeCode.NOT_INSTANTIATED_BOUND, |
| 629 StrongModeCode.UNABLE_INSTANTIATE_TO_BOUNDS, | |
|
Leaf
2017/01/20 20:31:52
Maybe a better name might be "NO_DEFAULT_BOUNDS"?
scheglov
2017/01/21 02:11:23
Done.
| |
| 629 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE, | 630 StrongModeCode.UNSAFE_BLOCK_CLOSURE_INFERENCE, |
| 630 TodoCode.TODO, | 631 TodoCode.TODO, |
| 631 ]; | 632 ]; |
| 632 | 633 |
| 633 /** | 634 /** |
| 634 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode] | 635 * The lazy initialized map from [ErrorCode.uniqueName] to the [ErrorCode] |
| 635 * instance. | 636 * instance. |
| 636 */ | 637 */ |
| 637 HashMap<String, ErrorCode> _uniqueNameToCodeMap; | 638 HashMap<String, ErrorCode> _uniqueNameToCodeMap; |
| 638 | 639 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 896 | 897 |
| 897 @override | 898 @override |
| 898 int get hashCode => ordinal; | 899 int get hashCode => ordinal; |
| 899 | 900 |
| 900 @override | 901 @override |
| 901 int compareTo(ErrorProperty other) => ordinal - other.ordinal; | 902 int compareTo(ErrorProperty other) => ordinal - other.ordinal; |
| 902 | 903 |
| 903 @override | 904 @override |
| 904 String toString() => name; | 905 String toString() => name; |
| 905 } | 906 } |
| OLD | NEW |