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

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

Issue 15675016: More fixes for java2dart and status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.error; 3 library engine.error;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 import 'source.dart'; 5 import 'source.dart';
6 import 'ast.dart' show ASTNode; 6 import 'ast.dart' show ASTNode;
7 import 'scanner.dart' show Token; 7 import 'scanner.dart' show Token;
8 /** 8 /**
9 * Instances of the enumeration {@code ErrorSeverity} represent the severity of an {@link ErrorCode}. 9 * Instances of the enumeration {@code ErrorSeverity} represent the severity of an {@link ErrorCode}.
10 * @coverage dart.engine.error 10 * @coverage dart.engine.error
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 */ 73 */
74 String get machineCode => _machineCode; 74 String get machineCode => _machineCode;
75 75
76 /** 76 /**
77 * Return the severity constant that represents the greatest severity. 77 * Return the severity constant that represents the greatest severity.
78 * @param severity the severity being compared against 78 * @param severity the severity being compared against
79 * @return the most sever of this or the given severity 79 * @return the most sever of this or the given severity
80 */ 80 */
81 ErrorSeverity max(ErrorSeverity severity) => this.ordinal >= severity.ordinal ? this : severity; 81 ErrorSeverity max(ErrorSeverity severity) => this.ordinal >= severity.ordinal ? this : severity;
82 int compareTo(ErrorSeverity other) => ordinal - other.ordinal; 82 int compareTo(ErrorSeverity other) => ordinal - other.ordinal;
83 int get hashCode => ordinal;
83 String toString() => name; 84 String toString() => name;
84 } 85 }
85 /** 86 /**
86 * Instances of the class {@code AnalysisErrorWithProperties} 87 * Instances of the class {@code AnalysisErrorWithProperties}
87 */ 88 */
88 class AnalysisErrorWithProperties extends AnalysisError { 89 class AnalysisErrorWithProperties extends AnalysisError {
89 90
90 /** 91 /**
91 * The properties associated with this error. 92 * The properties associated with this error.
92 */ 93 */
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 static final List<ErrorProperty> values = [UNIMPLEMENTED_METHODS]; 393 static final List<ErrorProperty> values = [UNIMPLEMENTED_METHODS];
393 394
394 /// The name of this enum constant, as declared in the enum declaration. 395 /// The name of this enum constant, as declared in the enum declaration.
395 final String name; 396 final String name;
396 397
397 /// The position in the enum declaration. 398 /// The position in the enum declaration.
398 final int ordinal; 399 final int ordinal;
399 ErrorProperty(this.name, this.ordinal) { 400 ErrorProperty(this.name, this.ordinal) {
400 } 401 }
401 int compareTo(ErrorProperty other) => ordinal - other.ordinal; 402 int compareTo(ErrorProperty other) => ordinal - other.ordinal;
403 int get hashCode => ordinal;
402 String toString() => name; 404 String toString() => name;
403 } 405 }
404 /** 406 /**
405 * The interface {@code ErrorCode} defines the behavior common to objects repres enting error codes 407 * The interface {@code ErrorCode} defines the behavior common to objects repres enting error codes
406 * associated with {@link AnalysisError analysis errors}. 408 * associated with {@link AnalysisError analysis errors}.
407 * @coverage dart.engine.error 409 * @coverage dart.engine.error
408 */ 410 */
409 abstract class ErrorCode { 411 abstract class ErrorCode {
410 412
411 /** 413 /**
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 ErrorType(this.name, this.ordinal, ErrorSeverity severity) { 482 ErrorType(this.name, this.ordinal, ErrorSeverity severity) {
481 this._severity = severity; 483 this._severity = severity;
482 } 484 }
483 485
484 /** 486 /**
485 * Return the severity of this type of error. 487 * Return the severity of this type of error.
486 * @return the severity of this type of error 488 * @return the severity of this type of error
487 */ 489 */
488 ErrorSeverity get severity => _severity; 490 ErrorSeverity get severity => _severity;
489 int compareTo(ErrorType other) => ordinal - other.ordinal; 491 int compareTo(ErrorType other) => ordinal - other.ordinal;
492 int get hashCode => ordinal;
490 String toString() => name; 493 String toString() => name;
491 } 494 }
492 /** 495 /**
493 * The enumeration {@code CompileTimeErrorCode} defines the error codes used for compile time 496 * The enumeration {@code CompileTimeErrorCode} defines the error codes used for compile time
494 * errors. The convention for this class is for the name of the error code to in dicate the problem 497 * errors. The convention for this class is for the name of the error code to in dicate the problem
495 * that caused the error to be generated and for the error message to explain wh at is wrong and, 498 * that caused the error to be generated and for the error message to explain wh at is wrong and,
496 * when appropriate, how the problem can be corrected. 499 * when appropriate, how the problem can be corrected.
497 * @coverage dart.engine.error 500 * @coverage dart.engine.error
498 */ 501 */
499 class CompileTimeErrorCode implements Comparable<CompileTimeErrorCode>, ErrorCod e { 502 class CompileTimeErrorCode implements Comparable<CompileTimeErrorCode>, ErrorCod e {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 */ 617 */
615 static final CompileTimeErrorCode CONST_FORMAL_PARAMETER = new CompileTimeErro rCode('CONST_FORMAL_PARAMETER', 14, "Parameters cannot be 'const'"); 618 static final CompileTimeErrorCode CONST_FORMAL_PARAMETER = new CompileTimeErro rCode('CONST_FORMAL_PARAMETER', 14, "Parameters cannot be 'const'");
616 619
617 /** 620 /**
618 * 5 Variables: A constant variable must be initialized to a compile-time cons tant or a 621 * 5 Variables: A constant variable must be initialized to a compile-time cons tant or a
619 * compile-time error occurs. 622 * compile-time error occurs.
620 */ 623 */
621 static final CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE = new CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 15, "'cons t' variables must be constant value"); 624 static final CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE = new CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 15, "'cons t' variables must be constant value");
622 625
623 /** 626 /**
627 * 7.5 Instance Variables: It is a compile-time error if an instance variable is declared to be
628 * constant.
629 */
630 static final CompileTimeErrorCode CONST_INSTANCE_FIELD = new CompileTimeErrorC ode('CONST_INSTANCE_FIELD', 16, "Only static fields can be declared as 'const'") ;
631
632 /**
624 * 12.11.2 Const: An expression of one of the forms !e, e1 && e2 or e1 || e2, where e, e1 and e2 633 * 12.11.2 Const: An expression of one of the forms !e, e1 && e2 or e1 || e2, where e, e1 and e2
625 * are constant expressions that evaluate to a boolean value. 634 * are constant expressions that evaluate to a boolean value.
626 */ 635 */
627 static final CompileTimeErrorCode CONST_EVAL_TYPE_BOOL = new CompileTimeErrorC ode('CONST_EVAL_TYPE_BOOL', 16, "An expression of type 'bool' was expected"); 636 static final CompileTimeErrorCode CONST_EVAL_TYPE_BOOL = new CompileTimeErrorC ode('CONST_EVAL_TYPE_BOOL', 17, "An expression of type 'bool' was expected");
628 637
629 /** 638 /**
630 * 12.11.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where e1 and e2 are 639 * 12.11.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where e1 and e2 are
631 * constant expressions that evaluate to a numeric, string or boolean value or to null. 640 * constant expressions that evaluate to a numeric, string or boolean value or to null.
632 */ 641 */
633 static final CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING = new Compil eTimeErrorCode('CONST_EVAL_TYPE_BOOL_NUM_STRING', 17, "An expression of type 'bo ol', 'num', 'String' or 'null' was expected"); 642 static final CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING = new Compil eTimeErrorCode('CONST_EVAL_TYPE_BOOL_NUM_STRING', 18, "An expression of type 'bo ol', 'num', 'String' or 'null' was expected");
634 643
635 /** 644 /**
636 * 12.11.2 Const: An expression of one of the forms ~e, e1 ^ e2, e1 & e2, e1 | e2, e1 >> e2 or e1 645 * 12.11.2 Const: An expression of one of the forms ~e, e1 ^ e2, e1 & e2, e1 | e2, e1 >> e2 or e1
637 * << e2, where e, e1 and e2 are constant expressions that evaluate to an inte ger value or to 646 * << e2, where e, e1 and e2 are constant expressions that evaluate to an inte ger value or to
638 * null. 647 * null.
639 */ 648 */
640 static final CompileTimeErrorCode CONST_EVAL_TYPE_INT = new CompileTimeErrorCo de('CONST_EVAL_TYPE_INT', 18, "An expression of type 'int' was expected"); 649 static final CompileTimeErrorCode CONST_EVAL_TYPE_INT = new CompileTimeErrorCo de('CONST_EVAL_TYPE_INT', 19, "An expression of type 'int' was expected");
641 650
642 /** 651 /**
643 * 12.11.2 Const: An expression of one of the forms e, e1 + e2, e1 - e2, e1 * e2, e1 / e2, e1 ~/ 652 * 12.11.2 Const: An expression of one of the forms e, e1 + e2, e1 - e2, e1 * e2, e1 / e2, e1 ~/
644 * e2, e1 > e2, e1 < e2, e1 >= e2, e1 <= e2 or e1 % e2, where e, e1 and e2 are constant 653 * e2, e1 > e2, e1 < e2, e1 >= e2, e1 <= e2 or e1 % e2, where e, e1 and e2 are constant
645 * expressions that evaluate to a numeric value or to null.. 654 * expressions that evaluate to a numeric value or to null..
646 */ 655 */
647 static final CompileTimeErrorCode CONST_EVAL_TYPE_NUM = new CompileTimeErrorCo de('CONST_EVAL_TYPE_NUM', 19, "An expression of type 'num' was expected"); 656 static final CompileTimeErrorCode CONST_EVAL_TYPE_NUM = new CompileTimeErrorCo de('CONST_EVAL_TYPE_NUM', 20, "An expression of type 'num' was expected");
648 657
649 /** 658 /**
650 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 659 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
651 * uncaught exception being thrown. 660 * uncaught exception being thrown.
652 */ 661 */
653 static final CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = new CompileTim eErrorCode('CONST_EVAL_THROWS_EXCEPTION', 20, "Evaluation of this constant expre ssion causes exception"); 662 static final CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = new CompileTim eErrorCode('CONST_EVAL_THROWS_EXCEPTION', 21, "Evaluation of this constant expre ssion causes exception");
654 663
655 /** 664 /**
656 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S&lt;U<sub>1</sub>, & hellip;, 665 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S&lt;U<sub>1</sub>, & hellip;,
657 * U<sub>m</sub>&gt;</i>, let <i>R = S</i>; It is a compile time error if <i>S </i> is not a 666 * U<sub>m</sub>&gt;</i>, let <i>R = S</i>; It is a compile time error if <i>S </i> is not a
658 * generic type with <i>m</i> type parameters. 667 * generic type with <i>m</i> type parameters.
659 * @param typeName the name of the type being referenced (<i>S</i>) 668 * @param typeName the name of the type being referenced (<i>S</i>)
660 * @param parameterCount the number of type parameters that were declared 669 * @param parameterCount the number of type parameters that were declared
661 * @param argumentCount the number of type arguments provided 670 * @param argumentCount the number of type arguments provided
662 */ 671 */
663 static final CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = new Com pileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 21, "The type '%s' is de clared with %d type parameters, but %d type arguments were given"); 672 static final CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = new Com pileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 22, "The type '%s' is de clared with %d type parameters, but %d type arguments were given");
664 673
665 /** 674 /**
666 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, &hellip ;, a<sub>n</sub>, 675 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, &hellip ;, a<sub>n</sub>,
667 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a 676 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a
668 * compile-time error if the type <i>T</i> does not declare a constant constru ctor with the same 677 * compile-time error if the type <i>T</i> does not declare a constant constru ctor with the same
669 * name as the declaration of <i>T</i>. 678 * name as the declaration of <i>T</i>.
670 */ 679 */
671 static final CompileTimeErrorCode CONST_WITH_NON_CONST = new CompileTimeErrorC ode('CONST_WITH_NON_CONST', 22, "The constructor being called is not a 'const' c onstructor"); 680 static final CompileTimeErrorCode CONST_WITH_NON_CONST = new CompileTimeErrorC ode('CONST_WITH_NON_CONST', 23, "The constructor being called is not a 'const' c onstructor");
672 681
673 /** 682 /**
674 * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i> a<sub>i</sub>, 1 683 * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i> a<sub>i</sub>, 1
675 * &lt;= i &lt;= n + k</i>, is not a compile-time constant expression. 684 * &lt;= i &lt;= n + k</i>, is not a compile-time constant expression.
676 */ 685 */
677 static final CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = new Compi leTimeErrorCode('CONST_WITH_NON_CONSTANT_ARGUMENT', 23, "Arguments of a constant creation must be constant expressions"); 686 static final CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = new Compi leTimeErrorCode('CONST_WITH_NON_CONSTANT_ARGUMENT', 24, "Arguments of a constant creation must be constant expressions");
678 687
679 /** 688 /**
680 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current 689 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current
681 * scope, optionally followed by type arguments. 690 * scope, optionally followed by type arguments.
682 * <p> 691 * <p>
683 * 12.11.2 Const: If <i>e</i> is of the form <i>const T.id(a<sub>1</sub>, &hel lip;, a<sub>n</sub>, 692 * 12.11.2 Const: If <i>e</i> is of the form <i>const T.id(a<sub>1</sub>, &hel lip;, a<sub>n</sub>,
684 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+k</sub> )</i> it is a 693 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+k</sub> )</i> it is a
685 * compile-time error if <i>T</i> is not a class accessible in the current sco pe, optionally 694 * compile-time error if <i>T</i> is not a class accessible in the current sco pe, optionally
686 * followed by type arguments. 695 * followed by type arguments.
687 * @param name the name of the non-type element 696 * @param name the name of the non-type element
688 */ 697 */
689 static final CompileTimeErrorCode CONST_WITH_NON_TYPE = new CompileTimeErrorCo de('CONST_WITH_NON_TYPE', 24, "The name '%s' is not a class"); 698 static final CompileTimeErrorCode CONST_WITH_NON_TYPE = new CompileTimeErrorCo de('CONST_WITH_NON_TYPE', 25, "The name '%s' is not a class");
690 699
691 /** 700 /**
692 * 12.11.2 Const: It is a compile-time error if <i>T</i> includes any type par ameters. 701 * 12.11.2 Const: It is a compile-time error if <i>T</i> includes any type par ameters.
693 */ 702 */
694 static final CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = new CompileTime ErrorCode('CONST_WITH_TYPE_PARAMETERS', 25, "The constant creation cannot use a type parameter"); 703 static final CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = new CompileTime ErrorCode('CONST_WITH_TYPE_PARAMETERS', 26, "The constant creation cannot use a type parameter");
695 704
696 /** 705 /**
697 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant 706 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant
698 * constructor declared by the type <i>T</i>. 707 * constructor declared by the type <i>T</i>.
699 * @param typeName the name of the type 708 * @param typeName the name of the type
700 * @param constructorName the name of the requested constant constructor 709 * @param constructorName the name of the requested constant constructor
701 */ 710 */
702 static final CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = new Compi leTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR', 26, "The class '%s' does not have a constant constructor '%s'"); 711 static final CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = new Compi leTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR', 27, "The class '%s' does not have a constant constructor '%s'");
703 712
704 /** 713 /**
705 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant 714 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant
706 * constructor declared by the type <i>T</i>. 715 * constructor declared by the type <i>T</i>.
707 * @param typeName the name of the type 716 * @param typeName the name of the type
708 */ 717 */
709 static final CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = n ew CompileTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 27, "The cla ss '%s' does not have a default constant constructor"); 718 static final CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = n ew CompileTimeErrorCode('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 28, "The cla ss '%s' does not have a default constant constructor");
710 719
711 /** 720 /**
712 * 15.3.1 Typedef: It is a compile-time error if any default values are specif ied in the signature 721 * 15.3.1 Typedef: It is a compile-time error if any default values are specif ied in the signature
713 * of a function type alias. 722 * of a function type alias.
714 */ 723 */
715 static final CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = new C ompileTimeErrorCode('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 28, "Default values aren't allowed in typedefs"); 724 static final CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = new C ompileTimeErrorCode('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 29, "Default values aren't allowed in typedefs");
716 725
717 /** 726 /**
718 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name 727 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name
719 * declared in the same scope. 728 * declared in the same scope.
720 */ 729 */
721 static final CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_DEFAULT = new CompileT imeErrorCode('DUPLICATE_CONSTRUCTOR_DEFAULT', 29, "The default constructor is al ready defined"); 730 static final CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_DEFAULT = new CompileT imeErrorCode('DUPLICATE_CONSTRUCTOR_DEFAULT', 30, "The default constructor is al ready defined");
722 731
723 /** 732 /**
724 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name 733 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name
725 * declared in the same scope. 734 * declared in the same scope.
726 * @param duplicateName the name of the duplicate entity 735 * @param duplicateName the name of the duplicate entity
727 */ 736 */
728 static final CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_NAME = new CompileTime ErrorCode('DUPLICATE_CONSTRUCTOR_NAME', 30, "The constructor with name '%s' is a lready defined"); 737 static final CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_NAME = new CompileTime ErrorCode('DUPLICATE_CONSTRUCTOR_NAME', 31, "The constructor with name '%s' is a lready defined");
729 738
730 /** 739 /**
731 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name 740 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name
732 * declared in the same scope. 741 * declared in the same scope.
733 * @param duplicateName the name of the duplicate entity 742 * @param duplicateName the name of the duplicate entity
734 */ 743 */
735 static final CompileTimeErrorCode DUPLICATE_DEFINITION = new CompileTimeErrorC ode('DUPLICATE_DEFINITION', 31, "The name '%s' is already defined"); 744 static final CompileTimeErrorCode DUPLICATE_DEFINITION = new CompileTimeErrorC ode('DUPLICATE_DEFINITION', 32, "The name '%s' is already defined");
736 745
737 /** 746 /**
738 * 7 Classes: It is a compile-time error if a class declares two members of th e same name. 747 * 7 Classes: It is a compile-time error if a class declares two members of th e same name.
739 */ 748 */
740 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME = new CompileTimeError Code('DUPLICATE_MEMBER_NAME', 32, ""); 749 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME = new CompileTimeError Code('DUPLICATE_MEMBER_NAME', 33, "");
741 750
742 /** 751 /**
743 * 7 Classes: It is a compile-time error if a class has an instance member and a static member 752 * 7 Classes: It is a compile-time error if a class has an instance member and a static member
744 * with the same name. 753 * with the same name.
745 */ 754 */
746 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME_INSTANCE_STATIC = new CompileTimeErrorCode('DUPLICATE_MEMBER_NAME_INSTANCE_STATIC', 33, ""); 755 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME_INSTANCE_STATIC = new CompileTimeErrorCode('DUPLICATE_MEMBER_NAME_INSTANCE_STATIC', 34, "");
747 756
748 /** 757 /**
749 * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub> i</sub> = 758 * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub> i</sub> =
750 * q<sub>j</sub></i> for any <i>i != j</i> \[where <i>q<sub>i</sub></i> is the label for a named 759 * q<sub>j</sub></i> for any <i>i != j</i> \[where <i>q<sub>i</sub></i> is the label for a named
751 * argument\]. 760 * argument\].
752 */ 761 */
753 static final CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = new CompileTimeEr rorCode('DUPLICATE_NAMED_ARGUMENT', 34, "The argument for the named parameter '% s' was already specified"); 762 static final CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = new CompileTimeEr rorCode('DUPLICATE_NAMED_ARGUMENT', 35, "The argument for the named parameter '% s' was already specified");
754 763
755 /** 764 /**
756 * SDK implementation libraries can be exported only by other SDK libraries. 765 * SDK implementation libraries can be exported only by other SDK libraries.
757 * @param uri the uri pointing to a library 766 * @param uri the uri pointing to a library
758 */ 767 */
759 static final CompileTimeErrorCode EXPORT_INTERNAL_LIBRARY = new CompileTimeErr orCode('EXPORT_INTERNAL_LIBRARY', 35, "The library %s is internal and cannot be exported"); 768 static final CompileTimeErrorCode EXPORT_INTERNAL_LIBRARY = new CompileTimeErr orCode('EXPORT_INTERNAL_LIBRARY', 36, "The library %s is internal and cannot be exported");
760 769
761 /** 770 /**
762 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 771 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
763 * not a library declaration. 772 * not a library declaration.
764 * @param uri the uri pointing to a non-library declaration 773 * @param uri the uri pointing to a non-library declaration
765 */ 774 */
766 static final CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = new CompileTimeError Code('EXPORT_OF_NON_LIBRARY', 36, "The exported library '%s' must not have a par t-of directive"); 775 static final CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = new CompileTimeError Code('EXPORT_OF_NON_LIBRARY', 37, "The exported library '%s' must not have a par t-of directive");
767 776
768 /** 777 /**
769 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes 778 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes
770 * a type expression that does not denote a class available in the lexical sco pe of <i>C</i>. 779 * a type expression that does not denote a class available in the lexical sco pe of <i>C</i>.
771 * @param typeName the name of the superclass that was not found 780 * @param typeName the name of the superclass that was not found
772 */ 781 */
773 static final CompileTimeErrorCode EXTENDS_NON_CLASS = new CompileTimeErrorCode ('EXTENDS_NON_CLASS', 37, "Classes can only extend other classes"); 782 static final CompileTimeErrorCode EXTENDS_NON_CLASS = new CompileTimeErrorCode ('EXTENDS_NON_CLASS', 38, "Classes can only extend other classes");
774 783
775 /** 784 /**
776 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null. 785 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null.
777 * <p> 786 * <p>
778 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int. 787 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int.
779 * <p> 788 * <p>
780 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double. 789 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double.
781 * <p> 790 * <p>
782 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to 791 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to
783 * attempt to extend or implement num. 792 * attempt to extend or implement num.
784 * <p> 793 * <p>
785 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool. 794 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.
786 * <p> 795 * <p>
787 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String. 796 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String.
788 * @param typeName the name of the type that cannot be extended 797 * @param typeName the name of the type that cannot be extended
789 * @see #IMPLEMENTS_DISALLOWED_CLASS 798 * @see #IMPLEMENTS_DISALLOWED_CLASS
790 */ 799 */
791 static final CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = new CompileTimeEr rorCode('EXTENDS_DISALLOWED_CLASS', 38, "Classes cannot extend '%s'"); 800 static final CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = new CompileTimeEr rorCode('EXTENDS_DISALLOWED_CLASS', 39, "Classes cannot extend '%s'");
792 801
793 /** 802 /**
794 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m > n</i>. 803 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m > n</i>.
795 * <p> 804 * <p>
796 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 805 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
797 * uncaught exception being thrown. 806 * uncaught exception being thrown.
798 * @param requiredCount the maximum number of positional arguments 807 * @param requiredCount the maximum number of positional arguments
799 * @param argumentCount the actual number of positional arguments given 808 * @param argumentCount the actual number of positional arguments given
800 */ 809 */
801 static final CompileTimeErrorCode EXTRA_POSITIONAL_ARGUMENTS = new CompileTime ErrorCode('EXTRA_POSITIONAL_ARGUMENTS', 39, "%d positional arguments expected, b ut %d found"); 810 static final CompileTimeErrorCode EXTRA_POSITIONAL_ARGUMENTS = new CompileTime ErrorCode('EXTRA_POSITIONAL_ARGUMENTS', 40, "%d positional arguments expected, b ut %d found");
802 811
803 /** 812 /**
804 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null. 813 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null.
805 * <p> 814 * <p>
806 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int. 815 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int.
807 * <p> 816 * <p>
808 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double. 817 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double.
809 * <p> 818 * <p>
810 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to 819 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to
811 * attempt to extend or implement num. 820 * attempt to extend or implement num.
812 * <p> 821 * <p>
813 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool. 822 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.
814 * <p> 823 * <p>
815 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String. 824 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String.
816 * @param typeName the name of the type that cannot be implemented 825 * @param typeName the name of the type that cannot be implemented
817 * @see #EXTENDS_DISALLOWED_CLASS 826 * @see #EXTENDS_DISALLOWED_CLASS
818 */ 827 */
819 static final CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = new CompileTim eErrorCode('IMPLEMENTS_DISALLOWED_CLASS', 40, "Classes cannot implement '%s'"); 828 static final CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = new CompileTim eErrorCode('IMPLEMENTS_DISALLOWED_CLASS', 41, "Classes cannot implement '%s'");
820 829
821 /** 830 /**
822 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 831 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
823 * error if more than one initializer corresponding to a given instance variab le appears in 832 * error if more than one initializer corresponding to a given instance variab le appears in
824 * <i>k</i>'s list. 833 * <i>k</i>'s list.
825 */ 834 */
826 static final CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = new CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 41, "The field '%s' cannot be initialized twice in the same constructor"); 835 static final CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = new CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 42, "The field '%s' cannot be initialized twice in the same constructor");
827 836
828 /** 837 /**
829 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 838 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
830 * error if <i>k</i>'s initializer list contains an initializer for a final va riable <i>f</i> 839 * error if <i>k</i>'s initializer list contains an initializer for a final va riable <i>f</i>
831 * whose declaration includes an initialization expression. 840 * whose declaration includes an initialization expression.
832 */ 841 */
833 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARA TION = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO N', 42, "Values cannot be set in the constructor if they are final, and have alr eady been set"); 842 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARA TION = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO N', 43, "Values cannot be set in the constructor if they are final, and have alr eady been set");
834 843
835 /** 844 /**
836 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 845 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
837 * error if <i>k</i>'s initializer list contains an initializer for a variable that is initialized 846 * error if <i>k</i>'s initializer list contains an initializer for a variable that is initialized
838 * by means of an initializing formal of <i>k</i>. 847 * by means of an initializing formal of <i>k</i>.
839 */ 848 */
840 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ ER = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', 43, "Fields cannot be initialized in both the parameter list and the initializer s"); 849 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ ER = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', 44, "Fields cannot be initialized in both the parameter list and the initializer s");
841 850
842 /** 851 /**
843 * 5 Variables: It is a compile-time error if a final instance variable that h as been initialized 852 * 5 Variables: It is a compile-time error if a final instance variable that h as been initialized
844 * at its point of declaration is also initialized in a constructor. 853 * at its point of declaration is also initialized in a constructor.
845 * @param name the name of the field in question 854 * @param name the name of the field in question
846 */ 855 */
847 static final CompileTimeErrorCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRU CTOR = new CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO R', 44, "'%s' is final and was given a value when it was declared, so it cannot be set to a new value"); 856 static final CompileTimeErrorCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRU CTOR = new CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO R', 45, "'%s' is final and was given a value when it was declared, so it cannot be set to a new value");
848 857
849 /** 858 /**
850 * 5 Variables: It is a compile-time error if a final instance variable that h as is initialized by 859 * 5 Variables: It is a compile-time error if a final instance variable that h as is initialized by
851 * means of an initializing formal of a constructor is also initialized elsewh ere in the same 860 * means of an initializing formal of a constructor is also initialized elsewh ere in the same
852 * constructor. 861 * constructor.
853 * @param name the name of the field in question 862 * @param name the name of the field in question
854 */ 863 */
855 static final CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = new Compi leTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', 45, "'%s' is a final field a nd so can only be set once"); 864 static final CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = new Compi leTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', 46, "'%s' is a final field a nd so can only be set once");
856 865
857 /** 866 /**
858 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 867 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
859 * a function other than a non-redirecting generative constructor. 868 * a function other than a non-redirecting generative constructor.
860 */ 869 */
861 static final CompileTimeErrorCode FIELD_INITIALIZER_FACTORY_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', 46, "Initializing formal fields cannot be used in factory constructors"); 870 static final CompileTimeErrorCode FIELD_INITIALIZER_FACTORY_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', 47, "Initializing formal fields cannot be used in factory constructors");
862 871
863 /** 872 /**
864 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 873 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
865 * a function other than a non-redirecting generative constructor. 874 * a function other than a non-redirecting generative constructor.
866 */ 875 */
867 static final CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 47, "Initializing formal fields can only be used in constructors"); 876 static final CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 48, "Initializing formal fields can only be used in constructors");
868 877
869 /** 878 /**
870 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its 879 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
871 * only action is to invoke another generative constructor. 880 * only action is to invoke another generative constructor.
872 * <p> 881 * <p>
873 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 882 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
874 * a function other than a non-redirecting generative constructor. 883 * a function other than a non-redirecting generative constructor.
875 */ 884 */
876 static final CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', 48, "The r edirecting constructor cannot have a field initializer"); 885 static final CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', 49, "The r edirecting constructor cannot have a field initializer");
877
878 /**
879 * 5 Variables: It is a compile-time error if a library, static or local varia ble <i>v</i> is
880 * final and <i>v</i> is not initialized at its point of declaration.
881 * @param name the name of the variable in question
882 */
883 static final CompileTimeErrorCode FINAL_NOT_INITIALIZED = new CompileTimeError Code('FINAL_NOT_INITIALIZED', 49, "The final variable '%s' must be initialized") ;
884 886
885 /** 887 /**
886 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same 888 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
887 * name. 889 * name.
888 * @param name the conflicting name of the getter and method 890 * @param name the conflicting name of the getter and method
889 */ 891 */
890 static final CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = new Compi leTimeErrorCode('GETTER_AND_METHOD_WITH_SAME_NAME', 50, "'%s' cannot be used to name a getter, there is already a method with the same name"); 892 static final CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = new Compi leTimeErrorCode('GETTER_AND_METHOD_WITH_SAME_NAME', 50, "'%s' cannot be used to name a getter, there is already a method with the same name");
891 893
892 /** 894 /**
893 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class includes 895 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class includes
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 /** 1506 /**
1505 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g eneric type with 1507 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g eneric type with
1506 * <i>n</i> type parameters invoked by a new expression or a constant object e xpression is passed 1508 * <i>n</i> type parameters invoked by a new expression or a constant object e xpression is passed
1507 * <i>m</i> type arguments where <i>m != n</i>. 1509 * <i>m</i> type arguments where <i>m != n</i>.
1508 * <p> 1510 * <p>
1509 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized type of the form 1511 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized type of the form
1510 * <i>G&lt;T<sub>1</sub>, &hellip;, T<sub>n</sub>&gt;</i> and <i>G</i> is not a generic type with 1512 * <i>G&lt;T<sub>1</sub>, &hellip;, T<sub>n</sub>&gt;</i> and <i>G</i> is not a generic type with
1511 * <i>n</i> type parameters. 1513 * <i>n</i> type parameters.
1512 */ 1514 */
1513 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 130, ""); 1515 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 130, "");
1514 static final List<CompileTimeErrorCode> values = [AMBIGUOUS_EXPORT, AMBIGUOUS_ IMPORT, ARGUMENT_DEFINITION_TEST_NON_PARAMETER, BUILT_IN_IDENTIFIER_AS_TYPE, BUI LT_IN_IDENTIFIER_AS_TYPE_NAME, BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, BUILT_IN_IDE NTIFIER_AS_TYPE_VARIABLE_NAME, CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, COMPILE_T IME_CONSTANT_RAISES_EXCEPTION, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTI NG_CONSTRUCTOR_NAME_AND_METHOD, CONST_CONSTRUCTOR_THROWS_EXCEPTION, CONST_CONSTR UCTOR_WITH_NON_FINAL_FIELD, CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE, CONST_FORMAL _PARAMETER, CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_TYPE_BOOL, CON ST_EVAL_TYPE_BOOL_NUM_STRING, CONST_EVAL_TYPE_INT, CONST_EVAL_TYPE_NUM, CONST_EV AL_THROWS_EXCEPTION, CONST_WITH_INVALID_TYPE_PARAMETERS, CONST_WITH_NON_CONST, C ONST_WITH_NON_CONSTANT_ARGUMENT, CONST_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS , CONST_WITH_UNDEFINED_CONSTRUCTOR, CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT, DE FAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_CONSTRUCTOR_DEFAULT, DUPLICATE_CON STRUCTOR_NAME, DUPLICATE_DEFINITION, DUPLICATE_MEMBER_NAME, DUPLICATE_MEMBER_NAM E_INSTANCE_STATIC, DUPLICATE_NAMED_ARGUMENT, EXPORT_INTERNAL_LIBRARY, EXPORT_OF_ NON_LIBRARY, EXTENDS_NON_CLASS, EXTENDS_DISALLOWED_CLASS, EXTRA_POSITIONAL_ARGUM ENTS, IMPLEMENTS_DISALLOWED_CLASS, FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS, F IELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION, FIELD_INITIALIZED_IN_PARAMETER_ AND_INITIALIZER, FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, FINAL_INITIAL IZED_MULTIPLE_TIMES, FIELD_INITIALIZER_FACTORY_CONSTRUCTOR, FIELD_INITIALIZER_OU TSIDE_CONSTRUCTOR, FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR, FINAL_NOT_INITIALI ZED, GETTER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMENTS_REPEATED, IMPLICIT_THIS_REFERENCE_IN_INITIALIZER, IMPORT_INTERNAL_LI BRARY, IMPORT_OF_NON_LIBRARY, INCONSISTENT_CASE_EXPRESSION_TYPES, INITIALIZER_FO R_NON_EXISTANT_FIELD, INITIALIZER_FOR_STATIC_FIELD, INITIALIZING_FORMAL_FOR_NON_ EXISTANT_FIELD, INITIALIZING_FORMAL_FOR_STATIC_FIELD, INVALID_CONSTANT, INVALID_ CONSTRUCTOR_NAME, INVALID_FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VAL UE, INVALID_OVERRIDE_NAMED, INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIR ED, INVALID_REFERENCE_TO_THIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUM ENT_IN_CONST_LIST, INVALID_TYPE_ARGUMENT_IN_CONST_MAP, INVALID_URI, LABEL_IN_OUT ER_SCOPE, LABEL_UNDEFINED, MEMBER_WITH_CLASS_NAME, METHOD_AND_GETTER_WITH_SAME_N AME, MISSING_CONST_IN_LIST_LITERAL, MISSING_CONST_IN_MAP_LITERAL, MIXIN_DECLARES _CONSTRUCTOR, MIXIN_INHERITS_FROM_NOT_OBJECT, MIXIN_OF_NON_CLASS, MIXIN_REFERENC ES_SUPER, MIXIN_WITH_NON_CLASS_SUPERCLASS, MULTIPLE_REDIRECTING_CONSTRUCTOR_INVO CATIONS, MULTIPLE_SUPER_INITIALIZERS, NEW_WITH_INVALID_TYPE_PARAMETERS, NON_CONS T_MAP_AS_EXPRESSION_STATEMENT, NON_CONSTANT_CASE_EXPRESSION, NON_CONSTANT_DEFAUL T_VALUE, NON_CONSTANT_LIST_ELEMENT, NON_CONSTANT_MAP_KEY, NON_CONSTANT_MAP_VALUE , NON_CONSTANT_VALUE_IN_INITIALIZER, NOT_ENOUGH_REQUIRED_ARGUMENTS, NON_GENERATI VE_CONSTRUCTOR, OBJECT_CANNOT_EXTEND_ANOTHER_CLASS, OPTIONAL_PARAMETER_IN_OPERAT OR, PART_OF_NON_PART, PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, PRIVATE_OPTIONAL_PA RAMETER, RECURSIVE_COMPILE_TIME_CONSTANT, RECURSIVE_CONSTRUCTOR_REDIRECT, RECURS IVE_FACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECURSIVE_INTERFACE_INHERIT ANCE, RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, RECURSIVE_INTERFACE_INH ERITANCE_BASE_CASE_IMPLEMENTS, REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_D ECLARED_VARIABLE_IN_INITIALIZER, RESERVED_WORD_AS_IDENTIFIER, RETHROW_OUTSIDE_CA TCH, RETURN_IN_GENERATIVE_CONSTRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEV EL_VARIABLE, SUPER_IN_INVALID_CONTEXT, SUPER_IN_REDIRECTING_CONSTRUCTOR, SUPER_I NITIALIZER_IN_OBJECT, TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS, UNDEFINED_CLASS, UND EFINED_CONSTRUCTOR_IN_INITIALIZER, UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT, UNINITIALIZED_FINAL_FIELD, UNDEFINED_NAMED_PARAMETER, URI_DOES_NOT_EXIST, URI_W ITH_INTERPOLATION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, WRONG_NUMBER_OF_PARA METERS_FOR_OPERATOR_MINUS, WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, WRONG_NUMBER_O F_TYPE_ARGUMENTS]; 1516 static final List<CompileTimeErrorCode> values = [AMBIGUOUS_EXPORT, AMBIGUOUS_ IMPORT, ARGUMENT_DEFINITION_TEST_NON_PARAMETER, BUILT_IN_IDENTIFIER_AS_TYPE, BUI LT_IN_IDENTIFIER_AS_TYPE_NAME, BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, BUILT_IN_IDE NTIFIER_AS_TYPE_VARIABLE_NAME, CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, COMPILE_T IME_CONSTANT_RAISES_EXCEPTION, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTI NG_CONSTRUCTOR_NAME_AND_METHOD, CONST_CONSTRUCTOR_THROWS_EXCEPTION, CONST_CONSTR UCTOR_WITH_NON_FINAL_FIELD, CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE, CONST_FORMAL _PARAMETER, CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE, CONST_INSTANCE_FIELD, CON ST_EVAL_TYPE_BOOL, CONST_EVAL_TYPE_BOOL_NUM_STRING, CONST_EVAL_TYPE_INT, CONST_E VAL_TYPE_NUM, CONST_EVAL_THROWS_EXCEPTION, CONST_WITH_INVALID_TYPE_PARAMETERS, C ONST_WITH_NON_CONST, CONST_WITH_NON_CONSTANT_ARGUMENT, CONST_WITH_NON_TYPE, CONS T_WITH_TYPE_PARAMETERS, CONST_WITH_UNDEFINED_CONSTRUCTOR, CONST_WITH_UNDEFINED_C ONSTRUCTOR_DEFAULT, DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_CONSTRUCTOR_ DEFAULT, DUPLICATE_CONSTRUCTOR_NAME, DUPLICATE_DEFINITION, DUPLICATE_MEMBER_NAME , DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED_ARGUMENT, EXPORT_INTERN AL_LIBRARY, EXPORT_OF_NON_LIBRARY, EXTENDS_NON_CLASS, EXTENDS_DISALLOWED_CLASS, EXTRA_POSITIONAL_ARGUMENTS, IMPLEMENTS_DISALLOWED_CLASS, FIELD_INITIALIZED_BY_MU LTIPLE_INITIALIZERS, FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION, FIELD_INI TIALIZED_IN_PARAMETER_AND_INITIALIZER, FINAL_INITIALIZED_IN_DECLARATION_AND_CONS TRUCTOR, FINAL_INITIALIZED_MULTIPLE_TIMES, FIELD_INITIALIZER_FACTORY_CONSTRUCTOR , FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR, FIELD_INITIALIZER_REDIRECTING_CONSTRUCT OR, GETTER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMENTS_REPEATED, IMPLICIT_THIS_REFERENCE_IN_INITIALIZER, IMPORT_INTERNAL_LIB RARY, IMPORT_OF_NON_LIBRARY, INCONSISTENT_CASE_EXPRESSION_TYPES, INITIALIZER_FOR _NON_EXISTANT_FIELD, INITIALIZER_FOR_STATIC_FIELD, INITIALIZING_FORMAL_FOR_NON_E XISTANT_FIELD, INITIALIZING_FORMAL_FOR_STATIC_FIELD, INVALID_CONSTANT, INVALID_C ONSTRUCTOR_NAME, INVALID_FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALU E, INVALID_OVERRIDE_NAMED, INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRE D, INVALID_REFERENCE_TO_THIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUME NT_IN_CONST_LIST, INVALID_TYPE_ARGUMENT_IN_CONST_MAP, INVALID_URI, LABEL_IN_OUTE R_SCOPE, LABEL_UNDEFINED, MEMBER_WITH_CLASS_NAME, METHOD_AND_GETTER_WITH_SAME_NA ME, MISSING_CONST_IN_LIST_LITERAL, MISSING_CONST_IN_MAP_LITERAL, MIXIN_DECLARES_ CONSTRUCTOR, MIXIN_INHERITS_FROM_NOT_OBJECT, MIXIN_OF_NON_CLASS, MIXIN_REFERENCE S_SUPER, MIXIN_WITH_NON_CLASS_SUPERCLASS, MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOC ATIONS, MULTIPLE_SUPER_INITIALIZERS, NEW_WITH_INVALID_TYPE_PARAMETERS, NON_CONST _MAP_AS_EXPRESSION_STATEMENT, NON_CONSTANT_CASE_EXPRESSION, NON_CONSTANT_DEFAULT _VALUE, NON_CONSTANT_LIST_ELEMENT, NON_CONSTANT_MAP_KEY, NON_CONSTANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_INITIALIZER, NOT_ENOUGH_REQUIRED_ARGUMENTS, NON_GENERATIV E_CONSTRUCTOR, OBJECT_CANNOT_EXTEND_ANOTHER_CLASS, OPTIONAL_PARAMETER_IN_OPERATO R, PART_OF_NON_PART, PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, PRIVATE_OPTIONAL_PAR AMETER, RECURSIVE_COMPILE_TIME_CONSTANT, RECURSIVE_CONSTRUCTOR_REDIRECT, RECURSI VE_FACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECURSIVE_INTERFACE_INHERITA NCE, RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, RECURSIVE_INTERFACE_INHE RITANCE_BASE_CASE_IMPLEMENTS, REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_DE CLARED_VARIABLE_IN_INITIALIZER, RESERVED_WORD_AS_IDENTIFIER, RETHROW_OUTSIDE_CAT CH, RETURN_IN_GENERATIVE_CONSTRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVE L_VARIABLE, SUPER_IN_INVALID_CONTEXT, SUPER_IN_REDIRECTING_CONSTRUCTOR, SUPER_IN ITIALIZER_IN_OBJECT, TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS, UNDEFINED_CLASS, UNDE FINED_CONSTRUCTOR_IN_INITIALIZER, UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT, UNINITIALIZED_FINAL_FIELD, UNDEFINED_NAMED_PARAMETER, URI_DOES_NOT_EXIST, URI_WI TH_INTERPOLATION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, WRONG_NUMBER_OF_PARAM ETERS_FOR_OPERATOR_MINUS, WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, WRONG_NUMBER_OF _TYPE_ARGUMENTS];
1515 1517
1516 /// The name of this enum constant, as declared in the enum declaration. 1518 /// The name of this enum constant, as declared in the enum declaration.
1517 final String name; 1519 final String name;
1518 1520
1519 /// The position in the enum declaration. 1521 /// The position in the enum declaration.
1520 final int ordinal; 1522 final int ordinal;
1521 1523
1522 /** 1524 /**
1523 * The message template used to create the message to be displayed for this er ror. 1525 * The message template used to create the message to be displayed for this er ror.
1524 */ 1526 */
1525 String _message; 1527 String _message;
1526 1528
1527 /** 1529 /**
1528 * Initialize a newly created error code to have the given message. 1530 * Initialize a newly created error code to have the given message.
1529 * @param message the message template used to create the message to be displa yed for the error 1531 * @param message the message template used to create the message to be displa yed for the error
1530 */ 1532 */
1531 CompileTimeErrorCode(this.name, this.ordinal, String message) { 1533 CompileTimeErrorCode(this.name, this.ordinal, String message) {
1532 this._message = message; 1534 this._message = message;
1533 } 1535 }
1534 ErrorSeverity get errorSeverity => ErrorType.COMPILE_TIME_ERROR.severity; 1536 ErrorSeverity get errorSeverity => ErrorType.COMPILE_TIME_ERROR.severity;
1535 String get message => _message; 1537 String get message => _message;
1536 ErrorType get type => ErrorType.COMPILE_TIME_ERROR; 1538 ErrorType get type => ErrorType.COMPILE_TIME_ERROR;
1537 int compareTo(CompileTimeErrorCode other) => ordinal - other.ordinal; 1539 int compareTo(CompileTimeErrorCode other) => ordinal - other.ordinal;
1540 int get hashCode => ordinal;
1538 String toString() => name; 1541 String toString() => name;
1539 } 1542 }
1540 /** 1543 /**
1541 * The enumeration {@code PubSuggestionCode} defines the suggestions used for re porting deviations 1544 * The enumeration {@code PubSuggestionCode} defines the suggestions used for re porting deviations
1542 * from pub best practices. The convention for this class is for the name of the bad practice to 1545 * from pub best practices. The convention for this class is for the name of the bad practice to
1543 * indicate the problem that caused the suggestion to be generated and for the m essage to explain 1546 * indicate the problem that caused the suggestion to be generated and for the m essage to explain
1544 * what is wrong and, when appropriate, how the situation can be corrected. 1547 * what is wrong and, when appropriate, how the situation can be corrected.
1545 */ 1548 */
1546 class PubSuggestionCode implements Comparable<PubSuggestionCode>, ErrorCode { 1549 class PubSuggestionCode implements Comparable<PubSuggestionCode>, ErrorCode {
1547 1550
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 * Initialize a newly created error code to have the given message. 1587 * Initialize a newly created error code to have the given message.
1585 * @param message the message template used to create the message to be displa yed for the error 1588 * @param message the message template used to create the message to be displa yed for the error
1586 */ 1589 */
1587 PubSuggestionCode(this.name, this.ordinal, String message) { 1590 PubSuggestionCode(this.name, this.ordinal, String message) {
1588 this._message = message; 1591 this._message = message;
1589 } 1592 }
1590 ErrorSeverity get errorSeverity => ErrorType.PUB_SUGGESTION.severity; 1593 ErrorSeverity get errorSeverity => ErrorType.PUB_SUGGESTION.severity;
1591 String get message => _message; 1594 String get message => _message;
1592 ErrorType get type => ErrorType.PUB_SUGGESTION; 1595 ErrorType get type => ErrorType.PUB_SUGGESTION;
1593 int compareTo(PubSuggestionCode other) => ordinal - other.ordinal; 1596 int compareTo(PubSuggestionCode other) => ordinal - other.ordinal;
1597 int get hashCode => ordinal;
1594 String toString() => name; 1598 String toString() => name;
1595 } 1599 }
1596 /** 1600 /**
1597 * The enumeration {@code StaticWarningCode} defines the error codes used for st atic warnings. The 1601 * The enumeration {@code StaticWarningCode} defines the error codes used for st atic warnings. The
1598 * convention for this class is for the name of the error code to indicate the p roblem that caused 1602 * convention for this class is for the name of the error code to indicate the p roblem that caused
1599 * the error to be generated and for the error message to explain what is wrong and, when 1603 * the error to be generated and for the error message to explain what is wrong and, when
1600 * appropriate, how the problem can be corrected. 1604 * appropriate, how the problem can be corrected.
1601 * @coverage dart.engine.error 1605 * @coverage dart.engine.error
1602 */ 1606 */
1603 class StaticWarningCode implements Comparable<StaticWarningCode>, ErrorCode { 1607 class StaticWarningCode implements Comparable<StaticWarningCode>, ErrorCode {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 /** 1654 /**
1651 * 13.9 Switch: It is a static warning if the last statement of the statement sequence 1655 * 13.9 Switch: It is a static warning if the last statement of the statement sequence
1652 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement. 1656 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement.
1653 */ 1657 */
1654 static final StaticWarningCode CASE_BLOCK_NOT_TERMINATED = new StaticWarningCo de('CASE_BLOCK_NOT_TERMINATED', 3, "The last statement of the 'case' should be ' break', 'continue', 'return' or 'throw'"); 1658 static final StaticWarningCode CASE_BLOCK_NOT_TERMINATED = new StaticWarningCo de('CASE_BLOCK_NOT_TERMINATED', 3, "The last statement of the 'case' should be ' break', 'continue', 'return' or 'throw'");
1655 1659
1656 /** 1660 /**
1657 * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type available in the 1661 * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type available in the
1658 * current lexical scope. 1662 * current lexical scope.
1659 */ 1663 */
1660 static final StaticWarningCode CAST_TO_NON_TYPE = new StaticWarningCode('CAST_ TO_NON_TYPE', 4, ""); 1664 static final StaticWarningCode CAST_TO_NON_TYPE = new StaticWarningCode('CAST_ TO_NON_TYPE', 4, "The name '%s' is not a type and cannot be used in an 'as' expr ession");
1661 1665
1662 /** 1666 /**
1663 * 16.1.2 Comments: A token of the form <i>\[new c\](uri)</i> will be replaced by a link in the 1667 * 16.1.2 Comments: A token of the form <i>\[new c\](uri)</i> will be replaced by a link in the
1664 * formatted output. The link will point at the constructor named <i>c</i> in <i>L</i>. The title 1668 * formatted output. The link will point at the constructor named <i>c</i> in <i>L</i>. The title
1665 * of the link will be <i>c</i>. It is a static warning if uri is not the URI of a dart library 1669 * of the link will be <i>c</i>. It is a static warning if uri is not the URI of a dart library
1666 * <i>L</i>, or if <i>c</i> is not the name of a constructor of a class declar ed in the exported 1670 * <i>L</i>, or if <i>c</i> is not the name of a constructor of a class declar ed in the exported
1667 * namespace of <i>L</i>. 1671 * namespace of <i>L</i>.
1668 */ 1672 */
1669 static final StaticWarningCode COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE = new StaticWarningCode('COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE', 5, ""); 1673 static final StaticWarningCode COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE = new StaticWarningCode('COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE', 5, "");
1670 1674
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 1779
1776 /** 1780 /**
1777 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a 1781 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a
1778 * static warning if the static type of <i>id</i> is not assignable to <i>T<su b>id</sub></i>. 1782 * static warning if the static type of <i>id</i> is not assignable to <i>T<su b>id</sub></i>.
1779 * @param parameterType the name of the type of the field formal parameter 1783 * @param parameterType the name of the type of the field formal parameter
1780 * @param fieldType the name of the type of the field 1784 * @param fieldType the name of the type of the field
1781 */ 1785 */
1782 static final StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = new StaticWarningCode('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 20, "The parameter type '%s' is incompatable with the field type '%s'"); 1786 static final StaticWarningCode FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE = new StaticWarningCode('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 20, "The parameter type '%s' is incompatable with the field type '%s'");
1783 1787
1784 /** 1788 /**
1789 * 5 Variables: It is a static warning if a library, static or local variable <i>v</i> is final
1790 * and <i>v</i> is not initialized at its point of declaration.
1791 * @param name the name of the uninitialized final variable
1792 */
1793 static final StaticWarningCode FINAL_NOT_INITIALIZED = new StaticWarningCode(' FINAL_NOT_INITIALIZED', 21, "The final variable '%s' must be initialized");
1794
1795 /**
1785 * 14.1 Imports: It is a static warning to import two different libraries with the same name. 1796 * 14.1 Imports: It is a static warning to import two different libraries with the same name.
1786 * @param uri1 the uri pointing to a first library 1797 * @param uri1 the uri pointing to a first library
1787 * @param uri2 the uri pointing to a second library 1798 * @param uri2 the uri pointing to a second library
1788 * @param name the shared name of the imported libraries 1799 * @param name the shared name of the imported libraries
1789 */ 1800 */
1790 static final StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = new StaticWarn ingCode('IMPORT_DUPLICATED_LIBRARY_NAME', 21, "The imported libraries '%s' and ' %s' should not have the same name '%s'"); 1801 static final StaticWarningCode IMPORT_DUPLICATED_LIBRARY_NAME = new StaticWarn ingCode('IMPORT_DUPLICATED_LIBRARY_NAME', 22, "The imported libraries '%s' and ' %s' should not have the same name '%s'");
1791 1802
1792 /** 1803 /**
1793 * 8.1.1 Inheritance and Overriding: However, if there are multiple members <i >m<sub>1</sub>, 1804 * 8.1.1 Inheritance and Overriding: However, if there are multiple members <i >m<sub>1</sub>,
1794 * &hellip; m<sub>k</sub></i> with the same name <i>n</i> that would be inheri ted (because 1805 * &hellip; m<sub>k</sub></i> with the same name <i>n</i> that would be inheri ted (because
1795 * identically named members existed in several superinterfaces) then at most one member is 1806 * identically named members existed in several superinterfaces) then at most one member is
1796 * inherited. 1807 * inherited.
1797 * <p> 1808 * <p>
1798 * If some but not all of the <i>m<sub>i</sub>, 1 &lt;= i &lt;= k</i>, are get ters, or if some but 1809 * If some but not all of the <i>m<sub>i</sub>, 1 &lt;= i &lt;= k</i>, are get ters, or if some but
1799 * not all of the <i>m<sub>i</sub></i> are setters, none of the <i>m<sub>i</su b></i> are 1810 * not all of the <i>m<sub>i</sub></i> are setters, none of the <i>m<sub>i</su b></i> are
1800 * inherited, and a static warning is issued. 1811 * inherited, and a static warning is issued.
1801 */ 1812 */
1802 static final StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD = new StaticWarningCode('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD', 22, "'%s' is inherited as a getter and also a method"); 1813 static final StaticWarningCode INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METH OD = new StaticWarningCode('INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD', 23, "'%s' is inherited as a getter and also a method");
1803 1814
1804 /** 1815 /**
1805 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt; 1816 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt;
1806 * n</i>. 1817 * n</i>.
1807 */ 1818 */
1808 static final StaticWarningCode INCORRECT_NUMBER_OF_ARGUMENTS = new StaticWarni ngCode('INCORRECT_NUMBER_OF_ARGUMENTS', 23, ""); 1819 static final StaticWarningCode INCORRECT_NUMBER_OF_ARGUMENTS = new StaticWarni ngCode('INCORRECT_NUMBER_OF_ARGUMENTS', 24, "");
1809 1820
1810 /** 1821 /**
1811 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method 1822 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method
1812 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of 1823 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of
1813 * <i>C</i>. 1824 * <i>C</i>.
1814 * @param memberName the name of the member with the name conflict 1825 * @param memberName the name of the member with the name conflict
1815 * @param superclassName the name of the enclosing class that has the static m ember 1826 * @param superclassName the name of the enclosing class that has the static m ember
1816 */ 1827 */
1817 static final StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_S TATIC = new StaticWarningCode('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STA TIC', 24, "'%s' collides with a static member in the superclass '%s'"); 1828 static final StaticWarningCode INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_S TATIC = new StaticWarningCode('INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STA TIC', 25, "'%s' collides with a static member in the superclass '%s'");
1818 1829
1819 /** 1830 /**
1820 * 7.6.2 Factories: It is a static warning if <i>M.id</i> is not a constructor name. 1831 * 7.6.2 Factories: It is a static warning if <i>M.id</i> is not a constructor name.
1821 */ 1832 */
1822 static final StaticWarningCode INVALID_FACTORY_NAME = new StaticWarningCode('I NVALID_FACTORY_NAME', 25, ""); 1833 static final StaticWarningCode INVALID_FACTORY_NAME = new StaticWarningCode('I NVALID_FACTORY_NAME', 26, "");
1823 1834
1824 /** 1835 /**
1825 * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a gette r <i>m2</i> and the 1836 * 7.2 Getters: It is a static warning if a getter <i>m1</i> overrides a gette r <i>m2</i> and the
1826 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1837 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1827 * @param actualReturnTypeName the name of the expected return type 1838 * @param actualReturnTypeName the name of the expected return type
1828 * @param expectedReturnType the name of the actual return type, not assignabl e to the 1839 * @param expectedReturnType the name of the actual return type, not assignabl e to the
1829 * actualReturnTypeName 1840 * actualReturnTypeName
1830 * @param className the name of the class where the overridden getter is decla red 1841 * @param className the name of the class where the overridden getter is decla red
1831 * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE 1842 * @see #INVALID_METHOD_OVERRIDE_RETURN_TYPE
1832 */ 1843 */
1833 static final StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = new Stati cWarningCode('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 26, "The return type '%s' is not assignable to '%s' as required from getter it is overriding from '%s'"); 1844 static final StaticWarningCode INVALID_GETTER_OVERRIDE_RETURN_TYPE = new Stati cWarningCode('INVALID_GETTER_OVERRIDE_RETURN_TYPE', 27, "The return type '%s' is not assignable to '%s' as required from getter it is overriding from '%s'");
1834 1845
1835 /** 1846 /**
1836 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 1847 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
1837 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1848 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1838 * @param actualParamTypeName the name of the expected parameter type 1849 * @param actualParamTypeName the name of the expected parameter type
1839 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 1850 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
1840 * actualParamTypeName 1851 * actualParamTypeName
1841 * @param className the name of the class where the overridden method is decla red 1852 * @param className the name of the class where the overridden method is decla red
1842 */ 1853 */
1843 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = new StaticWarningCode('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 27, "The parameter type '%s' is not assignable to '%s' as required from method it is overriding fr om '%s'"); 1854 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE = new StaticWarningCode('INVALID_METHOD_OVERRIDE_NAMED_PARAM_TYPE', 28, "The parameter type '%s' is not assignable to '%s' as required from method it is overriding fr om '%s'");
1844 1855
1845 /** 1856 /**
1846 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 1857 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
1847 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1858 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1848 * @param actualParamTypeName the name of the expected parameter type 1859 * @param actualParamTypeName the name of the expected parameter type
1849 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 1860 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
1850 * actualParamTypeName 1861 * actualParamTypeName
1851 * @param className the name of the class where the overridden method is decla red 1862 * @param className the name of the class where the overridden method is decla red
1852 * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE 1863 * @see #INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE
1853 */ 1864 */
1854 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 28, "The paramet er type '%s' is not assignable to '%s' as required by the method it is overridin g from '%s'"); 1865 static final StaticWarningCode INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode('INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE', 29, "The paramet er type '%s' is not assignable to '%s' as required by the method it is overridin g from '%s'");
1855 1866
1856 /** 1867 /**
1857 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 1868 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
1858 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1869 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1859 * @param actualParamTypeName the name of the expected parameter type 1870 * @param actualParamTypeName the name of the expected parameter type
1860 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 1871 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
1861 * actualParamTypeName 1872 * actualParamTypeName
1862 * @param className the name of the class where the overridden method is decla red 1873 * @param className the name of the class where the overridden method is decla red
1863 */ 1874 */
1864 static final StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = n ew StaticWarningCode('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 29, "The par ameter type '%s' is not assignable to '%s' as required from method it is overrid ing from '%s'"); 1875 static final StaticWarningCode INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE = n ew StaticWarningCode('INVALID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE', 30, "The par ameter type '%s' is not assignable to '%s' as required from method it is overrid ing from '%s'");
1865 1876
1866 /** 1877 /**
1867 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 1878 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
1868 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1879 * instance method <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1869 * @param actualReturnTypeName the name of the expected return type 1880 * @param actualReturnTypeName the name of the expected return type
1870 * @param expectedReturnType the name of the actual return type, not assignabl e to the 1881 * @param expectedReturnType the name of the actual return type, not assignabl e to the
1871 * actualReturnTypeName 1882 * actualReturnTypeName
1872 * @param className the name of the class where the overridden method is decla red 1883 * @param className the name of the class where the overridden method is decla red
1873 * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE 1884 * @see #INVALID_GETTER_OVERRIDE_RETURN_TYPE
1874 */ 1885 */
1875 static final StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = new Stati cWarningCode('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 30, "The return type '%s' is not assignable to '%s' as required from method it is overriding from '%s'"); 1886 static final StaticWarningCode INVALID_METHOD_OVERRIDE_RETURN_TYPE = new Stati cWarningCode('INVALID_METHOD_OVERRIDE_RETURN_TYPE', 31, "The return type '%s' is not assignable to '%s' as required from method it is overriding from '%s'");
1876 1887
1877 /** 1888 /**
1878 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an 1889 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i > overrides an
1879 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for 1890 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for
1880 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value 1891 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value
1881 * for <i>p</i>. 1892 * for <i>p</i>.
1882 */ 1893 */
1883 static final StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES = new StaticWarningCode('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES', 31, ""); 1894 static final StaticWarningCode INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES = new StaticWarningCode('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES', 32, "");
1884 1895
1885 /** 1896 /**
1886 * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a sette r <i>m2</i> and the 1897 * 7.3 Setters: It is a static warning if a setter <i>m1</i> overrides a sette r <i>m2</i> and the
1887 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1898 * type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1888 * @param actualParamTypeName the name of the expected parameter type 1899 * @param actualParamTypeName the name of the expected parameter type
1889 * @param expectedParamType the name of the actual parameter type, not assigna ble to the 1900 * @param expectedParamType the name of the actual parameter type, not assigna ble to the
1890 * actualParamTypeName 1901 * actualParamTypeName
1891 * @param className the name of the class where the overridden setter is decla red 1902 * @param className the name of the class where the overridden setter is decla red
1892 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE 1903 * @see #INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE
1893 */ 1904 */
1894 static final StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 32, "The paramet er type '%s' is not assignable to '%s' as required by the setter it is overridin g from '%s'"); 1905 static final StaticWarningCode INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE = new StaticWarningCode('INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE', 33, "The paramet er type '%s' is not assignable to '%s' as required by the setter it is overridin g from '%s'");
1895 1906
1896 /** 1907 /**
1897 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form 1908 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form
1898 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip; 1909 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip;
1899 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. If <i>S.m</i> exists, it is a static warning if the type 1910 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. If <i>S.m</i> exists, it is a static warning if the type
1900 * <i>F</i> of <i>S.m</i> may not be assigned to a function type. 1911 * <i>F</i> of <i>S.m</i> may not be assigned to a function type.
1901 */ 1912 */
1902 static final StaticWarningCode INVOCATION_OF_NON_FUNCTION = new StaticWarningC ode('INVOCATION_OF_NON_FUNCTION', 33, ""); 1913 static final StaticWarningCode INVOCATION_OF_NON_FUNCTION = new StaticWarningC ode('INVOCATION_OF_NON_FUNCTION', 34, "");
1903 1914
1904 /** 1915 /**
1905 * 15.1 Static Types: A type <i>T</i> is malformed iff: <li><i>T</i> has the f orm <i>id</i> or the 1916 * 15.1 Static Types: A type <i>T</i> is malformed iff: <li><i>T</i> has the f orm <i>id</i> or the
1906 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</ i> (respectively 1917 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</ i> (respectively
1907 * <i>prefix.id</i>) does not denote a type.</li> <li><i>T</i> denotes a type variable in the 1918 * <i>prefix.id</i>) does not denote a type.</li> <li><i>T</i> denotes a type variable in the
1908 * enclosing lexical scope, but occurs in the signature or body of a static me mber.</li> <li> 1919 * enclosing lexical scope, but occurs in the signature or body of a static me mber.</li> <li>
1909 * <i>T</i> is a parameterized type of the form <i>G&lt;S<sub>1</sub>, .., S<s ub>n</sub>&gt;</i>, 1920 * <i>T</i> is a parameterized type of the form <i>G&lt;S<sub>1</sub>, .., S<s ub>n</sub>&gt;</i>,
1910 * and <i>G</i> is malformed.</li></ul> 1921 * and <i>G</i> is malformed.</li></ul>
1911 * <p> 1922 * <p>
1912 * Any use of a malformed type gives rise to a static warning. 1923 * Any use of a malformed type gives rise to a static warning.
1913 */ 1924 */
1914 static final StaticWarningCode MALFORMED_TYPE = new StaticWarningCode('MALFORM ED_TYPE', 34, ""); 1925 static final StaticWarningCode MALFORMED_TYPE = new StaticWarningCode('MALFORM ED_TYPE', 35, "");
1915 1926
1916 /** 1927 /**
1917 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i> with argument type 1928 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i> with argument type
1918 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i > may not be 1929 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i > may not be
1919 * assigned to <i>S</i>. 1930 * assigned to <i>S</i>.
1920 */ 1931 */
1921 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static WarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 35, "The parameter type for se tter '%s' is %s which is not assignable to its getter (of type %s)"); 1932 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static WarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 36, "The parameter type for se tter '%s' is %s which is not assignable to its getter (of type %s)");
1922 1933
1923 /** 1934 /**
1924 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst ract class and 1935 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst ract class and
1925 * <i>q</i> is not a factory constructor. 1936 * <i>q</i> is not a factory constructor.
1926 */ 1937 */
1927 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode ('NEW_WITH_ABSTRACT_CLASS', 36, "Abstract classes cannot be created with a 'new' expression"); 1938 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode ('NEW_WITH_ABSTRACT_CLASS', 37, "Abstract classes cannot be created with a 'new' expression");
1928 1939
1929 /** 1940 /**
1930 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i n the current scope, 1941 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i n the current scope,
1931 * optionally followed by type arguments. 1942 * optionally followed by type arguments.
1932 * @param name the name of the non-type element 1943 * @param name the name of the non-type element
1933 */ 1944 */
1934 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode('NEW_ WITH_NON_TYPE', 37, "The name '%s' is not a class"); 1945 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode('NEW_ WITH_NON_TYPE', 38, "The name '%s' is not a class");
1935 1946
1936 /** 1947 /**
1937 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then: 1948 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
1938 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>, 1949 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>,
1939 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a 1950 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a
1940 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>. 1951 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>.
1941 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>: 1952 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>:
1942 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta tic warning if the 1953 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta tic warning if the
1943 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>. 1954 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>.
1944 */ 1955 */
1945 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = new StaticWarn ingCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', 38, "The class '%s' does not have a co nstructor '%s'"); 1956 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = new StaticWarn ingCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', 39, "The class '%s' does not have a co nstructor '%s'");
1946 1957
1947 /** 1958 /**
1948 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then: 1959 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the current scope then:
1949 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>, 1960 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, &hellip;, a<sub>n< /sub>,
1950 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a 1961 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a
1951 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>. 1962 * static warning if <i>T.id</i> is not the name of a constructor declared by the type <i>T</i>.
1952 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>: 1963 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x< sub>n+1</sub>:
1953 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta tic warning if the 1964 * a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta tic warning if the
1954 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>. 1965 * type <i>T</i> does not declare a constructor with the same name as the decl aration of <i>T</i>.
1955 */ 1966 */
1956 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = new St aticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 39, "The class '%s' do es not have a default constructor"); 1967 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = new St aticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 40, "The class '%s' do es not have a default constructor");
1957 1968
1958 /** 1969 /**
1959 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 1970 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
1960 * abstract method. 1971 * abstract method.
1961 * <p> 1972 * <p>
1962 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class 1973 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class
1963 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a 1974 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a
1964 * corresponding instance member <i>m</i>. 1975 * corresponding instance member <i>m</i>.
1976 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the first
1977 * member
1965 * @param enclosingClass enclosing class of the first missing member 1978 * @param enclosingClass enclosing class of the first missing member
1966 * @param name first member name 1979 * @param name first member name
1980 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the second
1981 * member
1967 * @param enclosingClass enclosing class of the second missing member 1982 * @param enclosingClass enclosing class of the second missing member
1968 * @param name second member name 1983 * @param name second member name
1984 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the third
1985 * member
1969 * @param enclosingClass enclosing class of the third missing member 1986 * @param enclosingClass enclosing class of the third missing member
1970 * @param name third member name 1987 * @param name third member name
1988 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the fourth
1989 * member
1971 * @param enclosingClass enclosing class of the fourth missing member 1990 * @param enclosingClass enclosing class of the fourth missing member
1972 * @param name fourth member name 1991 * @param name fourth member name
1973 * @param additionalCount the number of additional missing members that aren't listed 1992 * @param additionalCount the number of additional missing members that aren't listed
1974 */ 1993 */
1975 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV E_PLUS = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE _PLUS', 40, "Missing inherited members '%s.%s', '%s.%s', '%s.%s', '%s.%s' and %d more"); 1994 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV E_PLUS = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE _PLUS', 41, "Missing inherited members: %s'%s.%s', %s'%s.%s', %s'%s.%s', %s'%s.% s' and %d more");
1976 1995
1977 /** 1996 /**
1978 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 1997 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
1979 * abstract method. 1998 * abstract method.
1980 * <p> 1999 * <p>
1981 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class 2000 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class
1982 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a 2001 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a
1983 * corresponding instance member <i>m</i>. 2002 * corresponding instance member <i>m</i>.
2003 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the first
2004 * member
1984 * @param enclosingClass enclosing class of the first missing member 2005 * @param enclosingClass enclosing class of the first missing member
1985 * @param name first member name 2006 * @param name first member name
2007 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the second
2008 * member
1986 * @param enclosingClass enclosing class of the second missing member 2009 * @param enclosingClass enclosing class of the second missing member
1987 * @param name second member name 2010 * @param name second member name
2011 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the third
2012 * member
1988 * @param enclosingClass enclosing class of the third missing member 2013 * @param enclosingClass enclosing class of the third missing member
1989 * @param name third member name 2014 * @param name third member name
2015 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the fourth
2016 * member
1990 * @param enclosingClass enclosing class of the fourth missing member 2017 * @param enclosingClass enclosing class of the fourth missing member
1991 * @param name fourth member name 2018 * @param name fourth member name
1992 */ 2019 */
1993 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU R = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 41 , "Missing inherited members '%s.%s', '%s.%s', '%s.%s' and '%s.%s'"); 2020 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU R = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 42 , "Missing inherited members: %s'%s.%s', %s'%s.%s', %s'%s.%s' and %s'%s.%s'");
1994 2021
1995 /** 2022 /**
1996 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2023 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
1997 * abstract method. 2024 * abstract method.
1998 * <p> 2025 * <p>
1999 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class 2026 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class
2000 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a 2027 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a
2001 * corresponding instance member <i>m</i>. 2028 * corresponding instance member <i>m</i>.
2029 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
2002 * @param enclosingClass enclosing class of the missing member 2030 * @param enclosingClass enclosing class of the missing member
2003 * @param name member name 2031 * @param name member name
2004 */ 2032 */
2005 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 42, "Missing inherited member '%s.%s'"); 2033 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 43, "Missing inherited member %s'%s.%s'");
2006 2034
2007 /** 2035 /**
2008 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2036 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2009 * abstract method. 2037 * abstract method.
2010 * <p> 2038 * <p>
2011 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class 2039 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class
2012 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a 2040 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a
2013 * corresponding instance member <i>m</i>. 2041 * corresponding instance member <i>m</i>.
2042 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the first
2043 * member
2014 * @param enclosingClass enclosing class of the first missing member 2044 * @param enclosingClass enclosing class of the first missing member
2015 * @param name first member name 2045 * @param name first member name
2046 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the second
2047 * member
2016 * @param enclosingClass enclosing class of the second missing member 2048 * @param enclosingClass enclosing class of the second missing member
2017 * @param name second member name 2049 * @param name second member name
2050 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the third
2051 * member
2018 * @param enclosingClass enclosing class of the third missing member 2052 * @param enclosingClass enclosing class of the third missing member
2019 * @param name third member name 2053 * @param name third member name
2020 */ 2054 */
2021 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR EE = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', 43, "Missing inherited members '%s.%s', '%s.%s' and '%s.%s'"); 2055 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR EE = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', 44, "Missing inherited members: %s'%s.%s', %s'%s.%s' and %s'%s.%s'");
2022 2056
2023 /** 2057 /**
2024 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an 2058 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an
2025 * abstract method. 2059 * abstract method.
2026 * <p> 2060 * <p>
2027 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class 2061 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a non-abstract class
2028 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a 2062 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare or inherit a
2029 * corresponding instance member <i>m</i>. 2063 * corresponding instance member <i>m</i>.
2064 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the first
2065 * member
2030 * @param enclosingClass enclosing class of the first missing member 2066 * @param enclosingClass enclosing class of the first missing member
2031 * @param name first member name 2067 * @param name first member name
2068 * @param getterSetterOrMethod a string containing either "get ", "set " or "" for the second
2069 * member
2032 * @param enclosingClass enclosing class of the second missing member 2070 * @param enclosingClass enclosing class of the second missing member
2033 * @param name second member name 2071 * @param name second member name
2034 */ 2072 */
2035 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 44, "Missing inherited members '%s.%s' and '%s.%s'"); 2073 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 45, "Missing inherited members: %s'%s.%s' and %s'%s.%s'");
2036
2037 /**
2038 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type available in the
2039 * current lexical scope.
2040 */
2041 static final StaticWarningCode NON_TYPE = new StaticWarningCode('NON_TYPE', 45 , "");
2042 2074
2043 /** 2075 /**
2044 * 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 2076 * 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
2045 * <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 2077 * <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
2046 * is a static warning if <i>T</i> does not denote a type available in the lex ical scope of the 2078 * is a static warning if <i>T</i> does not denote a type available in the lex ical scope of the
2047 * catch clause. 2079 * catch clause.
2048 * @param name the name of the non-type element 2080 * @param name the name of the non-type element
2049 */ 2081 */
2050 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod e('NON_TYPE_IN_CATCH_CLAUSE', 46, "The name '%s' is not a type and cannot be use d in an on-catch clause"); 2082 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod e('NON_TYPE_IN_CATCH_CLAUSE', 46, "The name '%s' is not a type and cannot be use d in an on-catch clause");
2051 2083
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2122 */ 2154 */
2123 static final StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = new StaticWa rningCode('STATIC_ACCESS_TO_INSTANCE_MEMBER', 56, "Instance member '%s' cannot b e accessed using static access"); 2155 static final StaticWarningCode STATIC_ACCESS_TO_INSTANCE_MEMBER = new StaticWa rningCode('STATIC_ACCESS_TO_INSTANCE_MEMBER', 56, "Instance member '%s' cannot b e accessed using static access");
2124 2156
2125 /** 2157 /**
2126 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi gned to the type of 2158 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi gned to the type of
2127 * <i>e<sub>k</sub></i>. 2159 * <i>e<sub>k</sub></i>.
2128 */ 2160 */
2129 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 57, "Type '%s' of the switch expre ssion is not assignable to the type '%s' of case expressions"); 2161 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 57, "Type '%s' of the switch expre ssion is not assignable to the type '%s' of case expressions");
2130 2162
2131 /** 2163 /**
2164 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type available in the
2165 * current lexical scope.
2166 */
2167 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode('TYP E_TEST_NON_TYPE', 58, "The name '%s' is not a type and cannot be used in an 'is' expression");
2168
2169 /**
2132 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form 2170 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form
2133 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip; 2171 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip;
2134 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d oes not denote a 2172 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d oes not denote a
2135 * class in the current scope. 2173 * class in the current scope.
2136 */ 2174 */
2137 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI NED_CLASS', 58, "Undefined class '%s'"); 2175 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI NED_CLASS', 59, "Undefined class '%s'");
2138 2176
2139 /** 2177 /**
2140 * Same as {@link #UNDEFINED_CLASS}, but to catch using "boolean" instead of " bool". 2178 * Same as {@link #UNDEFINED_CLASS}, but to catch using "boolean" instead of " bool".
2141 */ 2179 */
2142 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode ('UNDEFINED_CLASS_BOOLEAN', 59, "Undefined class 'boolean'; did you mean 'bool'? "); 2180 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode ('UNDEFINED_CLASS_BOOLEAN', 60, "Undefined class 'boolean'; did you mean 'bool'? ");
2143 2181
2144 /** 2182 /**
2145 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing 2183 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing
2146 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter 2184 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter
2147 * named <i>m</i>. 2185 * named <i>m</i>.
2148 * @param getterName the name of the getter 2186 * @param getterName the name of the getter
2149 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 2187 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
2150 */ 2188 */
2151 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF INED_GETTER', 60, "There is no such getter '%s' in '%s'"); 2189 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF INED_GETTER', 61, "There is no such getter '%s' in '%s'");
2152 2190
2153 /** 2191 /**
2154 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 2192 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
2155 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 2193 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
2156 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 2194 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
2157 * lexical scope enclosing the expression. 2195 * lexical scope enclosing the expression.
2158 */ 2196 */
2159 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U NDEFINED_IDENTIFIER', 61, "Undefined name '%s'"); 2197 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U NDEFINED_IDENTIFIER', 62, "Undefined name '%s'");
2160 2198
2161 /** 2199 /**
2162 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 2200 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
2163 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 2201 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
2164 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 2202 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
2165 * @param name the name of the requested named parameter 2203 * @param name the name of the requested named parameter
2166 */ 2204 */
2167 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo de('UNDEFINED_NAMED_PARAMETER', 62, "The named parameter '%s' is not defined"); 2205 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo de('UNDEFINED_NAMED_PARAMETER', 63, "The named parameter '%s' is not defined");
2168 2206
2169 /** 2207 /**
2170 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs 2208 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
2171 * inside a top level or static function (be it function, method, getter, or s etter) or variable 2209 * inside a top level or static function (be it function, method, getter, or s etter) or variable
2172 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope 2210 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope
2173 * enclosing the assignment. 2211 * enclosing the assignment.
2174 * <p> 2212 * <p>
2175 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical 2213 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical
2176 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter 2214 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter
2177 * <i>v=</i>. 2215 * <i>v=</i>.
2178 * @param setterName the name of the getter 2216 * @param setterName the name of the getter
2179 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for 2217 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
2180 */ 2218 */
2181 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF INED_SETTER', 63, "There is no such setter '%s' in '%s'"); 2219 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF INED_SETTER', 64, "There is no such setter '%s' in '%s'");
2182 2220
2183 /** 2221 /**
2184 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method 2222 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method
2185 * or getter <i>m</i>. 2223 * or getter <i>m</i>.
2186 * @param methodName the name of the method 2224 * @param methodName the name of the method
2187 * @param enclosingType the name of the enclosing type where the method is bei ng looked for 2225 * @param enclosingType the name of the enclosing type where the method is bei ng looked for
2188 */ 2226 */
2189 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 64, "There is no such static met hod '%s' in '%s'"); 2227 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 65, "There is no such static met hod '%s' in '%s'");
2190 static final List<StaticWarningCode> values = [AMBIGUOUS_IMPORT, ARGUMENT_TYPE _NOT_ASSIGNABLE, ASSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYP E, COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_V ISIBLE, COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_I DENTIFIER, COMMENT_REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBE R, CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTE R_AND_SUPERCLASS_MEMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICT ING_STATIC_SETTER_AND_INSTANCE_MEMBER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_ MAP, EXPORT_DUPLICATED_LIBRARY_NAME, EXTRA_POSITIONAL_ARGUMENTS, FIELD_INITIALIZ ER_NOT_ASSIGNABLE, FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, IMPORT_DUPLICATED_L IBRARY_NAME, INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_METHOD, INCORRECT_NUMBER _OF_ARGUMENTS, INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCLASS_STATIC, INVALID_FAC TORY_NAME, INVALID_GETTER_OVERRIDE_RETURN_TYPE, INVALID_METHOD_OVERRIDE_NAMED_PA RAM_TYPE, INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_OPT IONAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_RETURN_TYPE, INVALID_OVERRIDE_DIFFEREN T_DEFAULT_VALUES, INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TYPE, INVOCATION_OF_NON_F UNCTION, MALFORMED_TYPE, MISMATCHED_GETTER_AND_SETTER_TYPES, NEW_WITH_ABSTRACT_C LASS, NEW_WITH_NON_TYPE, NEW_WITH_UNDEFINED_CONSTRUCTOR, NEW_WITH_UNDEFINED_CONS TRUCTOR_DEFAULT, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS, NON_ABST RACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_M EMBER_ONE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE, NON_ABSTRACT_CLASS _INHERITS_ABSTRACT_MEMBER_TWO, NON_TYPE, NON_TYPE_IN_CATCH_CLAUSE, NON_VOID_RETU RN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, NOT_ENOUGH_REQUIRED_ARGUMENTS, PART _OF_DIFFERENT_LIBRARY, REDIRECT_TO_INVALID_FUNCTION_TYPE, REDIRECT_TO_INVALID_RE TURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR, REDIRECT_TO_NON_CLASS, RETURN_WITHOU T_VALUE, STATIC_ACCESS_TO_INSTANCE_MEMBER, SWITCH_EXPRESSION_NOT_ASSIGNABLE, UND EFINED_CLASS, UNDEFINED_CLASS_BOOLEAN, UNDEFINED_GETTER, UNDEFINED_IDENTIFIER, U NDEFINED_NAMED_PARAMETER, UNDEFINED_SETTER, UNDEFINED_STATIC_METHOD_OR_GETTER]; 2228 static final List<StaticWarningCode> values = [AMBIGUOUS_IMPORT, ARGUMENT_TYPE _NOT_ASSIGNABLE, ASSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYP E, COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_V ISIBLE, COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_I DENTIFIER, COMMENT_REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBE R, CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTE R_AND_SUPERCLASS_MEMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICT ING_STATIC_SETTER_AND_INSTANCE_MEMBER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_ MAP, EXPORT_DUPLICATED_LIBRARY_NAME, EXTRA_POSITIONAL_ARGUMENTS, FIELD_INITIALIZ ER_NOT_ASSIGNABLE, FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, FINAL_NOT_INITIALIZ ED, IMPORT_DUPLICATED_LIBRARY_NAME, INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_M ETHOD, INCORRECT_NUMBER_OF_ARGUMENTS, INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCL ASS_STATIC, INVALID_FACTORY_NAME, INVALID_GETTER_OVERRIDE_RETURN_TYPE, INVALID_M ETHOD_OVERRIDE_NAMED_PARAM_TYPE, INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, INVA LID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_RETURN_TYPE, IN VALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES, INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TY PE, INVOCATION_OF_NON_FUNCTION, MALFORMED_TYPE, MISMATCHED_GETTER_AND_SETTER_TYP ES, NEW_WITH_ABSTRACT_CLASS, NEW_WITH_NON_TYPE, NEW_WITH_UNDEFINED_CONSTRUCTOR, NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEM BER_FIVE_PLUS, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, NON_ABSTRACT_CL ASS_INHERITS_ABSTRACT_MEMBER_ONE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TH REE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, NON_TYPE_IN_CATCH_CLAUSE, NON_VOID_RETURN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, NOT_ENOUGH_REQUIRED_AR GUMENTS, PART_OF_DIFFERENT_LIBRARY, REDIRECT_TO_INVALID_FUNCTION_TYPE, REDIRECT_ TO_INVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR, REDIRECT_TO_NON_CLASS, RETURN_WITHOUT_VALUE, STATIC_ACCESS_TO_INSTANCE_MEMBER, SWITCH_EXPRESSION_NOT_AS SIGNABLE, TYPE_TEST_NON_TYPE, UNDEFINED_CLASS, UNDEFINED_CLASS_BOOLEAN, UNDEFINE D_GETTER, UNDEFINED_IDENTIFIER, UNDEFINED_NAMED_PARAMETER, UNDEFINED_SETTER, UND EFINED_STATIC_METHOD_OR_GETTER];
2191 2229
2192 /// The name of this enum constant, as declared in the enum declaration. 2230 /// The name of this enum constant, as declared in the enum declaration.
2193 final String name; 2231 final String name;
2194 2232
2195 /// The position in the enum declaration. 2233 /// The position in the enum declaration.
2196 final int ordinal; 2234 final int ordinal;
2197 2235
2198 /** 2236 /**
2199 * The message template used to create the message to be displayed for this er ror. 2237 * The message template used to create the message to be displayed for this er ror.
2200 */ 2238 */
2201 String _message; 2239 String _message;
2202 2240
2203 /** 2241 /**
2204 * Initialize a newly created error code to have the given type and message. 2242 * Initialize a newly created error code to have the given type and message.
2205 * @param message the message template used to create the message to be displa yed for the error 2243 * @param message the message template used to create the message to be displa yed for the error
2206 */ 2244 */
2207 StaticWarningCode(this.name, this.ordinal, String message) { 2245 StaticWarningCode(this.name, this.ordinal, String message) {
2208 this._message = message; 2246 this._message = message;
2209 } 2247 }
2210 ErrorSeverity get errorSeverity => ErrorType.STATIC_WARNING.severity; 2248 ErrorSeverity get errorSeverity => ErrorType.STATIC_WARNING.severity;
2211 String get message => _message; 2249 String get message => _message;
2212 ErrorType get type => ErrorType.STATIC_WARNING; 2250 ErrorType get type => ErrorType.STATIC_WARNING;
2213 int compareTo(StaticWarningCode other) => ordinal - other.ordinal; 2251 int compareTo(StaticWarningCode other) => ordinal - other.ordinal;
2252 int get hashCode => ordinal;
2214 String toString() => name; 2253 String toString() => name;
2215 } 2254 }
2216 /** 2255 /**
2217 * The interface {@code AnalysisErrorListener} defines the behavior of objects t hat listen for{@link AnalysisError analysis errors} being produced by the analys is engine. 2256 * The interface {@code AnalysisErrorListener} defines the behavior of objects t hat listen for{@link AnalysisError analysis errors} being produced by the analys is engine.
2218 * @coverage dart.engine.error 2257 * @coverage dart.engine.error
2219 */ 2258 */
2220 abstract class AnalysisErrorListener { 2259 abstract class AnalysisErrorListener {
2221 2260
2222 /** 2261 /**
2223 * An error listener that ignores errors that are reported to it. 2262 * An error listener that ignores errors that are reported to it.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 * Initialize a newly created error code to have the given type and message. 2312 * Initialize a newly created error code to have the given type and message.
2274 * @param message the message template used to create the message to be displa yed for the error 2313 * @param message the message template used to create the message to be displa yed for the error
2275 */ 2314 */
2276 HtmlWarningCode(this.name, this.ordinal, String message) { 2315 HtmlWarningCode(this.name, this.ordinal, String message) {
2277 this._message = message; 2316 this._message = message;
2278 } 2317 }
2279 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; 2318 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING;
2280 String get message => _message; 2319 String get message => _message;
2281 ErrorType get type => ErrorType.STATIC_WARNING; 2320 ErrorType get type => ErrorType.STATIC_WARNING;
2282 int compareTo(HtmlWarningCode other) => ordinal - other.ordinal; 2321 int compareTo(HtmlWarningCode other) => ordinal - other.ordinal;
2322 int get hashCode => ordinal;
2283 String toString() => name; 2323 String toString() => name;
2284 } 2324 }
2285 /** 2325 /**
2286 * The enumeration {@code StaticTypeWarningCode} defines the error codes used fo r static type 2326 * The enumeration {@code StaticTypeWarningCode} defines the error codes used fo r static type
2287 * warnings. The convention for this class is for the name of the error code to indicate the problem 2327 * warnings. The convention for this class is for the name of the error code to indicate the problem
2288 * that caused the error to be generated and for the error message to explain wh at is wrong and, 2328 * that caused the error to be generated and for the error message to explain wh at is wrong and,
2289 * when appropriate, how the problem can be corrected. 2329 * when appropriate, how the problem can be corrected.
2290 * @coverage dart.engine.error 2330 * @coverage dart.engine.error
2291 */ 2331 */
2292 class StaticTypeWarningCode implements Comparable<StaticTypeWarningCode>, ErrorC ode { 2332 class StaticTypeWarningCode implements Comparable<StaticTypeWarningCode>, ErrorC ode {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 * Initialize a newly created error code to have the given type and message. 2547 * Initialize a newly created error code to have the given type and message.
2508 * @param message the message template used to create the message to be displa yed for the error 2548 * @param message the message template used to create the message to be displa yed for the error
2509 */ 2549 */
2510 StaticTypeWarningCode(this.name, this.ordinal, String message) { 2550 StaticTypeWarningCode(this.name, this.ordinal, String message) {
2511 this._message = message; 2551 this._message = message;
2512 } 2552 }
2513 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 2553 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
2514 String get message => _message; 2554 String get message => _message;
2515 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 2555 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
2516 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal; 2556 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal;
2557 int get hashCode => ordinal;
2517 String toString() => name; 2558 String toString() => name;
2518 } 2559 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698