Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 207023002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 @override 600 @override
601 ErrorType get type => ErrorType.TODO; 601 ErrorType get type => ErrorType.TODO;
602 } 602 }
603 603
604 /** 604 /**
605 * The enumeration `HintCode` defines the hints and coding recommendations for b est practices 605 * The enumeration `HintCode` defines the hints and coding recommendations for b est practices
606 * which are not mentioned in the Dart Language Specification. 606 * which are not mentioned in the Dart Language Specification.
607 */ 607 */
608 class HintCode extends Enum<HintCode> implements ErrorCode { 608 class HintCode extends Enum<HintCode> implements ErrorCode {
609 /** 609 /**
610 * This hint is generated anywhere where the
611 * [StaticWarningCode#ARGUMENT_TYPE_NOT_ASSIGNABLE] would have been generated, if we used
612 * propagated information for the warnings.
613 *
614 * @param actualType the name of the actual argument type
615 * @param expectedType the name of the expected type
616 * @see StaticWarningCode#ARGUMENT_TYPE_NOT_ASSIGNABLE
617 */
618 static final HintCode ARGUMENT_TYPE_NOT_ASSIGNABLE = new HintCode.con1('ARGUME NT_TYPE_NOT_ASSIGNABLE', 0, StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE.messa ge);
619
620 /**
610 * Dead code is code that is never reached, this can happen for instance if a statement follows a 621 * Dead code is code that is never reached, this can happen for instance if a statement follows a
611 * return statement. 622 * return statement.
612 */ 623 */
613 static final HintCode DEAD_CODE = new HintCode.con1('DEAD_CODE', 0, "Dead code "); 624 static final HintCode DEAD_CODE = new HintCode.con1('DEAD_CODE', 1, "Dead code ");
614 625
615 /** 626 /**
616 * Dead code is code that is never reached. This case covers cases where the u ser has catch 627 * Dead code is code that is never reached. This case covers cases where the u ser has catch
617 * clauses after `catch (e)` or `on Object catch (e)`. 628 * clauses after `catch (e)` or `on Object catch (e)`.
618 */ 629 */
619 static final HintCode DEAD_CODE_CATCH_FOLLOWING_CATCH = new HintCode.con1('DEA D_CODE_CATCH_FOLLOWING_CATCH', 1, "Dead code, catch clauses after a 'catch (e)' or an 'on Object catch (e)' are never reached"); 630 static final HintCode DEAD_CODE_CATCH_FOLLOWING_CATCH = new HintCode.con1('DEA D_CODE_CATCH_FOLLOWING_CATCH', 2, "Dead code, catch clauses after a 'catch (e)' or an 'on Object catch (e)' are never reached");
620 631
621 /** 632 /**
622 * Dead code is code that is never reached. This case covers cases where the u ser has an on-catch 633 * Dead code is code that is never reached. This case covers cases where the u ser has an on-catch
623 * clause such as `on A catch (e)`, where a supertype of `A` was already caugh t. 634 * clause such as `on A catch (e)`, where a supertype of `A` was already caugh t.
624 * 635 *
625 * @param subtypeName name of the subtype 636 * @param subtypeName name of the subtype
626 * @param supertypeName name of the supertype 637 * @param supertypeName name of the supertype
627 */ 638 */
628 static final HintCode DEAD_CODE_ON_CATCH_SUBTYPE = new HintCode.con1('DEAD_COD E_ON_CATCH_SUBTYPE', 2, "Dead code, this on-catch block will never be executed s ince '%s' is a subtype of '%s'"); 639 static final HintCode DEAD_CODE_ON_CATCH_SUBTYPE = new HintCode.con1('DEAD_COD E_ON_CATCH_SUBTYPE', 3, "Dead code, this on-catch block will never be executed s ince '%s' is a subtype of '%s'");
629 640
630 /** 641 /**
631 * Deprecated members should not be invoked or used. 642 * Deprecated members should not be invoked or used.
632 * 643 *
633 * @param memberName the name of the member 644 * @param memberName the name of the member
634 */ 645 */
635 static final HintCode DEPRECATED_MEMBER_USE = new HintCode.con1('DEPRECATED_ME MBER_USE', 3, "'%s' is deprecated"); 646 static final HintCode DEPRECATED_MEMBER_USE = new HintCode.con1('DEPRECATED_ME MBER_USE', 4, "'%s' is deprecated");
636 647
637 /** 648 /**
638 * Duplicate imports. 649 * Duplicate imports.
639 */ 650 */
640 static final HintCode DUPLICATE_IMPORT = new HintCode.con1('DUPLICATE_IMPORT', 4, "Duplicate import"); 651 static final HintCode DUPLICATE_IMPORT = new HintCode.con1('DUPLICATE_IMPORT', 5, "Duplicate import");
641 652
642 /** 653 /**
643 * Hint to use the ~/ operator. 654 * Hint to use the ~/ operator.
644 */ 655 */
645 static final HintCode DIVISION_OPTIMIZATION = new HintCode.con1('DIVISION_OPTI MIZATION', 5, "The operator x ~/ y is more efficient than (x / y).toInt()"); 656 static final HintCode DIVISION_OPTIMIZATION = new HintCode.con1('DIVISION_OPTI MIZATION', 6, "The operator x ~/ y is more efficient than (x / y).toInt()");
646 657
647 /** 658 /**
648 * Hint for the `x is double` type checks. 659 * Hint for the `x is double` type checks.
649 */ 660 */
650 static final HintCode IS_DOUBLE = new HintCode.con1('IS_DOUBLE', 6, "When comp iled to JS, this test might return true when the left hand side is an int"); 661 static final HintCode IS_DOUBLE = new HintCode.con1('IS_DOUBLE', 7, "When comp iled to JS, this test might return true when the left hand side is an int");
651 662
652 /** 663 /**
653 * Hint for the `x is int` type checks. 664 * Hint for the `x is int` type checks.
654 */ 665 */
655 static final HintCode IS_INT = new HintCode.con1('IS_INT', 7, "When compiled t o JS, this test might return true when the left hand side is a double"); 666 static final HintCode IS_INT = new HintCode.con1('IS_INT', 8, "When compiled t o JS, this test might return true when the left hand side is a double");
656 667
657 /** 668 /**
658 * Hint for the `x is! double` type checks. 669 * Hint for the `x is! double` type checks.
659 */ 670 */
660 static final HintCode IS_NOT_DOUBLE = new HintCode.con1('IS_NOT_DOUBLE', 8, "W hen compiled to JS, this test might return false when the left hand side is an i nt"); 671 static final HintCode IS_NOT_DOUBLE = new HintCode.con1('IS_NOT_DOUBLE', 9, "W hen compiled to JS, this test might return false when the left hand side is an i nt");
661 672
662 /** 673 /**
663 * Hint for the `x is! int` type checks. 674 * Hint for the `x is! int` type checks.
664 */ 675 */
665 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") ; 676 static final HintCode IS_NOT_INT = new HintCode.con1('IS_NOT_INT', 10, "When c ompiled to JS, this test might return false when the left hand side is a double" );
666 677
667 /** 678 /**
668 * Generate a hint for methods or functions that have a return type, but do no t have a non-void 679 * Generate a hint for methods or functions that have a return type, but do no t have a non-void
669 * return statement on all branches. At the end of methods or functions with n o return, Dart 680 * return statement on all branches. At the end of methods or functions with n o return, Dart
670 * implicitly returns `null`, avoiding these implicit returns is considered a best practice. 681 * implicitly returns `null`, avoiding these implicit returns is considered a best practice.
671 * 682 *
672 * @param returnType the name of the declared return type 683 * @param returnType the name of the declared return type
673 */ 684 */
674 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'"); 685 static final HintCode MISSING_RETURN = new HintCode.con2('MISSING_RETURN', 11, "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'");
675 686
676 /** 687 /**
677 * A getter with the override annotation does not override an existing getter. 688 * A getter with the override annotation does not override an existing getter.
678 */ 689 */
679 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"); 690 static final HintCode OVERRIDE_ON_NON_OVERRIDING_GETTER = new HintCode.con1('O VERRIDE_ON_NON_OVERRIDING_GETTER', 12, "Getter does not override an inherited ge tter");
680 691
681 /** 692 /**
682 * A method with the override annotation does not override an existing method. 693 * A method with the override annotation does not override an existing method.
683 */ 694 */
684 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"); 695 static final HintCode OVERRIDE_ON_NON_OVERRIDING_METHOD = new HintCode.con1('O VERRIDE_ON_NON_OVERRIDING_METHOD', 13, "Method does not override an inherited me thod");
685 696
686 /** 697 /**
687 * A setter with the override annotation does not override an existing setter. 698 * A setter with the override annotation does not override an existing setter.
688 */ 699 */
689 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"); 700 static final HintCode OVERRIDE_ON_NON_OVERRIDING_SETTER = new HintCode.con1('O VERRIDE_ON_NON_OVERRIDING_SETTER', 14, "Setter does not override an inherited se tter");
690 701
691 /** 702 /**
692 * It is not in best practice to declare a private method that happens to over ride the method in a 703 * It is not in best practice to declare a private method that happens to over ride the method in a
693 * superclass- depending on where the superclass is (either in the same librar y, or out of the 704 * superclass- depending on where the superclass is (either in the same librar y, or out of the
694 * same library), behavior can be different. 705 * same library), behavior can be different.
695 * 706 *
696 * @param memberType this is either "method", "getter" or "setter" 707 * @param memberType this is either "method", "getter" or "setter"
697 * @param memberName some private member name 708 * @param memberName some private member name
698 * @param className the class name where the member is overriding the function ality 709 * @param className the class name where the member is overriding the function ality
699 */ 710 */
700 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"); 711 static final HintCode OVERRIDDING_PRIVATE_MEMBER = new HintCode.con1('OVERRIDD ING_PRIVATE_MEMBER', 15, "The %s '%s' does not override the definition from '%s' because it is private and in a different library");
701 712
702 /** 713 /**
703 * Hint for classes that override equals, but not hashCode. 714 * Hint for classes that override equals, but not hashCode.
704 * 715 *
705 * @param className the name of the current class 716 * @param className the name of the current class
706 */ 717 */
707 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'"); 718 static final HintCode OVERRIDE_EQUALS_BUT_NOT_HASH_CODE = new HintCode.con1('O VERRIDE_EQUALS_BUT_NOT_HASH_CODE', 16, "The class '%s' overrides 'operator==', b ut not 'get hashCode'");
708 719
709 /** 720 /**
710 * Type checks of the type `x is! Null` should be done with `x != null`. 721 * Type checks of the type `x is! Null` should be done with `x != null`.
711 */ 722 */
712 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'"); 723 static final HintCode TYPE_CHECK_IS_NOT_NULL = new HintCode.con1('TYPE_CHECK_I S_NOT_NULL', 17, "Tests for non-null should be done with '!= null'");
713 724
714 /** 725 /**
715 * Type checks of the type `x is Null` should be done with `x == null`. 726 * Type checks of the type `x is Null` should be done with `x == null`.
716 */ 727 */
717 static final HintCode TYPE_CHECK_IS_NULL = new HintCode.con1('TYPE_CHECK_IS_NU LL', 17, "Tests for null should be done with '== null'"); 728 static final HintCode TYPE_CHECK_IS_NULL = new HintCode.con1('TYPE_CHECK_IS_NU LL', 18, "Tests for null should be done with '== null'");
718 729
719 /** 730 /**
720 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ GETTER] or 731 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ GETTER] or
721 * [StaticWarningCode#UNDEFINED_GETTER] would have been generated, if we used propagated 732 * [StaticWarningCode#UNDEFINED_GETTER] would have been generated, if we used propagated
722 * information for the warnings. 733 * information for the warnings.
723 * 734 *
724 * @param getterName the name of the getter 735 * @param getterName the name of the getter
725 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 736 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
726 * @see StaticTypeWarningCode#UNDEFINED_GETTER 737 * @see StaticTypeWarningCode#UNDEFINED_GETTER
727 * @see StaticWarningCode#UNDEFINED_GETTER 738 * @see StaticWarningCode#UNDEFINED_GETTER
728 */ 739 */
729 static final HintCode UNDEFINED_GETTER = new HintCode.con1('UNDEFINED_GETTER', 18, StaticTypeWarningCode.UNDEFINED_GETTER.message); 740 static final HintCode UNDEFINED_GETTER = new HintCode.con1('UNDEFINED_GETTER', 19, StaticTypeWarningCode.UNDEFINED_GETTER.message);
730 741
731 /** 742 /**
732 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ METHOD] would 743 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ METHOD] would
733 * have been generated, if we used propagated information for the warnings. 744 * have been generated, if we used propagated information for the warnings.
734 * 745 *
735 * @param methodName the name of the method that is undefined 746 * @param methodName the name of the method that is undefined
736 * @param typeName the resolved type name that the method lookup is happening on 747 * @param typeName the resolved type name that the method lookup is happening on
737 * @see StaticTypeWarningCode#UNDEFINED_METHOD 748 * @see StaticTypeWarningCode#UNDEFINED_METHOD
738 */ 749 */
739 static final HintCode UNDEFINED_METHOD = new HintCode.con1('UNDEFINED_METHOD', 19, StaticTypeWarningCode.UNDEFINED_METHOD.message); 750 static final HintCode UNDEFINED_METHOD = new HintCode.con1('UNDEFINED_METHOD', 20, StaticTypeWarningCode.UNDEFINED_METHOD.message);
740 751
741 /** 752 /**
742 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ OPERATOR] 753 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ OPERATOR]
743 * would have been generated, if we used propagated information for the warnin gs. 754 * would have been generated, if we used propagated information for the warnin gs.
744 * 755 *
745 * @param operator the name of the operator 756 * @param operator the name of the operator
746 * @param enclosingType the name of the enclosing type where the operator is b eing looked for 757 * @param enclosingType the name of the enclosing type where the operator is b eing looked for
747 * @see StaticTypeWarningCode#UNDEFINED_OPERATOR 758 * @see StaticTypeWarningCode#UNDEFINED_OPERATOR
748 */ 759 */
749 static final HintCode UNDEFINED_OPERATOR = new HintCode.con1('UNDEFINED_OPERAT OR', 20, StaticTypeWarningCode.UNDEFINED_OPERATOR.message); 760 static final HintCode UNDEFINED_OPERATOR = new HintCode.con1('UNDEFINED_OPERAT OR', 21, StaticTypeWarningCode.UNDEFINED_OPERATOR.message);
750 761
751 /** 762 /**
752 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ SETTER] or 763 * This hint is generated anywhere where the [StaticTypeWarningCode#UNDEFINED_ SETTER] or
753 * [StaticWarningCode#UNDEFINED_SETTER] would have been generated, if we used propagated 764 * [StaticWarningCode#UNDEFINED_SETTER] would have been generated, if we used propagated
754 * information for the warnings. 765 * information for the warnings.
755 * 766 *
756 * @param setterName the name of the setter 767 * @param setterName the name of the setter
757 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for 768 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
758 * @see StaticTypeWarningCode#UNDEFINED_SETTER 769 * @see StaticTypeWarningCode#UNDEFINED_SETTER
759 * @see StaticWarningCode#UNDEFINED_SETTER 770 * @see StaticWarningCode#UNDEFINED_SETTER
760 */ 771 */
761 static final HintCode UNDEFINED_SETTER = new HintCode.con1('UNDEFINED_SETTER', 21, StaticTypeWarningCode.UNDEFINED_SETTER.message); 772 static final HintCode UNDEFINED_SETTER = new HintCode.con1('UNDEFINED_SETTER', 22, StaticTypeWarningCode.UNDEFINED_SETTER.message);
762 773
763 /** 774 /**
764 * Unnecessary cast. 775 * Unnecessary cast.
765 */ 776 */
766 static final HintCode UNNECESSARY_CAST = new HintCode.con1('UNNECESSARY_CAST', 22, "Unnecessary cast"); 777 static final HintCode UNNECESSARY_CAST = new HintCode.con1('UNNECESSARY_CAST', 23, "Unnecessary cast");
767 778
768 /** 779 /**
769 * Unnecessary type checks, the result is always true. 780 * Unnecessary type checks, the result is always true.
770 */ 781 */
771 static final HintCode UNNECESSARY_TYPE_CHECK_FALSE = new HintCode.con1('UNNECE SSARY_TYPE_CHECK_FALSE', 23, "Unnecessary type check, the result is always false "); 782 static final HintCode UNNECESSARY_TYPE_CHECK_FALSE = new HintCode.con1('UNNECE SSARY_TYPE_CHECK_FALSE', 24, "Unnecessary type check, the result is always false ");
772 783
773 /** 784 /**
774 * Unnecessary type checks, the result is always false. 785 * Unnecessary type checks, the result is always false.
775 */ 786 */
776 static final HintCode UNNECESSARY_TYPE_CHECK_TRUE = new HintCode.con1('UNNECES SARY_TYPE_CHECK_TRUE', 24, "Unnecessary type check, the result is always true"); 787 static final HintCode UNNECESSARY_TYPE_CHECK_TRUE = new HintCode.con1('UNNECES SARY_TYPE_CHECK_TRUE', 25, "Unnecessary type check, the result is always true");
777 788
778 /** 789 /**
779 * Unused imports are imports which are never not used. 790 * Unused imports are imports which are never not used.
780 */ 791 */
781 static final HintCode UNUSED_IMPORT = new HintCode.con1('UNUSED_IMPORT', 25, " Unused import"); 792 static final HintCode UNUSED_IMPORT = new HintCode.con1('UNUSED_IMPORT', 26, " Unused import");
782 793
783 /** 794 /**
784 * Hint for cases where the source expects a method or function to return a no n-void result, but 795 * Hint for cases where the source expects a method or function to return a no n-void result, but
785 * the method or function signature returns void. 796 * the method or function signature returns void.
786 * 797 *
787 * @param name the name of the method or function that returns void 798 * @param name the name of the method or function that returns void
788 */ 799 */
789 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'"); 800 static final HintCode USE_OF_VOID_RESULT = new HintCode.con1('USE_OF_VOID_RESU LT', 27, "The result of '%s' is being used, even though it is declared to be 'vo id'");
790 801
791 static final List<HintCode> values = [ 802 static final List<HintCode> values = [
803 ARGUMENT_TYPE_NOT_ASSIGNABLE,
792 DEAD_CODE, 804 DEAD_CODE,
793 DEAD_CODE_CATCH_FOLLOWING_CATCH, 805 DEAD_CODE_CATCH_FOLLOWING_CATCH,
794 DEAD_CODE_ON_CATCH_SUBTYPE, 806 DEAD_CODE_ON_CATCH_SUBTYPE,
795 DEPRECATED_MEMBER_USE, 807 DEPRECATED_MEMBER_USE,
796 DUPLICATE_IMPORT, 808 DUPLICATE_IMPORT,
797 DIVISION_OPTIMIZATION, 809 DIVISION_OPTIMIZATION,
798 IS_DOUBLE, 810 IS_DOUBLE,
799 IS_INT, 811 IS_INT,
800 IS_NOT_DOUBLE, 812 IS_NOT_DOUBLE,
801 IS_NOT_INT, 813 IS_NOT_INT,
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
2436 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 2448 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
2437 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 2449 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
2438 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 2450 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
2439 * j &lt;= m</i>. 2451 * j &lt;= m</i>.
2440 * 2452 *
2441 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub>, 1 & lt;= i &lt;= l</i>, 2453 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub>, 1 & lt;= i &lt;= l</i>,
2442 * must have a corresponding named parameter in the set <i>{p<sub>n+1</sub>, & hellip; 2454 * must have a corresponding named parameter in the set <i>{p<sub>n+1</sub>, & hellip;
2443 * p<sub>n+k</sub>}</i> or a static warning occurs. It is a static warning if 2455 * p<sub>n+k</sub>}</i> or a static warning occurs. It is a static warning if
2444 * <i>T<sub>m+j</sub></i> may not be assigned to <i>S<sub>r</sub></i>, where < i>r = q<sub>j</sub>, 2456 * <i>T<sub>m+j</sub></i> may not be assigned to <i>S<sub>r</sub></i>, where < i>r = q<sub>j</sub>,
2445 * 1 &lt;= j &lt;= l</i>. 2457 * 1 &lt;= j &lt;= l</i>.
2458 *
2459 * @param actualType the name of the actual argument type
2460 * @param expectedType the name of the expected type
2446 */ 2461 */
2447 static final StaticWarningCode ARGUMENT_TYPE_NOT_ASSIGNABLE = new StaticWarnin gCode.con1('ARGUMENT_TYPE_NOT_ASSIGNABLE', 1, "The argument type '%s' cannot be assigned to the parameter type '%s'"); 2462 static final StaticWarningCode ARGUMENT_TYPE_NOT_ASSIGNABLE = new StaticWarnin gCode.con1('ARGUMENT_TYPE_NOT_ASSIGNABLE', 1, "The argument type '%s' cannot be assigned to the parameter type '%s'");
2448 2463
2449 /** 2464 /**
2450 * 5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError 2465 * 5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError
2451 * to be thrown, because no setter is defined for it. The assignment will also give rise to a 2466 * to be thrown, because no setter is defined for it. The assignment will also give rise to a
2452 * static warning for the same reason. 2467 * static warning for the same reason.
2453 * 2468 *
2454 * A constant variable is always implicitly final. 2469 * A constant variable is always implicitly final.
2455 */ 2470 */
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
3703 3718
3704 @override 3719 @override
3705 String get correction => correction6; 3720 String get correction => correction6;
3706 3721
3707 @override 3722 @override
3708 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 3723 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
3709 3724
3710 @override 3725 @override
3711 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 3726 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
3712 } 3727 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698