| 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/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/error/listener.dart'; | 10 import 'package:analyzer/error/listener.dart'; |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 HintCode.DEPRECATED_MEMBER_USE, | 509 HintCode.DEPRECATED_MEMBER_USE, |
| 510 HintCode.DIVISION_OPTIMIZATION, | 510 HintCode.DIVISION_OPTIMIZATION, |
| 511 HintCode.DUPLICATE_IMPORT, | 511 HintCode.DUPLICATE_IMPORT, |
| 512 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, | 512 HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSIDE, |
| 513 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, | 513 HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSIDE, |
| 514 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, | 514 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, |
| 515 HintCode.INVALID_ASSIGNMENT, | 515 HintCode.INVALID_ASSIGNMENT, |
| 516 HintCode.INVALID_FACTORY_ANNOTATION, | 516 HintCode.INVALID_FACTORY_ANNOTATION, |
| 517 HintCode.INVALID_FACTORY_METHOD_DECL, | 517 HintCode.INVALID_FACTORY_METHOD_DECL, |
| 518 HintCode.INVALID_FACTORY_METHOD_IMPL, | 518 HintCode.INVALID_FACTORY_METHOD_IMPL, |
| 519 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETERS, |
| 520 HintCode.INVALID_METHOD_OVERRIDE_TYPE_PARAMETER_BOUND, |
| 519 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, | 521 HintCode.INVALID_USE_OF_PROTECTED_MEMBER, |
| 520 HintCode.IS_DOUBLE, | 522 HintCode.IS_DOUBLE, |
| 521 HintCode.IS_INT, | 523 HintCode.IS_INT, |
| 522 HintCode.IS_NOT_DOUBLE, | 524 HintCode.IS_NOT_DOUBLE, |
| 523 HintCode.IS_NOT_INT, | 525 HintCode.IS_NOT_INT, |
| 524 HintCode.MISSING_JS_LIB_ANNOTATION, | 526 HintCode.MISSING_JS_LIB_ANNOTATION, |
| 525 HintCode.MISSING_REQUIRED_PARAM, | 527 HintCode.MISSING_REQUIRED_PARAM, |
| 526 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS, | 528 HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS, |
| 527 HintCode.MISSING_RETURN, | 529 HintCode.MISSING_RETURN, |
| 528 HintCode.MUST_CALL_SUPER, | 530 HintCode.MUST_CALL_SUPER, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 546 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, | 548 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, |
| 547 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, | 549 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, |
| 548 HintCode.UNUSED_CATCH_CLAUSE, | 550 HintCode.UNUSED_CATCH_CLAUSE, |
| 549 HintCode.UNUSED_CATCH_STACK, | 551 HintCode.UNUSED_CATCH_STACK, |
| 550 HintCode.UNUSED_ELEMENT, | 552 HintCode.UNUSED_ELEMENT, |
| 551 HintCode.UNUSED_FIELD, | 553 HintCode.UNUSED_FIELD, |
| 552 HintCode.UNUSED_IMPORT, | 554 HintCode.UNUSED_IMPORT, |
| 553 HintCode.UNUSED_LOCAL_VARIABLE, | 555 HintCode.UNUSED_LOCAL_VARIABLE, |
| 554 HintCode.UNUSED_SHOWN_NAME, | 556 HintCode.UNUSED_SHOWN_NAME, |
| 555 HintCode.USE_OF_VOID_RESULT, | 557 HintCode.USE_OF_VOID_RESULT, |
| 558 HintCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD, |
| 556 HtmlErrorCode.PARSE_ERROR, | 559 HtmlErrorCode.PARSE_ERROR, |
| 557 HtmlWarningCode.INVALID_URI, | 560 HtmlWarningCode.INVALID_URI, |
| 558 HtmlWarningCode.URI_DOES_NOT_EXIST, | 561 HtmlWarningCode.URI_DOES_NOT_EXIST, |
| 559 ParserErrorCode.ABSTRACT_CLASS_MEMBER, | 562 ParserErrorCode.ABSTRACT_CLASS_MEMBER, |
| 560 ParserErrorCode.ABSTRACT_ENUM, | 563 ParserErrorCode.ABSTRACT_ENUM, |
| 561 ParserErrorCode.ABSTRACT_STATIC_METHOD, | 564 ParserErrorCode.ABSTRACT_STATIC_METHOD, |
| 562 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION, | 565 ParserErrorCode.ABSTRACT_TOP_LEVEL_FUNCTION, |
| 563 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE, | 566 ParserErrorCode.ABSTRACT_TOP_LEVEL_VARIABLE, |
| 564 ParserErrorCode.ABSTRACT_TYPEDEF, | 567 ParserErrorCode.ABSTRACT_TYPEDEF, |
| 565 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT, | 568 ParserErrorCode.ANNOTATION_ON_ENUM_CONSTANT, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 StaticTypeWarningCode.UNDEFINED_METHOD, | 750 StaticTypeWarningCode.UNDEFINED_METHOD, |
| 748 StaticTypeWarningCode.UNDEFINED_METHOD_WITH_CONSTRUCTOR, | 751 StaticTypeWarningCode.UNDEFINED_METHOD_WITH_CONSTRUCTOR, |
| 749 StaticTypeWarningCode.UNDEFINED_OPERATOR, | 752 StaticTypeWarningCode.UNDEFINED_OPERATOR, |
| 750 StaticTypeWarningCode.UNDEFINED_SETTER, | 753 StaticTypeWarningCode.UNDEFINED_SETTER, |
| 751 StaticTypeWarningCode.UNDEFINED_SUPER_GETTER, | 754 StaticTypeWarningCode.UNDEFINED_SUPER_GETTER, |
| 752 StaticTypeWarningCode.UNDEFINED_SUPER_METHOD, | 755 StaticTypeWarningCode.UNDEFINED_SUPER_METHOD, |
| 753 StaticTypeWarningCode.UNDEFINED_SUPER_OPERATOR, | 756 StaticTypeWarningCode.UNDEFINED_SUPER_OPERATOR, |
| 754 StaticTypeWarningCode.UNDEFINED_SUPER_SETTER, | 757 StaticTypeWarningCode.UNDEFINED_SUPER_SETTER, |
| 755 StaticTypeWarningCode.UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER, | 758 StaticTypeWarningCode.UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER, |
| 756 StaticTypeWarningCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS, | 759 StaticTypeWarningCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS, |
| 760 StaticTypeWarningCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS_METHOD, |
| 757 StaticTypeWarningCode.YIELD_OF_INVALID_TYPE, | 761 StaticTypeWarningCode.YIELD_OF_INVALID_TYPE, |
| 758 StaticWarningCode.AMBIGUOUS_IMPORT, | 762 StaticWarningCode.AMBIGUOUS_IMPORT, |
| 759 StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, | 763 StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE, |
| 760 StaticWarningCode.ASSIGNMENT_TO_CONST, | 764 StaticWarningCode.ASSIGNMENT_TO_CONST, |
| 761 StaticWarningCode.ASSIGNMENT_TO_FINAL, | 765 StaticWarningCode.ASSIGNMENT_TO_FINAL, |
| 762 StaticWarningCode.ASSIGNMENT_TO_FINAL_NO_SETTER, | 766 StaticWarningCode.ASSIGNMENT_TO_FINAL_NO_SETTER, |
| 763 StaticWarningCode.ASSIGNMENT_TO_FUNCTION, | 767 StaticWarningCode.ASSIGNMENT_TO_FUNCTION, |
| 764 StaticWarningCode.ASSIGNMENT_TO_METHOD, | 768 StaticWarningCode.ASSIGNMENT_TO_METHOD, |
| 765 StaticWarningCode.ASSIGNMENT_TO_TYPE, | 769 StaticWarningCode.ASSIGNMENT_TO_TYPE, |
| 766 StaticWarningCode.CASE_BLOCK_NOT_TERMINATED, | 770 StaticWarningCode.CASE_BLOCK_NOT_TERMINATED, |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 | 1180 |
| 1177 @override | 1181 @override |
| 1178 int get hashCode => ordinal; | 1182 int get hashCode => ordinal; |
| 1179 | 1183 |
| 1180 @override | 1184 @override |
| 1181 int compareTo(ErrorType other) => ordinal - other.ordinal; | 1185 int compareTo(ErrorType other) => ordinal - other.ordinal; |
| 1182 | 1186 |
| 1183 @override | 1187 @override |
| 1184 String toString() => name; | 1188 String toString() => name; |
| 1185 } | 1189 } |
| OLD | NEW |