| 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.src.generated.error; | 5 library analyzer.src.generated.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/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| (...skipping 2687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2698 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, | 2698 HintCode.IMPORT_DEFERRED_LIBRARY_WITH_LOAD_FUNCTION, |
| 2699 HintCode.INVALID_ASSIGNMENT, | 2699 HintCode.INVALID_ASSIGNMENT, |
| 2700 HintCode.MISSING_RETURN, | 2700 HintCode.MISSING_RETURN, |
| 2701 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, | 2701 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, |
| 2702 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, | 2702 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, |
| 2703 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, | 2703 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, |
| 2704 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, | 2704 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, |
| 2705 HintCode.TYPE_CHECK_IS_NOT_NULL, | 2705 HintCode.TYPE_CHECK_IS_NOT_NULL, |
| 2706 HintCode.TYPE_CHECK_IS_NULL, | 2706 HintCode.TYPE_CHECK_IS_NULL, |
| 2707 HintCode.UNDEFINED_GETTER, | 2707 HintCode.UNDEFINED_GETTER, |
| 2708 HintCode.UNDEFINED_IDENTIFIER, |
| 2709 HintCode.UNDEFINED_MEMBER, |
| 2708 HintCode.UNDEFINED_METHOD, | 2710 HintCode.UNDEFINED_METHOD, |
| 2709 HintCode.UNDEFINED_OPERATOR, | 2711 HintCode.UNDEFINED_OPERATOR, |
| 2710 HintCode.UNDEFINED_SETTER, | 2712 HintCode.UNDEFINED_SETTER, |
| 2711 HintCode.UNNECESSARY_CAST, | 2713 HintCode.UNNECESSARY_CAST, |
| 2712 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, | 2714 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, |
| 2713 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, | 2715 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, |
| 2714 HintCode.UNUSED_ELEMENT, | 2716 HintCode.UNUSED_ELEMENT, |
| 2715 HintCode.UNUSED_FIELD, | 2717 HintCode.UNUSED_FIELD, |
| 2716 HintCode.UNUSED_IMPORT, | 2718 HintCode.UNUSED_IMPORT, |
| 2717 HintCode.UNUSED_CATCH_CLAUSE, | 2719 HintCode.UNUSED_CATCH_CLAUSE, |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3626 * | 3628 * |
| 3627 * Parameters: | 3629 * Parameters: |
| 3628 * 0: the name of the getter | 3630 * 0: the name of the getter |
| 3629 * 1: the name of the enclosing type where the getter is being looked for | 3631 * 1: the name of the enclosing type where the getter is being looked for |
| 3630 */ | 3632 */ |
| 3631 static const HintCode UNDEFINED_GETTER = const HintCode('UNDEFINED_GETTER', | 3633 static const HintCode UNDEFINED_GETTER = const HintCode('UNDEFINED_GETTER', |
| 3632 "The getter '{0}' is not defined for the class '{1}'"); | 3634 "The getter '{0}' is not defined for the class '{1}'"); |
| 3633 | 3635 |
| 3634 /** | 3636 /** |
| 3635 * This hint is generated anywhere where the | 3637 * This hint is generated anywhere where the |
| 3638 * [StaticWarningCode.UNDEFINED_IDENTIFIER] would have been generated, if it |
| 3639 * were required by the specification. |
| 3640 * |
| 3641 * Parameters: |
| 3642 * 0: the name of the identifier |
| 3643 */ |
| 3644 static const HintCode UNDEFINED_IDENTIFIER = |
| 3645 const HintCode('UNDEFINED_IDENTIFIER', "Undefined name '{0}'"); |
| 3646 |
| 3647 /** |
| 3648 * This hint is generated anywhere where the |
| 3649 * [StaticTypeWarningCode.UNDEFINED_GETTER], |
| 3650 * [StaticTypeWarningCode.UNDEFINED_METHOD] or |
| 3651 * [StaticTypeWarningCode.UNDEFINED_SETTER] would have been generated, if it |
| 3652 * were required by the specification. |
| 3653 * |
| 3654 * Parameters: |
| 3655 * 0: the name of the member that is undefined |
| 3656 * 1: the resolved type name that the method lookup is happening on |
| 3657 */ |
| 3658 static const HintCode UNDEFINED_MEMBER = const HintCode('UNDEFINED_MEMBER', |
| 3659 "The member '{0}' is not defined for the class '{1}'"); |
| 3660 |
| 3661 /** |
| 3662 * This hint is generated anywhere where the |
| 3636 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we | 3663 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we |
| 3637 * used propagated information for the warnings. | 3664 * used propagated information for the warnings. |
| 3638 * | 3665 * |
| 3639 * Parameters: | 3666 * Parameters: |
| 3640 * 0: the name of the method that is undefined | 3667 * 0: the name of the method that is undefined |
| 3641 * 1: the resolved type name that the method lookup is happening on | 3668 * 1: the resolved type name that the method lookup is happening on |
| 3642 */ | 3669 */ |
| 3643 static const HintCode UNDEFINED_METHOD = const HintCode('UNDEFINED_METHOD', | 3670 static const HintCode UNDEFINED_METHOD = const HintCode('UNDEFINED_METHOD', |
| 3644 "The method '{0}' is not defined for the class '{1}'"); | 3671 "The method '{0}' is not defined for the class '{1}'"); |
| 3645 | 3672 |
| (...skipping 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5691 * Initialize a newly created error code to have the given [name]. | 5718 * Initialize a newly created error code to have the given [name]. |
| 5692 */ | 5719 */ |
| 5693 const TodoCode(String name) : super(name, "{0}"); | 5720 const TodoCode(String name) : super(name, "{0}"); |
| 5694 | 5721 |
| 5695 @override | 5722 @override |
| 5696 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5723 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5697 | 5724 |
| 5698 @override | 5725 @override |
| 5699 ErrorType get type => ErrorType.TODO; | 5726 ErrorType get type => ErrorType.TODO; |
| 5700 } | 5727 } |
| OLD | NEW |