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.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/ast/ast.dart' show AstNode; | 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2688 HintCode.MISSING_REQUIRED_PARAM, | 2688 HintCode.MISSING_REQUIRED_PARAM, |
| 2689 HintCode.MISSING_RETURN, | 2689 HintCode.MISSING_RETURN, |
| 2690 HintCode.NULL_AWARE_IN_CONDITION, | 2690 HintCode.NULL_AWARE_IN_CONDITION, |
| 2691 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, | 2691 HintCode.OVERRIDE_ON_NON_OVERRIDING_GETTER, |
| 2692 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, | 2692 HintCode.OVERRIDE_ON_NON_OVERRIDING_METHOD, |
| 2693 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, | 2693 HintCode.OVERRIDE_ON_NON_OVERRIDING_SETTER, |
| 2694 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, | 2694 HintCode.OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, |
| 2695 HintCode.TYPE_CHECK_IS_NOT_NULL, | 2695 HintCode.TYPE_CHECK_IS_NOT_NULL, |
| 2696 HintCode.TYPE_CHECK_IS_NULL, | 2696 HintCode.TYPE_CHECK_IS_NULL, |
| 2697 HintCode.UNDEFINED_GETTER, | 2697 HintCode.UNDEFINED_GETTER, |
| 2698 HintCode.UNDEFINED_HIDDEN_NAME, | |
| 2698 HintCode.UNDEFINED_METHOD, | 2699 HintCode.UNDEFINED_METHOD, |
| 2699 HintCode.UNDEFINED_OPERATOR, | 2700 HintCode.UNDEFINED_OPERATOR, |
| 2700 HintCode.UNDEFINED_SETTER, | 2701 HintCode.UNDEFINED_SETTER, |
| 2702 HintCode.UNDEFINED_SHOWN_NAME, | |
| 2701 HintCode.UNNECESSARY_CAST, | 2703 HintCode.UNNECESSARY_CAST, |
| 2702 HintCode.UNNECESSARY_NO_SUCH_METHOD, | 2704 HintCode.UNNECESSARY_NO_SUCH_METHOD, |
| 2703 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, | 2705 HintCode.UNNECESSARY_TYPE_CHECK_FALSE, |
| 2704 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, | 2706 HintCode.UNNECESSARY_TYPE_CHECK_TRUE, |
| 2705 HintCode.UNUSED_ELEMENT, | 2707 HintCode.UNUSED_ELEMENT, |
| 2706 HintCode.UNUSED_FIELD, | 2708 HintCode.UNUSED_FIELD, |
| 2707 HintCode.UNUSED_IMPORT, | 2709 HintCode.UNUSED_IMPORT, |
| 2708 HintCode.UNUSED_CATCH_CLAUSE, | 2710 HintCode.UNUSED_CATCH_CLAUSE, |
| 2709 HintCode.UNUSED_CATCH_STACK, | 2711 HintCode.UNUSED_CATCH_STACK, |
| 2710 HintCode.UNUSED_LOCAL_VARIABLE, | 2712 HintCode.UNUSED_LOCAL_VARIABLE, |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3680 * propagated information for the warnings. | 3682 * propagated information for the warnings. |
| 3681 * | 3683 * |
| 3682 * Parameters: | 3684 * Parameters: |
| 3683 * 0: the name of the getter | 3685 * 0: the name of the getter |
| 3684 * 1: the name of the enclosing type where the getter is being looked for | 3686 * 1: the name of the enclosing type where the getter is being looked for |
| 3685 */ | 3687 */ |
| 3686 static const HintCode UNDEFINED_GETTER = | 3688 static const HintCode UNDEFINED_GETTER = |
| 3687 shared_messages.UNDEFINED_GETTER_HINT; | 3689 shared_messages.UNDEFINED_GETTER_HINT; |
| 3688 | 3690 |
| 3689 /** | 3691 /** |
| 3692 * An undefined name hidden in an import or export directive. | |
| 3693 */ | |
| 3694 static const HintCode UNDEFINED_HIDDEN_NAME = const HintCode( | |
| 3695 'UNDEFINED_HIDDEN_NAME', | |
| 3696 "The hidden name '{0}' is undefined."); | |
|
Lasse Reichstein Nielsen
2016/04/19 12:36:32
"is undefined" is a little vague. Maybe:
The libr
srawlins
2016/04/20 20:34:01
Done.
| |
| 3697 | |
| 3698 /** | |
| 3690 * This hint is generated anywhere where the | 3699 * This hint is generated anywhere where the |
| 3691 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we | 3700 * [StaticTypeWarningCode.UNDEFINED_METHOD] would have been generated, if we |
| 3692 * used propagated information for the warnings. | 3701 * used propagated information for the warnings. |
| 3693 * | 3702 * |
| 3694 * Parameters: | 3703 * Parameters: |
| 3695 * 0: the name of the method that is undefined | 3704 * 0: the name of the method that is undefined |
| 3696 * 1: the resolved type name that the method lookup is happening on | 3705 * 1: the resolved type name that the method lookup is happening on |
| 3697 */ | 3706 */ |
| 3698 static const HintCode UNDEFINED_METHOD = | 3707 static const HintCode UNDEFINED_METHOD = |
| 3699 shared_messages.UNDEFINED_METHOD_HINT; | 3708 shared_messages.UNDEFINED_METHOD_HINT; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 3717 * propagated information for the warnings. | 3726 * propagated information for the warnings. |
| 3718 * | 3727 * |
| 3719 * Parameters: | 3728 * Parameters: |
| 3720 * 0: the name of the setter | 3729 * 0: the name of the setter |
| 3721 * 1: the name of the enclosing type where the setter is being looked for | 3730 * 1: the name of the enclosing type where the setter is being looked for |
| 3722 */ | 3731 */ |
| 3723 static const HintCode UNDEFINED_SETTER = | 3732 static const HintCode UNDEFINED_SETTER = |
| 3724 shared_messages.UNDEFINED_SETTER_HINT; | 3733 shared_messages.UNDEFINED_SETTER_HINT; |
| 3725 | 3734 |
| 3726 /** | 3735 /** |
| 3736 * An undefined name shown in an import or export directive. | |
| 3737 */ | |
| 3738 static const HintCode UNDEFINED_SHOWN_NAME = const HintCode( | |
| 3739 'UNDEFINED_SHOWN_NAME', | |
| 3740 "The shown name '{0}' is undefined."); | |
| 3741 | |
| 3742 /** | |
| 3727 * Unnecessary cast. | 3743 * Unnecessary cast. |
| 3728 */ | 3744 */ |
| 3729 static const HintCode UNNECESSARY_CAST = | 3745 static const HintCode UNNECESSARY_CAST = |
| 3730 const HintCode('UNNECESSARY_CAST', "Unnecessary cast"); | 3746 const HintCode('UNNECESSARY_CAST', "Unnecessary cast"); |
| 3731 | 3747 |
| 3732 /** | 3748 /** |
| 3733 * Unnecessary `noSuchMethod` declaration. | 3749 * Unnecessary `noSuchMethod` declaration. |
| 3734 */ | 3750 */ |
| 3735 static const HintCode UNNECESSARY_NO_SUCH_METHOD = const HintCode( | 3751 static const HintCode UNNECESSARY_NO_SUCH_METHOD = const HintCode( |
| 3736 'UNNECESSARY_NO_SUCH_METHOD', "Unnecessary 'noSuchMethod' declaration"); | 3752 'UNNECESSARY_NO_SUCH_METHOD', "Unnecessary 'noSuchMethod' declaration"); |
| (...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5784 * Initialize a newly created error code to have the given [name]. | 5800 * Initialize a newly created error code to have the given [name]. |
| 5785 */ | 5801 */ |
| 5786 const TodoCode(String name) : super(name, "{0}"); | 5802 const TodoCode(String name) : super(name, "{0}"); |
| 5787 | 5803 |
| 5788 @override | 5804 @override |
| 5789 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5805 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5790 | 5806 |
| 5791 @override | 5807 @override |
| 5792 ErrorType get type => ErrorType.TODO; | 5808 ErrorType get type => ErrorType.TODO; |
| 5793 } | 5809 } |
| OLD | NEW |