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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine.error; | 8 library engine.error; |
9 | 9 |
10 import 'java_core.dart'; | 10 import 'java_core.dart'; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 AngularCode.con1(String name, int ordinal, String message) : this.con2(name, o
rdinal, message, ErrorSeverity.WARNING); | 203 AngularCode.con1(String name, int ordinal, String message) : this.con2(name, o
rdinal, message, ErrorSeverity.WARNING); |
204 | 204 |
205 /** | 205 /** |
206 * Initialize a newly created error code to have the given message. | 206 * Initialize a newly created error code to have the given message. |
207 * | 207 * |
208 * @param message the message template used to create the message to be displa
yed for the error | 208 * @param message the message template used to create the message to be displa
yed for the error |
209 * @param severity the severity of the problem | 209 * @param severity the severity of the problem |
210 */ | 210 */ |
211 AngularCode.con2(String name, int ordinal, String message, ErrorSeverity sever
ity) : super(name, ordinal) { | 211 AngularCode.con2(String name, int ordinal, String message, ErrorSeverity sever
ity) : super(name, ordinal) { |
212 this._message = message; | 212 this._message = message; |
213 this._severity = severity; | 213 this._severity = ErrorSeverity.INFO; |
214 } | 214 } |
215 | 215 |
216 String get correction => null; | 216 String get correction => null; |
217 | 217 |
218 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 218 ErrorSeverity get errorSeverity => _severity; |
219 | 219 |
220 String get message => _message; | 220 String get message => _message; |
221 | 221 |
222 ErrorType get type => ErrorType.ANGULAR; | 222 ErrorType get type => ErrorType.ANGULAR; |
223 } | 223 } |
224 | 224 |
225 /** | 225 /** |
226 * Instances of the class `ErrorReporter` wrap an error listener with utility me
thods used to | 226 * Instances of the class `ErrorReporter` wrap an error listener with utility me
thods used to |
227 * create the errors being reported. | 227 * create the errors being reported. |
228 * | 228 * |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 */ | 649 */ |
650 static final HintCode IS_NOT_INT = new HintCode.con1('IS_NOT_INT', 9, "When co
mpiled to JS, this test might return false when the left hand side is a double")
; | 650 static final HintCode IS_NOT_INT = new HintCode.con1('IS_NOT_INT', 9, "When co
mpiled to JS, this test might return false when the left hand side is a double")
; |
651 | 651 |
652 /** | 652 /** |
653 * Generate a hint for methods or functions that have a return type, but do no
t have a non-void | 653 * Generate a hint for methods or functions that have a return type, but do no
t have a non-void |
654 * return statement on all branches. At the end of methods or functions with n
o return, Dart | 654 * return statement on all branches. At the end of methods or functions with n
o return, Dart |
655 * implicitly returns `null`, avoiding these implicit returns is considered a
best practice. | 655 * implicitly returns `null`, avoiding these implicit returns is considered a
best practice. |
656 * | 656 * |
657 * @param returnType the name of the declared return type | 657 * @param returnType the name of the declared return type |
658 */ | 658 */ |
659 static final HintCode MISSING_RETURN = new HintCode.con2('MISSING_RETURN', 10,
"This function declares a return type of '%s', but does not end with a return s
tatement.", "Either add a return statement or change the return type to 'void'."
); | 659 static final HintCode MISSING_RETURN = new HintCode.con2('MISSING_RETURN', 10,
"This function declares a return type of '%s', but does not end with a return s
tatement", "Either add a return statement or change the return type to 'void'"); |
| 660 |
| 661 /** |
| 662 * A getter with the override annotation does not override an existing getter. |
| 663 */ |
| 664 static final HintCode OVERRIDE_ON_NON_OVERRIDING_GETTER = new HintCode.con1('O
VERRIDE_ON_NON_OVERRIDING_GETTER', 11, "Getter does not override an inherited ge
tter"); |
| 665 |
| 666 /** |
| 667 * A method with the override annotation does not override an existing method. |
| 668 */ |
| 669 static final HintCode OVERRIDE_ON_NON_OVERRIDING_METHOD = new HintCode.con1('O
VERRIDE_ON_NON_OVERRIDING_METHOD', 12, "Method does not override an inherited me
thod"); |
| 670 |
| 671 /** |
| 672 * A setter with the override annotation does not override an existing setter. |
| 673 */ |
| 674 static final HintCode OVERRIDE_ON_NON_OVERRIDING_SETTER = new HintCode.con1('O
VERRIDE_ON_NON_OVERRIDING_SETTER', 13, "Setter does not override an inherited se
tter"); |
660 | 675 |
661 /** | 676 /** |
662 * It is not in best practice to declare a private method that happens to over
ride the method in a | 677 * It is not in best practice to declare a private method that happens to over
ride the method in a |
663 * superclass- depending on where the superclass is (either in the same librar
y, or out of the | 678 * superclass- depending on where the superclass is (either in the same librar
y, or out of the |
664 * same library), behavior can be different. | 679 * same library), behavior can be different. |
665 * | 680 * |
666 * @param memberType this is either "method", "getter" or "setter" | 681 * @param memberType this is either "method", "getter" or "setter" |
667 * @param memberName some private member name | 682 * @param memberName some private member name |
668 * @param className the class name where the member is overriding the function
ality | 683 * @param className the class name where the member is overriding the function
ality |
669 */ | 684 */ |
670 static final HintCode OVERRIDDING_PRIVATE_MEMBER = new HintCode.con1('OVERRIDD
ING_PRIVATE_MEMBER', 11, "The %s '%s' does not override the definition from '%s'
because it is private and in a different library"); | 685 static final HintCode OVERRIDDING_PRIVATE_MEMBER = new HintCode.con1('OVERRIDD
ING_PRIVATE_MEMBER', 14, "The %s '%s' does not override the definition from '%s'
because it is private and in a different library"); |
671 | 686 |
672 /** | 687 /** |
673 * Hint for classes that override equals, but not hashCode. | 688 * Hint for classes that override equals, but not hashCode. |
674 * | 689 * |
675 * @param className the name of the current class | 690 * @param className the name of the current class |
676 */ | 691 */ |
677 static final HintCode OVERRIDE_EQUALS_BUT_NOT_HASH_CODE = new HintCode.con1('O
VERRIDE_EQUALS_BUT_NOT_HASH_CODE', 12, "The class '%s' overrides 'operator==', b
ut not 'get hashCode'"); | 692 static final HintCode OVERRIDE_EQUALS_BUT_NOT_HASH_CODE = new HintCode.con1('O
VERRIDE_EQUALS_BUT_NOT_HASH_CODE', 15, "The class '%s' overrides 'operator==', b
ut not 'get hashCode'"); |
678 | 693 |
679 /** | 694 /** |
680 * Type checks of the type `x is! Null` should be done with `x != null`. | 695 * Type checks of the type `x is! Null` should be done with `x != null`. |
681 */ | 696 */ |
682 static final HintCode TYPE_CHECK_IS_NOT_NULL = new HintCode.con1('TYPE_CHECK_I
S_NOT_NULL', 13, "Tests for non-null should be done with '!= null'"); | 697 static final HintCode TYPE_CHECK_IS_NOT_NULL = new HintCode.con1('TYPE_CHECK_I
S_NOT_NULL', 16, "Tests for non-null should be done with '!= null'"); |
683 | 698 |
684 /** | 699 /** |
685 * Type checks of the type `x is Null` should be done with `x == null`. | 700 * Type checks of the type `x is Null` should be done with `x == null`. |
686 */ | 701 */ |
687 static final HintCode TYPE_CHECK_IS_NULL = new HintCode.con1('TYPE_CHECK_IS_NU
LL', 14, "Tests for null should be done with '== null'"); | 702 static final HintCode TYPE_CHECK_IS_NULL = new HintCode.con1('TYPE_CHECK_IS_NU
LL', 17, "Tests for null should be done with '== null'"); |
688 | 703 |
689 /** | 704 /** |
690 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
GETTER] or | 705 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
GETTER] or |
691 * [StaticWarningCode#UNDEFINED_GETTER] would have been generated, if we used
propagated | 706 * [StaticWarningCode#UNDEFINED_GETTER] would have been generated, if we used
propagated |
692 * information for the warnings. | 707 * information for the warnings. |
693 * | 708 * |
694 * @param getterName the name of the getter | 709 * @param getterName the name of the getter |
695 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for | 710 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for |
696 * @see StaticTypeWarningCode#UNDEFINED_GETTER | 711 * @see StaticTypeWarningCode#UNDEFINED_GETTER |
697 * @see StaticWarningCode#UNDEFINED_GETTER | 712 * @see StaticWarningCode#UNDEFINED_GETTER |
698 */ | 713 */ |
699 static final HintCode UNDEFINED_GETTER = new HintCode.con1('UNDEFINED_GETTER',
15, StaticTypeWarningCode.UNDEFINED_GETTER.message); | 714 static final HintCode UNDEFINED_GETTER = new HintCode.con1('UNDEFINED_GETTER',
18, StaticTypeWarningCode.UNDEFINED_GETTER.message); |
700 | 715 |
701 /** | 716 /** |
702 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
METHOD] would | 717 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
METHOD] would |
703 * have been generated, if we used propagated information for the warnings. | 718 * have been generated, if we used propagated information for the warnings. |
704 * | 719 * |
705 * @param methodName the name of the method that is undefined | 720 * @param methodName the name of the method that is undefined |
706 * @param typeName the resolved type name that the method lookup is happening
on | 721 * @param typeName the resolved type name that the method lookup is happening
on |
707 * @see StaticTypeWarningCode#UNDEFINED_METHOD | 722 * @see StaticTypeWarningCode#UNDEFINED_METHOD |
708 */ | 723 */ |
709 static final HintCode UNDEFINED_METHOD = new HintCode.con1('UNDEFINED_METHOD',
16, StaticTypeWarningCode.UNDEFINED_METHOD.message); | 724 static final HintCode UNDEFINED_METHOD = new HintCode.con1('UNDEFINED_METHOD',
19, StaticTypeWarningCode.UNDEFINED_METHOD.message); |
710 | 725 |
711 /** | 726 /** |
712 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
OPERATOR] | 727 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
OPERATOR] |
713 * would have been generated, if we used propagated information for the warnin
gs. | 728 * would have been generated, if we used propagated information for the warnin
gs. |
714 * | 729 * |
715 * @param operator the name of the operator | 730 * @param operator the name of the operator |
716 * @param enclosingType the name of the enclosing type where the operator is b
eing looked for | 731 * @param enclosingType the name of the enclosing type where the operator is b
eing looked for |
717 * @see StaticTypeWarningCode#UNDEFINED_OPERATOR | 732 * @see StaticTypeWarningCode#UNDEFINED_OPERATOR |
718 */ | 733 */ |
719 static final HintCode UNDEFINED_OPERATOR = new HintCode.con1('UNDEFINED_OPERAT
OR', 17, StaticTypeWarningCode.UNDEFINED_OPERATOR.message); | 734 static final HintCode UNDEFINED_OPERATOR = new HintCode.con1('UNDEFINED_OPERAT
OR', 20, StaticTypeWarningCode.UNDEFINED_OPERATOR.message); |
720 | 735 |
721 /** | 736 /** |
722 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
SETTER] or | 737 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_
SETTER] or |
723 * [StaticWarningCode#UNDEFINED_SETTER] would have been generated, if we used
propagated | 738 * [StaticWarningCode#UNDEFINED_SETTER] would have been generated, if we used
propagated |
724 * information for the warnings. | 739 * information for the warnings. |
725 * | 740 * |
726 * @param setterName the name of the setter | 741 * @param setterName the name of the setter |
727 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for | 742 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for |
728 * @see StaticTypeWarningCode#UNDEFINED_SETTER | 743 * @see StaticTypeWarningCode#UNDEFINED_SETTER |
729 * @see StaticWarningCode#UNDEFINED_SETTER | 744 * @see StaticWarningCode#UNDEFINED_SETTER |
730 */ | 745 */ |
731 static final HintCode UNDEFINED_SETTER = new HintCode.con1('UNDEFINED_SETTER',
18, StaticTypeWarningCode.UNDEFINED_SETTER.message); | 746 static final HintCode UNDEFINED_SETTER = new HintCode.con1('UNDEFINED_SETTER',
21, StaticTypeWarningCode.UNDEFINED_SETTER.message); |
732 | 747 |
733 /** | 748 /** |
734 * Unnecessary cast. | 749 * Unnecessary cast. |
735 */ | 750 */ |
736 static final HintCode UNNECESSARY_CAST = new HintCode.con1('UNNECESSARY_CAST',
19, "Unnecessary cast"); | 751 static final HintCode UNNECESSARY_CAST = new HintCode.con1('UNNECESSARY_CAST',
22, "Unnecessary cast"); |
737 | 752 |
738 /** | 753 /** |
739 * Unnecessary type checks, the result is always true. | 754 * Unnecessary type checks, the result is always true. |
740 */ | 755 */ |
741 static final HintCode UNNECESSARY_TYPE_CHECK_FALSE = new HintCode.con1('UNNECE
SSARY_TYPE_CHECK_FALSE', 20, "Unnecessary type check, the result is always false
"); | 756 static final HintCode UNNECESSARY_TYPE_CHECK_FALSE = new HintCode.con1('UNNECE
SSARY_TYPE_CHECK_FALSE', 23, "Unnecessary type check, the result is always false
"); |
742 | 757 |
743 /** | 758 /** |
744 * Unnecessary type checks, the result is always false. | 759 * Unnecessary type checks, the result is always false. |
745 */ | 760 */ |
746 static final HintCode UNNECESSARY_TYPE_CHECK_TRUE = new HintCode.con1('UNNECES
SARY_TYPE_CHECK_TRUE', 21, "Unnecessary type check, the result is always true"); | 761 static final HintCode UNNECESSARY_TYPE_CHECK_TRUE = new HintCode.con1('UNNECES
SARY_TYPE_CHECK_TRUE', 24, "Unnecessary type check, the result is always true"); |
747 | 762 |
748 /** | 763 /** |
749 * Unused imports are imports which are never not used. | 764 * Unused imports are imports which are never not used. |
750 */ | 765 */ |
751 static final HintCode UNUSED_IMPORT = new HintCode.con1('UNUSED_IMPORT', 22, "
Unused import"); | 766 static final HintCode UNUSED_IMPORT = new HintCode.con1('UNUSED_IMPORT', 25, "
Unused import"); |
752 | 767 |
753 /** | 768 /** |
754 * Hint for cases where the source expects a method or function to return a no
n-void result, but | 769 * Hint for cases where the source expects a method or function to return a no
n-void result, but |
755 * the method or function signature returns void. | 770 * the method or function signature returns void. |
756 * | 771 * |
757 * @param name the name of the method or function that returns void | 772 * @param name the name of the method or function that returns void |
758 */ | 773 */ |
759 static final HintCode USE_OF_VOID_RESULT = new HintCode.con1('USE_OF_VOID_RESU
LT', 23, "The result of '%s' is being used, even though it is declared to be 'vo
id'"); | 774 static final HintCode USE_OF_VOID_RESULT = new HintCode.con1('USE_OF_VOID_RESU
LT', 26, "The result of '%s' is being used, even though it is declared to be 'vo
id'"); |
760 | 775 |
761 static final List<HintCode> values = [ | 776 static final List<HintCode> values = [ |
762 DEAD_CODE, | 777 DEAD_CODE, |
763 DEAD_CODE_CATCH_FOLLOWING_CATCH, | 778 DEAD_CODE_CATCH_FOLLOWING_CATCH, |
764 DEAD_CODE_ON_CATCH_SUBTYPE, | 779 DEAD_CODE_ON_CATCH_SUBTYPE, |
765 DEPRECATED_MEMBER_USE, | 780 DEPRECATED_MEMBER_USE, |
766 DUPLICATE_IMPORT, | 781 DUPLICATE_IMPORT, |
767 DIVISION_OPTIMIZATION, | 782 DIVISION_OPTIMIZATION, |
768 IS_DOUBLE, | 783 IS_DOUBLE, |
769 IS_INT, | 784 IS_INT, |
770 IS_NOT_DOUBLE, | 785 IS_NOT_DOUBLE, |
771 IS_NOT_INT, | 786 IS_NOT_INT, |
772 MISSING_RETURN, | 787 MISSING_RETURN, |
| 788 OVERRIDE_ON_NON_OVERRIDING_GETTER, |
| 789 OVERRIDE_ON_NON_OVERRIDING_METHOD, |
| 790 OVERRIDE_ON_NON_OVERRIDING_SETTER, |
773 OVERRIDDING_PRIVATE_MEMBER, | 791 OVERRIDDING_PRIVATE_MEMBER, |
774 OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, | 792 OVERRIDE_EQUALS_BUT_NOT_HASH_CODE, |
775 TYPE_CHECK_IS_NOT_NULL, | 793 TYPE_CHECK_IS_NOT_NULL, |
776 TYPE_CHECK_IS_NULL, | 794 TYPE_CHECK_IS_NULL, |
777 UNDEFINED_GETTER, | 795 UNDEFINED_GETTER, |
778 UNDEFINED_METHOD, | 796 UNDEFINED_METHOD, |
779 UNDEFINED_OPERATOR, | 797 UNDEFINED_OPERATOR, |
780 UNDEFINED_SETTER, | 798 UNDEFINED_SETTER, |
781 UNNECESSARY_CAST, | 799 UNNECESSARY_CAST, |
782 UNNECESSARY_TYPE_CHECK_FALSE, | 800 UNNECESSARY_TYPE_CHECK_FALSE, |
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2414 * | 2432 * |
2415 * A constant variable is always implicitly final. | 2433 * A constant variable is always implicitly final. |
2416 */ | 2434 */ |
2417 static final StaticWarningCode ASSIGNMENT_TO_CONST = new StaticWarningCode.con
1('ASSIGNMENT_TO_CONST', 2, "Constant variables cannot be assigned a value"); | 2435 static final StaticWarningCode ASSIGNMENT_TO_CONST = new StaticWarningCode.con
1('ASSIGNMENT_TO_CONST', 2, "Constant variables cannot be assigned a value"); |
2418 | 2436 |
2419 /** | 2437 /** |
2420 * 5 Variables: Attempting to assign to a final variable elsewhere will cause
a NoSuchMethodError | 2438 * 5 Variables: Attempting to assign to a final variable elsewhere will cause
a NoSuchMethodError |
2421 * to be thrown, because no setter is defined for it. The assignment will also
give rise to a | 2439 * to be thrown, because no setter is defined for it. The assignment will also
give rise to a |
2422 * static warning for the same reason. | 2440 * static warning for the same reason. |
2423 */ | 2441 */ |
2424 static final StaticWarningCode ASSIGNMENT_TO_FINAL = new StaticWarningCode.con
1('ASSIGNMENT_TO_FINAL', 3, "Final variables cannot be assigned a value"); | 2442 static final StaticWarningCode ASSIGNMENT_TO_FINAL = new StaticWarningCode.con
1('ASSIGNMENT_TO_FINAL', 3, "'%s' cannot be used as a setter, it is final"); |
2425 | 2443 |
2426 /** | 2444 /** |
2427 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
It is a static type | 2445 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
It is a static type |
2428 * warning if <i>T</i> does not have an accessible instance setter named <i>v
=</i>. | 2446 * warning if <i>T</i> does not have an accessible instance setter named <i>v
=</i>. |
2429 */ | 2447 */ |
2430 static final StaticWarningCode ASSIGNMENT_TO_METHOD = new StaticWarningCode.co
n1('ASSIGNMENT_TO_METHOD', 4, "Methods cannot be assigned a value"); | 2448 static final StaticWarningCode ASSIGNMENT_TO_METHOD = new StaticWarningCode.co
n1('ASSIGNMENT_TO_METHOD', 4, "Methods cannot be assigned a value"); |
2431 | 2449 |
2432 /** | 2450 /** |
2433 * 13.9 Switch: It is a static warning if the last statement of the statement
sequence | 2451 * 13.9 Switch: It is a static warning if the last statement of the statement
sequence |
2434 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement. | 2452 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement. |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2864 * | 2882 * |
2865 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 2883 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
2866 * inherited in a concrete class unless that member overrides a concrete one. | 2884 * inherited in a concrete class unless that member overrides a concrete one. |
2867 * | 2885 * |
2868 * @param memberName the name of the first member | 2886 * @param memberName the name of the first member |
2869 * @param memberName the name of the second member | 2887 * @param memberName the name of the second member |
2870 * @param memberName the name of the third member | 2888 * @param memberName the name of the third member |
2871 * @param memberName the name of the fourth member | 2889 * @param memberName the name of the fourth member |
2872 * @param additionalCount the number of additional missing members that aren't
listed | 2890 * @param additionalCount the number of additional missing members that aren't
listed |
2873 */ | 2891 */ |
2874 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV
E_PLUS = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER
_FIVE_PLUS', 49, "Missing inherited members: '%s', '%s', '%s', '%s' and %d more"
); | 2892 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV
E_PLUS = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER
_FIVE_PLUS', 49, "Missing concrete implementation of '%s', '%s', '%s', '%s' and
%d more"); |
2875 | 2893 |
2876 /** | 2894 /** |
2877 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2895 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
2878 * abstract method. | 2896 * abstract method. |
2879 * | 2897 * |
2880 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 2898 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
2881 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 2899 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
2882 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 2900 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
2883 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 2901 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
2884 * | 2902 * |
2885 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 2903 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
2886 * inherited in a concrete class unless that member overrides a concrete one. | 2904 * inherited in a concrete class unless that member overrides a concrete one. |
2887 * | 2905 * |
2888 * @param memberName the name of the first member | 2906 * @param memberName the name of the first member |
2889 * @param memberName the name of the second member | 2907 * @param memberName the name of the second member |
2890 * @param memberName the name of the third member | 2908 * @param memberName the name of the third member |
2891 * @param memberName the name of the fourth member | 2909 * @param memberName the name of the fourth member |
2892 */ | 2910 */ |
2893 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU
R = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR
', 50, "Missing inherited members: '%s', '%s', '%s' and '%s'"); | 2911 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU
R = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR
', 50, "Missing concrete implementation of '%s', '%s', '%s' and '%s'"); |
2894 | 2912 |
2895 /** | 2913 /** |
2896 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2914 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
2897 * abstract method. | 2915 * abstract method. |
2898 * | 2916 * |
2899 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 2917 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
2900 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 2918 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
2901 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 2919 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
2902 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 2920 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
2903 * | 2921 * |
2904 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 2922 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
2905 * inherited in a concrete class unless that member overrides a concrete one. | 2923 * inherited in a concrete class unless that member overrides a concrete one. |
2906 * | 2924 * |
2907 * @param memberName the name of the member | 2925 * @param memberName the name of the member |
2908 */ | 2926 */ |
2909 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
= new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE',
51, "Missing inherited member '%s'"); | 2927 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
= new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE',
51, "Missing concrete implementation of '%s'"); |
2910 | 2928 |
2911 /** | 2929 /** |
2912 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2930 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
2913 * abstract method. | 2931 * abstract method. |
2914 * | 2932 * |
2915 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 2933 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
2916 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 2934 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
2917 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 2935 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
2918 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 2936 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
2919 * | 2937 * |
2920 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 2938 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
2921 * inherited in a concrete class unless that member overrides a concrete one. | 2939 * inherited in a concrete class unless that member overrides a concrete one. |
2922 * | 2940 * |
2923 * @param memberName the name of the first member | 2941 * @param memberName the name of the first member |
2924 * @param memberName the name of the second member | 2942 * @param memberName the name of the second member |
2925 * @param memberName the name of the third member | 2943 * @param memberName the name of the third member |
2926 */ | 2944 */ |
2927 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE', 52, "Missing inherited members: '%s', '%s' and '%s'"); | 2945 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE = new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE', 52, "Missing concrete implementation of '%s', '%s' and '%s'"); |
2928 | 2946 |
2929 /** | 2947 /** |
2930 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2948 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
2931 * abstract method. | 2949 * abstract method. |
2932 * | 2950 * |
2933 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own | 2951 * 7.10 Superinterfaces: Let <i>C</i> be a concrete class that does not declar
e its own |
2934 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> | 2952 * <i>noSuchMethod()</i> method. It is a static warning if the implicit interf
ace of <i>C</i> |
2935 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit | 2953 * includes an instance member <i>m</i> of type <i>F</i> and <i>C</i> does not
declare or inherit |
2936 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. | 2954 * a corresponding instance member <i>m</i> of type <i>F'</i> such that <i>F'
<: F</i>. |
2937 * | 2955 * |
2938 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or | 2956 * 7.4 Abstract Instance Members: It is a static warning if an abstract member
is declared or |
2939 * inherited in a concrete class unless that member overrides a concrete one. | 2957 * inherited in a concrete class unless that member overrides a concrete one. |
2940 * | 2958 * |
2941 * @param memberName the name of the first member | 2959 * @param memberName the name of the first member |
2942 * @param memberName the name of the second member | 2960 * @param memberName the name of the second member |
2943 */ | 2961 */ |
2944 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
= new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO',
53, "Missing inherited members: '%s' and '%s'"); | 2962 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
= new StaticWarningCode.con1('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO',
53, "Missing concrete implementation of '%s' and '%s'"); |
2945 | 2963 |
2946 /** | 2964 /** |
2947 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s
ub>2</sub>) s</i> or | 2965 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s
ub>2</sub>) s</i> or |
2948 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty
pe of <i>T</i>. It | 2966 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty
pe of <i>T</i>. It |
2949 * is a static warning if <i>T</i> does not denote a type available in the lex
ical scope of the | 2967 * is a static warning if <i>T</i> does not denote a type available in the lex
ical scope of the |
2950 * catch clause. | 2968 * catch clause. |
2951 * | 2969 * |
2952 * @param name the name of the non-type element | 2970 * @param name the name of the non-type element |
2953 */ | 2971 */ |
2954 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod
e.con1('NON_TYPE_IN_CATCH_CLAUSE', 54, "The name '%s' is not a type and cannot b
e used in an on-catch clause"); | 2972 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod
e.con1('NON_TYPE_IN_CATCH_CLAUSE', 54, "The name '%s' is not a type and cannot b
e used in an on-catch clause"); |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3382 * is <i>m<sub>x</sub></i>, if it exists; otherwise: | 3400 * is <i>m<sub>x</sub></i>, if it exists; otherwise: |
3383 * <ol> | 3401 * <ol> |
3384 * * If all of <i>m<sub>1</sub>, … m<sub>k</sub></i> have the same numb
er <i>r</i> of | 3402 * * If all of <i>m<sub>1</sub>, … m<sub>k</sub></i> have the same numb
er <i>r</i> of |
3385 * required parameters and the same set of named parameters <i>s</i>, then let
<i>h = max( | 3403 * required parameters and the same set of named parameters <i>s</i>, then let
<i>h = max( |
3386 * numberOfOptionalPositionals( m<sub>i</sub> ) ), 1 <= i <= k</i>. <i>I
</i> has a method | 3404 * numberOfOptionalPositionals( m<sub>i</sub> ) ), 1 <= i <= k</i>. <i>I
</i> has a method |
3387 * named <i>n</i>, with <i>r</i> required parameters of type dynamic, <i>h</i>
optional positional | 3405 * named <i>n</i>, with <i>r</i> required parameters of type dynamic, <i>h</i>
optional positional |
3388 * parameters of type dynamic, named parameters <i>s</i> of type dynamic and r
eturn type dynamic. | 3406 * parameters of type dynamic, named parameters <i>s</i> of type dynamic and r
eturn type dynamic. |
3389 * * Otherwise none of the members <i>m<sub>1</sub>, …, m<sub>k</sub></
i> is inherited. | 3407 * * Otherwise none of the members <i>m<sub>1</sub>, …, m<sub>k</sub></
i> is inherited. |
3390 * </ol> | 3408 * </ol> |
3391 */ | 3409 */ |
3392 static final StaticTypeWarningCode INCONSISTENT_METHOD_INHERITANCE = new Stati
cTypeWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE', 3, "'%s' is inherited b
y at least two interfaces inconsistently"); | 3410 static final StaticTypeWarningCode INCONSISTENT_METHOD_INHERITANCE = new Stati
cTypeWarningCode.con1('INCONSISTENT_METHOD_INHERITANCE', 3, "'%s' is inherited b
y at least two interfaces inconsistently, from %s"); |
3393 | 3411 |
3394 /** | 3412 /** |
3395 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n
ot have an | 3413 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n
ot have an |
3396 * accessible (3.2) instance member named <i>m</i>. | 3414 * accessible (3.2) instance member named <i>m</i>. |
3397 * | 3415 * |
3398 * @param memberName the name of the static member | 3416 * @param memberName the name of the static member |
3399 * @see UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER | 3417 * @see UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER |
3400 */ | 3418 */ |
3401 static final StaticTypeWarningCode INSTANCE_ACCESS_TO_STATIC_MEMBER = new Stat
icTypeWarningCode.con1('INSTANCE_ACCESS_TO_STATIC_MEMBER', 4, "Static member '%s
' cannot be accessed using instance access"); | 3419 static final StaticTypeWarningCode INSTANCE_ACCESS_TO_STATIC_MEMBER = new Stat
icTypeWarningCode.con1('INSTANCE_ACCESS_TO_STATIC_MEMBER', 4, "Static member '%s
' cannot be accessed using instance access"); |
3402 | 3420 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3655 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr
ection) : super(name, ordinal) { | 3673 StaticTypeWarningCode.con2(String name, int ordinal, this.message, String corr
ection) : super(name, ordinal) { |
3656 this.correction6 = correction; | 3674 this.correction6 = correction; |
3657 } | 3675 } |
3658 | 3676 |
3659 String get correction => correction6; | 3677 String get correction => correction6; |
3660 | 3678 |
3661 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 3679 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
3662 | 3680 |
3663 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 3681 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
3664 } | 3682 } |
OLD | NEW |