| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY, | 304 ParserErrorCode.CONST_CONSTRUCTOR_WITH_BODY, |
| 305 ParserErrorCode.CONST_ENUM, | 305 ParserErrorCode.CONST_ENUM, |
| 306 ParserErrorCode.CONST_FACTORY, | 306 ParserErrorCode.CONST_FACTORY, |
| 307 ParserErrorCode.CONST_METHOD, | 307 ParserErrorCode.CONST_METHOD, |
| 308 ParserErrorCode.CONST_TYPEDEF, | 308 ParserErrorCode.CONST_TYPEDEF, |
| 309 ParserErrorCode.CONTINUE_OUTSIDE_OF_LOOP, | 309 ParserErrorCode.CONTINUE_OUTSIDE_OF_LOOP, |
| 310 ParserErrorCode.CONTINUE_WITHOUT_LABEL_IN_CASE, | 310 ParserErrorCode.CONTINUE_WITHOUT_LABEL_IN_CASE, |
| 311 ParserErrorCode.COVARIANT_AFTER_VAR, | 311 ParserErrorCode.COVARIANT_AFTER_VAR, |
| 312 ParserErrorCode.COVARIANT_AND_STATIC, | 312 ParserErrorCode.COVARIANT_AND_STATIC, |
| 313 ParserErrorCode.COVARIANT_CONSTRUCTOR, | 313 ParserErrorCode.COVARIANT_CONSTRUCTOR, |
| 314 ParserErrorCode.COVARIANT_MEMBER, |
| 314 ParserErrorCode.COVARIANT_TOP_LEVEL_DECLARATION, | 315 ParserErrorCode.COVARIANT_TOP_LEVEL_DECLARATION, |
| 315 ParserErrorCode.DEFAULT_VALUE_IN_FUNCTION_TYPE, | 316 ParserErrorCode.DEFAULT_VALUE_IN_FUNCTION_TYPE, |
| 316 ParserErrorCode.DIRECTIVE_AFTER_DECLARATION, | 317 ParserErrorCode.DIRECTIVE_AFTER_DECLARATION, |
| 317 ParserErrorCode.DUPLICATED_MODIFIER, | 318 ParserErrorCode.DUPLICATED_MODIFIER, |
| 318 ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT, | 319 ParserErrorCode.DUPLICATE_LABEL_IN_SWITCH_STATEMENT, |
| 319 ParserErrorCode.EMPTY_ENUM_BODY, | 320 ParserErrorCode.EMPTY_ENUM_BODY, |
| 320 ParserErrorCode.ENUM_IN_CLASS, | 321 ParserErrorCode.ENUM_IN_CLASS, |
| 321 ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND, | 322 ParserErrorCode.EQUALITY_CANNOT_BE_EQUALITY_OPERAND, |
| 322 ParserErrorCode.EXPECTED_CASE_OR_DEFAULT, | 323 ParserErrorCode.EXPECTED_CASE_OR_DEFAULT, |
| 323 ParserErrorCode.EXPECTED_CLASS_MEMBER, | 324 ParserErrorCode.EXPECTED_CLASS_MEMBER, |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 | 898 |
| 898 @override | 899 @override |
| 899 int get hashCode => ordinal; | 900 int get hashCode => ordinal; |
| 900 | 901 |
| 901 @override | 902 @override |
| 902 int compareTo(ErrorProperty other) => ordinal - other.ordinal; | 903 int compareTo(ErrorProperty other) => ordinal - other.ordinal; |
| 903 | 904 |
| 904 @override | 905 @override |
| 905 String toString() => name; | 906 String toString() => name; |
| 906 } | 907 } |
| OLD | NEW |