| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 CompileTimeErrorCode.INVALID_CONSTANT, | 142 CompileTimeErrorCode.INVALID_CONSTANT, |
| 143 CompileTimeErrorCode.INVALID_CONSTRUCTOR_NAME, | 143 CompileTimeErrorCode.INVALID_CONSTRUCTOR_NAME, |
| 144 CompileTimeErrorCode.INVALID_FACTORY_NAME_NOT_A_CLASS, | 144 CompileTimeErrorCode.INVALID_FACTORY_NAME_NOT_A_CLASS, |
| 145 CompileTimeErrorCode.INVALID_IDENTIFIER_IN_ASYNC, | 145 CompileTimeErrorCode.INVALID_IDENTIFIER_IN_ASYNC, |
| 146 CompileTimeErrorCode.INVALID_MODIFIER_ON_CONSTRUCTOR, | 146 CompileTimeErrorCode.INVALID_MODIFIER_ON_CONSTRUCTOR, |
| 147 CompileTimeErrorCode.INVALID_MODIFIER_ON_SETTER, | 147 CompileTimeErrorCode.INVALID_MODIFIER_ON_SETTER, |
| 148 CompileTimeErrorCode.INVALID_REFERENCE_TO_THIS, | 148 CompileTimeErrorCode.INVALID_REFERENCE_TO_THIS, |
| 149 CompileTimeErrorCode.INVALID_TYPE_ARGUMENT_IN_CONST_LIST, | 149 CompileTimeErrorCode.INVALID_TYPE_ARGUMENT_IN_CONST_LIST, |
| 150 CompileTimeErrorCode.INVALID_TYPE_ARGUMENT_IN_CONST_MAP, | 150 CompileTimeErrorCode.INVALID_TYPE_ARGUMENT_IN_CONST_MAP, |
| 151 CompileTimeErrorCode.INVALID_URI, | 151 CompileTimeErrorCode.INVALID_URI, |
| 152 CompileTimeErrorCode.INVALID_USE_OF_COVARIANT, |
| 152 CompileTimeErrorCode.LABEL_IN_OUTER_SCOPE, | 153 CompileTimeErrorCode.LABEL_IN_OUTER_SCOPE, |
| 153 CompileTimeErrorCode.LABEL_UNDEFINED, | 154 CompileTimeErrorCode.LABEL_UNDEFINED, |
| 154 CompileTimeErrorCode.MEMBER_WITH_CLASS_NAME, | 155 CompileTimeErrorCode.MEMBER_WITH_CLASS_NAME, |
| 155 CompileTimeErrorCode.METHOD_AND_GETTER_WITH_SAME_NAME, | 156 CompileTimeErrorCode.METHOD_AND_GETTER_WITH_SAME_NAME, |
| 156 CompileTimeErrorCode.MISSING_CONST_IN_LIST_LITERAL, | 157 CompileTimeErrorCode.MISSING_CONST_IN_LIST_LITERAL, |
| 157 CompileTimeErrorCode.MISSING_CONST_IN_MAP_LITERAL, | 158 CompileTimeErrorCode.MISSING_CONST_IN_MAP_LITERAL, |
| 158 CompileTimeErrorCode.MIXIN_DECLARES_CONSTRUCTOR, | 159 CompileTimeErrorCode.MIXIN_DECLARES_CONSTRUCTOR, |
| 159 CompileTimeErrorCode.MIXIN_DEFERRED_CLASS, | 160 CompileTimeErrorCode.MIXIN_DEFERRED_CLASS, |
| 160 CompileTimeErrorCode.MIXIN_HAS_NO_CONSTRUCTORS, | 161 CompileTimeErrorCode.MIXIN_HAS_NO_CONSTRUCTORS, |
| 161 CompileTimeErrorCode.MIXIN_INHERITS_FROM_NOT_OBJECT, | 162 CompileTimeErrorCode.MIXIN_INHERITS_FROM_NOT_OBJECT, |
| (...skipping 734 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 |