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

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

Issue 14050010: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 3
4 library engine.error; 4 library engine.error;
5 5
6 import 'java_core.dart'; 6 import 'java_core.dart';
7 import 'source.dart'; 7 import 'source.dart';
8 import 'ast.dart' show ASTNode; 8 import 'ast.dart' show ASTNode;
9 import 'scanner.dart' show Token; 9 import 'scanner.dart' show Token;
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 this._defaultSource = defaultSource; 100 this._defaultSource = defaultSource;
101 this._source = defaultSource; 101 this._source = defaultSource;
102 } 102 }
103 /** 103 /**
104 * Report an error with the given error code and arguments. 104 * Report an error with the given error code and arguments.
105 * @param errorCode the error code of the error to be reported 105 * @param errorCode the error code of the error to be reported
106 * @param node the node specifying the location of the error 106 * @param node the node specifying the location of the error
107 * @param arguments the arguments to the error, used to compose the error mess age 107 * @param arguments the arguments to the error, used to compose the error mess age
108 */ 108 */
109 void reportError(ErrorCode errorCode, ASTNode node, List<Object> arguments) { 109 void reportError(ErrorCode errorCode, ASTNode node, List<Object> arguments) {
110 _errorListener.onError(new AnalysisError.con2(_source, node.offset, node.len gth, errorCode, [arguments])); 110 _errorListener.onError(new AnalysisError.con2(_source, node.offset, node.len gth, errorCode, arguments));
111 } 111 }
112 /** 112 /**
113 * Report an error with the given error code and arguments. 113 * Report an error with the given error code and arguments.
114 * @param errorCode the error code of the error to be reported 114 * @param errorCode the error code of the error to be reported
115 * @param token the token specifying the location of the error 115 * @param token the token specifying the location of the error
116 * @param arguments the arguments to the error, used to compose the error mess age 116 * @param arguments the arguments to the error, used to compose the error mess age
117 */ 117 */
118 void reportError2(ErrorCode errorCode, Token token, List<Object> arguments) { 118 void reportError2(ErrorCode errorCode, Token token, List<Object> arguments) {
119 _errorListener.onError(new AnalysisError.con2(_source, token.offset, token.l ength, errorCode, [arguments])); 119 _errorListener.onError(new AnalysisError.con2(_source, token.offset, token.l ength, errorCode, arguments));
120 } 120 }
121 /** 121 /**
122 * Set the source to be used when reporting errors. Setting the source to {@co de null} will cause 122 * Set the source to be used when reporting errors. Setting the source to {@co de null} will cause
123 * the default source to be used. 123 * the default source to be used.
124 * @param source the source to be used when reporting errors 124 * @param source the source to be used when reporting errors
125 */ 125 */
126 void set source(Source source2) { 126 void set source(Source source2) {
127 this._source = source2 == null ? _defaultSource : source2; 127 this._source = source2 == null ? _defaultSource : source2;
128 } 128 }
129 } 129 }
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 * 7 Classes: It is a compile-time error if a class declares two members of th e same name. 492 * 7 Classes: It is a compile-time error if a class declares two members of th e same name.
493 */ 493 */
494 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME = new CompileTimeError Code('DUPLICATE_MEMBER_NAME', 23, ""); 494 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME = new CompileTimeError Code('DUPLICATE_MEMBER_NAME', 23, "");
495 /** 495 /**
496 * 7 Classes: It is a compile-time error if a class has an instance member and a static member 496 * 7 Classes: It is a compile-time error if a class has an instance member and a static member
497 * with the same name. 497 * with the same name.
498 */ 498 */
499 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME_INSTANCE_STATIC = new CompileTimeErrorCode('DUPLICATE_MEMBER_NAME_INSTANCE_STATIC', 24, ""); 499 static final CompileTimeErrorCode DUPLICATE_MEMBER_NAME_INSTANCE_STATIC = new CompileTimeErrorCode('DUPLICATE_MEMBER_NAME_INSTANCE_STATIC', 24, "");
500 /** 500 /**
501 * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub> i</sub> = 501 * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub> i</sub> =
502 * q<sub>j</sub></i> for any <i>i != j</i> [where <i>q<sub>i</sub></i> is the label for a named 502 * q<sub>j</sub></i> for any <i>i != j</i> [[where <i>q<sub>i</sub></i> is the label for a named
503 * argument]. 503 * argument]].
504 */ 504 */
505 static final CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = new CompileTimeEr rorCode('DUPLICATE_NAMED_ARGUMENT', 25, ""); 505 static final CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = new CompileTimeEr rorCode('DUPLICATE_NAMED_ARGUMENT', 25, "");
506 /** 506 /**
507 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 507 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
508 * not a library declaration. 508 * not a library declaration.
509 * @param uri the uri pointing to a non-library declaration 509 * @param uri the uri pointing to a non-library declaration
510 */ 510 */
511 static final CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = new CompileTimeError Code('EXPORT_OF_NON_LIBRARY', 26, "The exported library '%s' must not have a par t-of directive"); 511 static final CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = new CompileTimeError Code('EXPORT_OF_NON_LIBRARY', 26, "The exported library '%s' must not have a par t-of directive");
512 /** 512 /**
513 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes 513 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool. 545 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.
546 * <p> 546 * <p>
547 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String. 547 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String.
548 * @param typeName the name of the type that cannot be implemented 548 * @param typeName the name of the type that cannot be implemented
549 * @see #EXTENDS_DISALLOWED_CLASS 549 * @see #EXTENDS_DISALLOWED_CLASS
550 */ 550 */
551 static final CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = new CompileTim eErrorCode('IMPLEMENTS_DISALLOWED_CLASS', 29, "Classes cannot implement '%s'"); 551 static final CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = new CompileTim eErrorCode('IMPLEMENTS_DISALLOWED_CLASS', 29, "Classes cannot implement '%s'");
552 /** 552 /**
553 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 553 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
554 * error if more than one initializer corresponding to a given instance variab le appears in 554 * error if more than one initializer corresponding to a given instance variab le appears in
555 * <i>k</i>’s list. 555 * <i>k</i>'s list.
556 */ 556 */
557 static final CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = new CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 30, "The field '%s' cannot be initialized twice in the same constructor"); 557 static final CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = new CompileTimeErrorCode('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 30, "The field '%s' cannot be initialized twice in the same constructor");
558 /** 558 /**
559 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 559 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
560 * error if <i>k</i>’s initializer list contains an initializer for a final variable <i>f</i> 560 * error if <i>k</i>'s initializer list contains an initializer for a final va riable <i>f</i>
561 * whose declaration includes an initialization expression. 561 * whose declaration includes an initialization expression.
562 */ 562 */
563 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARA TION = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO N', 31, "Values cannot be set in the constructor if they are final, and have alr eady been set"); 563 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARA TION = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATIO N', 31, "Values cannot be set in the constructor if they are final, and have alr eady been set");
564 /** 564 /**
565 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 565 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
566 * error if <i>k</i>’s initializer list contains an initializer for a variab le that is initialized 566 * error if <i>k</i>'s initializer list contains an initializer for a variable that is initialized
567 * by means of an initializing formal of <i>k</i>. 567 * by means of an initializing formal of <i>k</i>.
568 */ 568 */
569 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ ER = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', 32, "Fields cannot be initialized in both the parameter list and the initializer s"); 569 static final CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ ER = new CompileTimeErrorCode('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER', 32, "Fields cannot be initialized in both the parameter list and the initializer s");
570 /** 570 /**
571 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 571 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
572 * a function other than a non-redirecting generative constructor. 572 * a function other than a non-redirecting generative constructor.
573 */ 573 */
574 static final CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 33, "Initializing formal fields can only be used in constructors"); 574 static final CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = new CompileTimeErrorCode('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 33, "Initializing formal fields can only be used in constructors");
575 /** 575 /**
576 * 5 Variables: It is a compile-time error if a final instance variable that h as been initialized 576 * 5 Variables: It is a compile-time error if a final instance variable that h as been initialized
577 * at its point of declaration is also initialized in a constructor. 577 * at its point of declaration is also initialized in a constructor.
578 * @param name the name of the field in question 578 * @param name the name of the field in question
579 */ 579 */
580 static final CompileTimeErrorCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRU CTOR = new CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO R', 34, "'%s' is final and was given a value when it was declared, so it cannot be set to a new value"); 580 static final CompileTimeErrorCode FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRU CTOR = new CompileTimeErrorCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTO R', 34, "'%s' is final and was given a value when it was declared, so it cannot be set to a new value");
581 /** 581 /**
582 * 5 Variables: It is a compile-time error if a final instance variable that h as is initialized by 582 * 5 Variables: It is a compile-time error if a final instance variable that h as is initialized by
583 * means of an initializing formal of a constructor is also initialized elsewh ere in the same 583 * means of an initializing formal of a constructor is also initialized elsewh ere in the same
584 * constructor. 584 * constructor.
585 * @param name the name of the field in question 585 * @param name the name of the field in question
586 */ 586 */
587 static final CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = new Compi leTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', 35, "'%s' is a final field a nd so can only be set once"); 587 static final CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = new Compi leTimeErrorCode('FINAL_INITIALIZED_MULTIPLE_TIMES', 35, "'%s' is a final field a nd so can only be set once");
588 /** 588 /**
589 * 5 Variables: It is a compile-time error if a library, static or local varia ble <i>v</i> is 589 * 5 Variables: It is a compile-time error if a library, static or local varia ble <i>v</i> is
590 * final and <i>v</i> is not initialized at its point of declaration. 590 * final and <i>v</i> is not initialized at its point of declaration.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value 695 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff erent default value
696 * for <i>p</i>. 696 * for <i>p</i>.
697 */ 697 */
698 static final CompileTimeErrorCode INVALID_OVERRIDE_DEFAULT_VALUE = new Compile TimeErrorCode('INVALID_OVERRIDE_DEFAULT_VALUE', 52, ""); 698 static final CompileTimeErrorCode INVALID_OVERRIDE_DEFAULT_VALUE = new Compile TimeErrorCode('INVALID_OVERRIDE_DEFAULT_VALUE', 52, "");
699 /** 699 /**
700 * 7.1: It is a compile-time error if an instance method <i>m1</i> overrides a n instance member 700 * 7.1: It is a compile-time error if an instance method <i>m1</i> overrides a n instance member
701 * <i>m2</i> and <i>m1</i> does not declare all the named parameters declared by <i>m2</i>. 701 * <i>m2</i> and <i>m1</i> does not declare all the named parameters declared by <i>m2</i>.
702 */ 702 */
703 static final CompileTimeErrorCode INVALID_OVERRIDE_NAMED = new CompileTimeErro rCode('INVALID_OVERRIDE_NAMED', 53, ""); 703 static final CompileTimeErrorCode INVALID_OVERRIDE_NAMED = new CompileTimeErro rCode('INVALID_OVERRIDE_NAMED', 53, "");
704 /** 704 /**
705 * 7.1 Instance Methods: It is a compile-time error if an instance method m1 o verrides an instance 705 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m 1</i> overrides an
706 * member <i>m2</i> and <i>m1</i> has fewer optional positional parameters tha n <i>m2</i>. 706 * instance member <i>m2</i> and <i>m1</i> has fewer optional positional param eters than
707 * <i>m2</i>.
707 */ 708 */
708 static final CompileTimeErrorCode INVALID_OVERRIDE_POSITIONAL = new CompileTim eErrorCode('INVALID_OVERRIDE_POSITIONAL', 54, ""); 709 static final CompileTimeErrorCode INVALID_OVERRIDE_POSITIONAL = new CompileTim eErrorCode('INVALID_OVERRIDE_POSITIONAL', 54, "");
709 /** 710 /**
710 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m 1</i> overrides an 711 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m 1</i> overrides an
711 * instance member <i>m2</i> and <i>m1</i> has a different number of required parameters than 712 * instance member <i>m2</i> and <i>m1</i> has a different number of required parameters than
712 * <i>m2</i>. 713 * <i>m2</i>.
713 */ 714 */
714 static final CompileTimeErrorCode INVALID_OVERRIDE_REQUIRED = new CompileTimeE rrorCode('INVALID_OVERRIDE_REQUIRED', 55, ""); 715 static final CompileTimeErrorCode INVALID_OVERRIDE_REQUIRED = new CompileTimeE rrorCode('INVALID_OVERRIDE_REQUIRED', 55, "");
715 /** 716 /**
716 * 12.10 This: It is a compile-time error if this appears in a top-level funct ion or variable 717 * 12.10 This: It is a compile-time error if this appears in a top-level funct ion or variable
717 * initializer, in a factory constructor, or in a static method or variable in itializer, or in the 718 * initializer, in a factory constructor, or in a static method or variable in itializer, or in the
718 * initializer of an instance variable. 719 * initializer of an instance variable.
719 */ 720 */
720 static final CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = new CompileTimeE rrorCode('INVALID_REFERENCE_TO_THIS', 56, ""); 721 static final CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = new CompileTimeE rrorCode('INVALID_REFERENCE_TO_THIS', 56, "");
721 /** 722 /**
722 * 12.7 Maps: It is a compile-time error if the first type argument to a map l iteral is not 723 * 12.7 Maps: It is a compile-time error if the first type argument to a map l iteral is not
723 * String. 724 * String.
724 */ 725 */
725 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_FOR_KEY = new CompileT imeErrorCode('INVALID_TYPE_ARGUMENT_FOR_KEY', 57, "The first type argument to a map literal must be 'String'"); 726 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_FOR_KEY = new CompileT imeErrorCode('INVALID_TYPE_ARGUMENT_FOR_KEY', 57, "The first type argument to a map literal must be 'String'");
726 /** 727 /**
727 * 12.6 Lists: It is a compile time error if the type argument of a constant l ist literal includes 728 * 12.6 Lists: It is a compile time error if the type argument of a constant l ist literal includes
728 * a type parameter. 729 * a type parameter.
730 * @name the name of the type parameter
729 */ 731 */
730 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = new Co mpileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 58, ""); 732 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = new Co mpileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 58, "Constant list lit erals cannot include a type parameter as a type argument, such as '%s'");
731 /** 733 /**
732 * 12.7 Maps: It is a compile time error if the type arguments of a constant m ap literal include a 734 * 12.7 Maps: It is a compile time error if the type arguments of a constant m ap literal include a
733 * type parameter. 735 * type parameter.
736 * @name the name of the type parameter
734 */ 737 */
735 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = new Com pileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 59, ""); 738 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = new Com pileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 59, "Constant map litera ls cannot include a type parameter as a type argument, such as '%s'");
736 /** 739 /**
737 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 740 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
738 * not a library declaration. 741 * not a library declaration.
739 * <p> 742 * <p>
740 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is 743 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is
741 * not a library declaration. 744 * not a library declaration.
742 * <p> 745 * <p>
743 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 746 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
744 * declaration. 747 * declaration.
745 * @param uri the uri pointing to a non-library declaration 748 * @param uri the uri pointing to a non-library declaration
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 * constant constructor must be a potentially constant expression, or a compil e-time error occurs. 854 * constant constructor must be a potentially constant expression, or a compil e-time error occurs.
852 */ 855 */
853 static final CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = new Comp ileTimeErrorCode('NON_CONSTANT_VALUE_IN_INITIALIZER', 78, ""); 856 static final CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = new Comp ileTimeErrorCode('NON_CONSTANT_VALUE_IN_INITIALIZER', 78, "");
854 /** 857 /**
855 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f or class Object. 858 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f or class Object.
856 */ 859 */
857 static final CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = new Com pileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 79, ""); 860 static final CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = new Com pileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 79, "");
858 /** 861 /**
859 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete r in an operator. 862 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete r in an operator.
860 */ 863 */
861 static final CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = new Compile TimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', 80, ""); 864 static final CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = new Compile TimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', 80, "Optional parameters are not allowed when defining an operator");
862 /** 865 /**
863 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o verrides an 866 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o verrides an
864 * interface member <i>m2</i> and <i>m1</i> does not declare all the named par ameters declared by 867 * interface member <i>m2</i> and <i>m1</i> does not declare all the named par ameters declared by
865 * <i>m2</i> in the same order. 868 * <i>m2</i> in the same order.
866 */ 869 */
867 static final CompileTimeErrorCode OVERRIDE_MISSING_NAMED_PARAMETERS = new Comp ileTimeErrorCode('OVERRIDE_MISSING_NAMED_PARAMETERS', 81, ""); 870 static final CompileTimeErrorCode OVERRIDE_MISSING_NAMED_PARAMETERS = new Comp ileTimeErrorCode('OVERRIDE_MISSING_NAMED_PARAMETERS', 81, "");
868 /** 871 /**
869 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o verrides an 872 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o verrides an
870 * interface member <i>m2</i> and <i>m1</i> has a different number of required parameters than 873 * interface member <i>m2</i> and <i>m1</i> has a different number of required parameters than
871 * <i>m2</i>. 874 * <i>m2</i>.
872 */ 875 */
873 static final CompileTimeErrorCode OVERRIDE_MISSING_REQUIRED_PARAMETERS = new C ompileTimeErrorCode('OVERRIDE_MISSING_REQUIRED_PARAMETERS', 82, ""); 876 static final CompileTimeErrorCode OVERRIDE_MISSING_REQUIRED_PARAMETERS = new C ompileTimeErrorCode('OVERRIDE_MISSING_REQUIRED_PARAMETERS', 82, "");
874 /** 877 /**
875 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 878 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
876 * declaration. 879 * declaration.
877 * @param uri the uri pointing to a non-library declaration 880 * @param uri the uri pointing to a non-library declaration
878 */ 881 */
879 static final CompileTimeErrorCode PART_OF_NON_PART = new CompileTimeErrorCode( 'PART_OF_NON_PART', 83, "The included part '%s' must have a part-of directive"); 882 static final CompileTimeErrorCode PART_OF_NON_PART = new CompileTimeErrorCode( 'PART_OF_NON_PART', 83, "The included part '%s' must have a part-of directive");
880 /** 883 /**
881 * 14.1 Imports: It is a compile-time error if the current library declares a top-level member 884 * 14.1 Imports: It is a compile-time error if the current library declares a top-level member
882 * named <i>p</i>. 885 * named <i>p</i>.
883 */ 886 */
884 static final CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = new CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 84, ""); 887 static final CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = new CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 84, "");
885 /** 888 /**
886 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o ptional parameter 889 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o ptional parameter
887 * begins with an ‘_’ character. 890 * begins with an '_' character.
888 */ 891 */
889 static final CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = new CompileTime ErrorCode('PRIVATE_OPTIONAL_PARAMETER', 85, ""); 892 static final CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = new CompileTime ErrorCode('PRIVATE_OPTIONAL_PARAMETER', 85, "Named optional parameters cannot st art with an underscore");
890 /** 893 /**
891 * 12.1 Constants: It is a compile-time error if the value of a compile-time c onstant expression 894 * 12.1 Constants: It is a compile-time error if the value of a compile-time c onstant expression
892 * depends on itself. 895 * depends on itself.
893 */ 896 */
894 static final CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = new Compil eTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', 86, ""); 897 static final CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = new Compil eTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', 86, "");
895 /** 898 /**
896 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr uctor redirects to 899 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr uctor redirects to
897 * itself, either directly or indirectly via a sequence of redirections. 900 * itself, either directly or indirectly via a sequence of redirections.
898 */ 901 */
899 static final CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = new CompileTime ErrorCode('RECURSIVE_FACTORY_REDIRECT', 87, ""); 902 static final CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = new CompileTime ErrorCode('RECURSIVE_FACTORY_REDIRECT', 87, "");
900 /** 903 /**
901 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi a a chain of 904 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi a a chain of
902 * references that does not include a class type. 905 * references that does not include a class type.
903 */ 906 */
904 static final CompileTimeErrorCode RECURSIVE_FUNCTION_TYPE_ALIAS = new CompileT imeErrorCode('RECURSIVE_FUNCTION_TYPE_ALIAS', 88, ""); 907 static final CompileTimeErrorCode RECURSIVE_FUNCTION_TYPE_ALIAS = new CompileT imeErrorCode('RECURSIVE_FUNCTION_TYPE_ALIAS', 88, "");
905 /** 908 /**
906 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself. 909 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
907 */ 910 */
908 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = new Compil eTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', 89, ""); 911 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = new Compil eTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', 89, "");
909 /** 912 /**
910 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 913 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
911 * <i>k’</i> is not a constant constructor. 914 * <i>k'</i> is not a constant constructor.
912 */ 915 */
913 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp ileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 90, ""); 916 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp ileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 90, "");
914 /** 917 /**
915 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref ers to the name 918 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref ers to the name
916 * <i>v</i> or the name <i>v=</i>. 919 * <i>v</i> or the name <i>v=</i>.
917 */ 920 */
918 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE R = new CompileTimeErrorCode('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER', 91 , ""); 921 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE R = new CompileTimeErrorCode('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER', 91 , "");
919 /** 922 /**
920 * 16.1.1 Reserved Words: A reserved word may not be used as an identifier; it is a compile-time 923 * 16.1.1 Reserved Words: A reserved word may not be used as an identifier; it is a compile-time
921 * error if a reserved word is used where an identifier is expected. 924 * error if a reserved word is used where an identifier is expected.
922 */ 925 */
923 static final CompileTimeErrorCode RESERVED_WORD_AS_IDENTIFIER = new CompileTim eErrorCode('RESERVED_WORD_AS_IDENTIFIER', 92, ""); 926 static final CompileTimeErrorCode RESERVED_WORD_AS_IDENTIFIER = new CompileTim eErrorCode('RESERVED_WORD_AS_IDENTIFIER', 92, "");
924 /** 927 /**
925 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i> rethrow;</i> is not 928 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i> rethrow;</i> is not
926 * enclosed within a on-catch clause. 929 * enclosed within a on-catch clause.
927 */ 930 */
928 static final CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = new CompileTimeError Code('RETHROW_OUTSIDE_CATCH', 93, "rethrow must be inside of a catch clause"); 931 static final CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = new CompileTimeError Code('RETHROW_OUTSIDE_CATCH', 93, "rethrow must be inside of a catch clause");
929 /** 932 /**
930 * 13.11 Return: It is a compile-time error if a return statement of the form <i>return e;</i> 933 * 13.11 Return: It is a compile-time error if a return statement of the form <i>return e;</i>
931 * appears in a generative constructor. 934 * appears in a generative constructor.
932 */ 935 */
933 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi leTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', 94, ""); 936 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi leTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', 94, "Constructors cannot ret urn a value");
934 /** 937 /**
935 * 6.1 Function Declarations: It is a compile-time error to preface a function declaration with 938 * 6.1 Function Declarations: It is a compile-time error to preface a function declaration with
936 * the built-in identifier static. 939 * the built-in identifier static.
937 */ 940 */
938 static final CompileTimeErrorCode STATIC_TOP_LEVEL_FUNCTION = new CompileTimeE rrorCode('STATIC_TOP_LEVEL_FUNCTION', 95, ""); 941 static final CompileTimeErrorCode STATIC_TOP_LEVEL_FUNCTION = new CompileTimeE rrorCode('STATIC_TOP_LEVEL_FUNCTION', 95, "");
939 /** 942 /**
940 * 5 Variables: It is a compile-time error to preface a top level variable dec laration with the 943 * 5 Variables: It is a compile-time error to preface a top level variable dec laration with the
941 * built-in identifier static. 944 * built-in identifier static.
942 */ 945 */
943 static final CompileTimeErrorCode STATIC_TOP_LEVEL_VARIABLE = new CompileTimeE rrorCode('STATIC_TOP_LEVEL_VARIABLE', 96, ""); 946 static final CompileTimeErrorCode STATIC_TOP_LEVEL_VARIABLE = new CompileTimeE rrorCode('STATIC_TOP_LEVEL_VARIABLE', 96, "");
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 * <i>x</i> involves string interpolation. 991 * <i>x</i> involves string interpolation.
989 * <p> 992 * <p>
990 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if 993 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if
991 * <i>s</i> involves string interpolation. 994 * <i>s</i> involves string interpolation.
992 * <p> 995 * <p>
993 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is 996 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is
994 * not a compile-time constant, or if <i>x</i> involves string interpolation. 997 * not a compile-time constant, or if <i>x</i> involves string interpolation.
995 */ 998 */
996 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro rCode('URI_WITH_INTERPOLATION', 102, "URIs cannot use string interpolation"); 999 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro rCode('URI_WITH_INTERPOLATION', 102, "URIs cannot use string interpolation");
997 /** 1000 /**
998 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is 1001 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator [[]]= is
999 * not 2. It is a compile time error if the arity of a user-declared operator with one of the 1002 * not 2. It is a compile time error if the arity of a user-declared operator with one of the
1000 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1. 1003 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [[]] is not 1.
1001 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a 1004 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a
1002 * compile time error if the arity of the user-declared operator ~ is not 0. 1005 * compile time error if the arity of the user-declared operator ~ is not 0.
1003 */ 1006 */
1004 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne w CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 103, ""); 1007 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne w CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 103, "");
1005 /** 1008 /**
1006 * 7.3 Setters: It is a compile-time error if a setter’s formal parameter li st does not include 1009 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include
1007 * exactly one required formal parameter <i>p</i>. 1010 * exactly one required formal parameter <i>p</i>.
1011 * @param numberOfParameters the number of parameters found in the setter
1008 */ 1012 */
1009 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 104, ""); 1013 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 104, "Setters shou ld declare exactly one parameter, %d found");
1010 /** 1014 /**
1011 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g eneric type with 1015 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g eneric type with
1012 * <i>n</i> type parameters invoked by a new expression or a constant object e xpression is passed 1016 * <i>n</i> type parameters invoked by a new expression or a constant object e xpression is passed
1013 * <i>m</i> type arguments where <i>m != n</i>. 1017 * <i>m</i> type arguments where <i>m != n</i>.
1014 * <p> 1018 * <p>
1015 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized type of the form 1019 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized type of the form
1016 * <i>G&lt;T<sub>1</sub>, &hellip;, T<sub>n</sub>&gt;</i> and <i>G</i> is not a generic type with 1020 * <i>G&lt;T<sub>1</sub>, &hellip;, T<sub>n</sub>&gt;</i> and <i>G</i> is not a generic type with
1017 * <i>n</i> type parameters. 1021 * <i>n</i> type parameters.
1018 */ 1022 */
1019 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 105, ""); 1023 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 105, "");
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 * 13.9 Switch: It is a static warning if the last statement of the statement sequence 1083 * 13.9 Switch: It is a static warning if the last statement of the statement sequence
1080 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement. 1084 * <i>s<sub>k</sub></i> is not a break, continue, return or throw statement.
1081 */ 1085 */
1082 static final StaticWarningCode CASE_BLOCK_NOT_TERMINATED = new StaticWarningCo de('CASE_BLOCK_NOT_TERMINATED', 2, ""); 1086 static final StaticWarningCode CASE_BLOCK_NOT_TERMINATED = new StaticWarningCo de('CASE_BLOCK_NOT_TERMINATED', 2, "");
1083 /** 1087 /**
1084 * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type available in the 1088 * 12.32 Type Cast: It is a static warning if <i>T</i> does not denote a type available in the
1085 * current lexical scope. 1089 * current lexical scope.
1086 */ 1090 */
1087 static final StaticWarningCode CAST_TO_NON_TYPE = new StaticWarningCode('CAST_ TO_NON_TYPE', 3, ""); 1091 static final StaticWarningCode CAST_TO_NON_TYPE = new StaticWarningCode('CAST_ TO_NON_TYPE', 3, "");
1088 /** 1092 /**
1089 * 16.1.2 Comments: A token of the form <i>[new c](uri)</i> will be replaced b y a link in the 1093 * 16.1.2 Comments: A token of the form <i>[[new c]](uri)</i> will be replaced by a link in the
1090 * formatted output. The link will point at the constructor named <i>c</i> in <i>L</i>. The title 1094 * formatted output. The link will point at the constructor named <i>c</i> in <i>L</i>. The title
1091 * of the link will be <i>c</i>. It is a static warning if uri is not the URI of a dart library 1095 * of the link will be <i>c</i>. It is a static warning if uri is not the URI of a dart library
1092 * <i>L</i>, or if <i>c</i> is not the name of a constructor of a class declar ed in the exported 1096 * <i>L</i>, or if <i>c</i> is not the name of a constructor of a class declar ed in the exported
1093 * namespace of <i>L</i>. 1097 * namespace of <i>L</i>.
1094 */ 1098 */
1095 static final StaticWarningCode COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE = new StaticWarningCode('COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE', 4, ""); 1099 static final StaticWarningCode COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE = new StaticWarningCode('COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE', 4, "");
1096 /** 1100 /**
1097 * 16.1.2 Comments: A token of the form <i>[id](uri)</i> will be replaced by a link in the 1101 * 16.1.2 Comments: A token of the form <i>[[id]](uri)</i> will be replaced by a link in the
1098 * formatted output. The link will point at the declaration named <i>id</i> in <i>L</i>. The title 1102 * formatted output. The link will point at the declaration named <i>id</i> in <i>L</i>. The title
1099 * of the link will be <i>id</i>. It is a static warning if uri is not the URI of a dart library 1103 * of the link will be <i>id</i>. It is a static warning if uri is not the URI of a dart library
1100 * <i>L</i>, or if <i>id</i> is not a name declared in the exported namespace of <i>L</i>. 1104 * <i>L</i>, or if <i>id</i> is not a name declared in the exported namespace of <i>L</i>.
1101 */ 1105 */
1102 static final StaticWarningCode COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE = new StaticWarningCode('COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE', 5, ""); 1106 static final StaticWarningCode COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE = new StaticWarningCode('COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE', 5, "");
1103 /** 1107 /**
1104 * 16.1.2 Comments: It is a static warning if <i>c</i> does not denote a const ructor that 1108 * 16.1.2 Comments: It is a static warning if <i>c</i> does not denote a const ructor that
1105 * available in the scope of the documentation comment. 1109 * available in the scope of the documentation comment.
1106 */ 1110 */
1107 static final StaticWarningCode COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR = new StaticWarningCode('COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR', 6, ""); 1111 static final StaticWarningCode COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR = new StaticWarningCode('COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR', 6, "");
1108 /** 1112 /**
1109 * 16.1.2 Comments: It is a static warning if <i>id</i> does not denote a decl aration that 1113 * 16.1.2 Comments: It is a static warning if <i>id</i> does not denote a decl aration that
1110 * available in the scope of the documentation comment. 1114 * available in the scope of the documentation comment.
1111 */ 1115 */
1112 static final StaticWarningCode COMMENT_REFERENCE_UNDECLARED_IDENTIFIER = new S taticWarningCode('COMMENT_REFERENCE_UNDECLARED_IDENTIFIER', 7, ""); 1116 static final StaticWarningCode COMMENT_REFERENCE_UNDECLARED_IDENTIFIER = new S taticWarningCode('COMMENT_REFERENCE_UNDECLARED_IDENTIFIER', 7, "");
1113 /** 1117 /**
1114 * 16.1.2 Comments: A token of the form <i>[id](uri)</i> will be replaced by a link in the 1118 * 16.1.2 Comments: A token of the form <i>[[id]](uri)</i> will be replaced by a link in the
1115 * formatted output. The link will point at the declaration named <i>id</i> in <i>L</i>. The title 1119 * formatted output. The link will point at the declaration named <i>id</i> in <i>L</i>. The title
1116 * of the link will be <i>id</i>. It is a static warning if uri is not the URI of a dart library 1120 * of the link will be <i>id</i>. It is a static warning if uri is not the URI of a dart library
1117 * <i>L</i>, or if <i>id</i> is not a name declared in the exported namespace of <i>L</i>. 1121 * <i>L</i>, or if <i>id</i> is not a name declared in the exported namespace of <i>L</i>.
1118 */ 1122 */
1119 static final StaticWarningCode COMMENT_REFERENCE_URI_NOT_LIBRARY = new StaticW arningCode('COMMENT_REFERENCE_URI_NOT_LIBRARY', 8, ""); 1123 static final StaticWarningCode COMMENT_REFERENCE_URI_NOT_LIBRARY = new StaticW arningCode('COMMENT_REFERENCE_URI_NOT_LIBRARY', 8, "");
1120 /** 1124 /**
1121 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or 1125 * 7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or
1122 * inherited in a concrete class. 1126 * inherited in a concrete class.
1123 */ 1127 */
1124 static final StaticWarningCode CONCRETE_CLASS_WITH_ABSTRACT_MEMBER = new Stati cWarningCode('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', 9, ""); 1128 static final StaticWarningCode CONCRETE_CLASS_WITH_ABSTRACT_MEMBER = new Stati cWarningCode('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', 9, "'%s' must have a method body because '%s' is not abstract");
1125 /** 1129 /**
1126 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an instanc e getter named 1130 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an instanc e getter named
1127 * <i>v</i> and an accessible static member named <i>v</i> or <i>v=</i> is dec lared in a 1131 * <i>v</i> and an accessible static member named <i>v</i> or <i>v=</i> is dec lared in a
1128 * superclass of <i>C</i>. 1132 * superclass of <i>C</i>.
1129 */ 1133 */
1130 static final StaticWarningCode CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMB ER = new StaticWarningCode('CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER', 10, ""); 1134 static final StaticWarningCode CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMB ER = new StaticWarningCode('CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER', 10, "");
1131 /** 1135 /**
1132 * 7.3 Setters: It is a static warning if a class <i>C</i> declares an instanc e setter named 1136 * 7.3 Setters: It is a static warning if a class <i>C</i> declares an instanc e setter named
1133 * <i>v=</i> and an accessible static member named <i>v=</i> or <i>v</i> is de clared in a 1137 * <i>v=</i> and an accessible static member named <i>v=</i> or <i>v</i> is de clared in a
1134 * superclass of <i>C</i>. 1138 * superclass of <i>C</i>.
(...skipping 15 matching lines...) Expand all
1150 * abstract class but <i>q</i> is not a factory constructor. 1154 * abstract class but <i>q</i> is not a factory constructor.
1151 */ 1155 */
1152 static final StaticWarningCode CONST_WITH_ABSTRACT_CLASS = new StaticWarningCo de('CONST_WITH_ABSTRACT_CLASS', 14, "Abstract classes cannot be created with a ' const' expression"); 1156 static final StaticWarningCode CONST_WITH_ABSTRACT_CLASS = new StaticWarningCo de('CONST_WITH_ABSTRACT_CLASS', 14, "Abstract classes cannot be created with a ' const' expression");
1153 /** 1157 /**
1154 * 12.7 Maps: It is a static warning if the values of any two keys in a map li teral are equal. 1158 * 12.7 Maps: It is a static warning if the values of any two keys in a map li teral are equal.
1155 */ 1159 */
1156 static final StaticWarningCode EQUAL_KEYS_IN_MAP = new StaticWarningCode('EQUA L_KEYS_IN_MAP', 15, "Keys in a map cannot be equal"); 1160 static final StaticWarningCode EQUAL_KEYS_IN_MAP = new StaticWarningCode('EQUA L_KEYS_IN_MAP', 15, "Keys in a map cannot be equal");
1157 /** 1161 /**
1158 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a 1162 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a
1159 * static warning if the static type of <i>id</i> is not assignable to <i>T<su b>id</sub></i>. 1163 * static warning if the static type of <i>id</i> is not assignable to <i>T<su b>id</sub></i>.
1164 * @param parameterType the name of the type of the field formal parameter
1165 * @param fieldType the name of the type of the field
1160 */ 1166 */
1161 static final StaticWarningCode FIELD_INITIALIZER_WITH_INVALID_TYPE = new Stati cWarningCode('FIELD_INITIALIZER_WITH_INVALID_TYPE', 16, ""); 1167 static final StaticWarningCode FIELD_INITIALIZER_WITH_INVALID_TYPE = new Stati cWarningCode('FIELD_INITIALIZER_WITH_INVALID_TYPE', 16, "The parameter type '%s' is incompatable with the field type '%s'");
1162 /** 1168 /**
1163 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt; 1169 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt;
1164 * n</i>. 1170 * n</i>.
1165 */ 1171 */
1166 static final StaticWarningCode INCORRECT_NUMBER_OF_ARGUMENTS = new StaticWarni ngCode('INCORRECT_NUMBER_OF_ARGUMENTS', 17, ""); 1172 static final StaticWarningCode INCORRECT_NUMBER_OF_ARGUMENTS = new StaticWarni ngCode('INCORRECT_NUMBER_OF_ARGUMENTS', 17, "");
1167 /** 1173 /**
1168 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method 1174 * 7.1 Instance Methods: It is a static warning if a class <i>C</i> declares a n instance method
1169 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of 1175 * named <i>n</i> and an accessible static member named <i>n</i> is declared i n a superclass of
1170 * <i>C</i>. 1176 * <i>C</i>.
1171 */ 1177 */
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 */ 1245 */
1240 static final StaticWarningCode NON_TYPE = new StaticWarningCode('NON_TYPE', 30 , ""); 1246 static final StaticWarningCode NON_TYPE = new StaticWarningCode('NON_TYPE', 30 , "");
1241 /** 1247 /**
1242 * 13.10 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s ub>2</sub>) s</i> or 1248 * 13.10 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s ub>2</sub>) s</i> or
1243 * <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 1249 * <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
1244 * is a static warning if <i>T</i> does not denote a type available in the lex ical scope of the 1250 * is a static warning if <i>T</i> does not denote a type available in the lex ical scope of the
1245 * catch clause. 1251 * catch clause.
1246 */ 1252 */
1247 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod e('NON_TYPE_IN_CATCH_CLAUSE', 31, ""); 1253 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod e('NON_TYPE_IN_CATCH_CLAUSE', 31, "");
1248 /** 1254 /**
1249 * 7.1.1 Operators: It is a static warning if the return type of the user-decl ared operator []= is 1255 * 7.1.1 Operators: It is a static warning if the return type of the user-decl ared operator [[]]= is
1250 * explicitly declared and not void. 1256 * explicitly declared and not void.
1251 */ 1257 */
1252 static final StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = new StaticWarnin gCode('NON_VOID_RETURN_FOR_OPERATOR', 32, ""); 1258 static final StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = new StaticWarnin gCode('NON_VOID_RETURN_FOR_OPERATOR', 32, "");
1253 /** 1259 /**
1254 * 7.3 Setters: It is a static warning if a setter declares a return type othe r than void. 1260 * 7.3 Setters: It is a static warning if a setter declares a return type othe r than void.
1255 */ 1261 */
1256 static final StaticWarningCode NON_VOID_RETURN_FOR_SETTER = new StaticWarningC ode('NON_VOID_RETURN_FOR_SETTER', 33, ""); 1262 static final StaticWarningCode NON_VOID_RETURN_FOR_SETTER = new StaticWarningC ode('NON_VOID_RETURN_FOR_SETTER', 33, "");
1257 /** 1263 /**
1258 * 8 Interfaces: It is a static warning if an interface member <i>m1</i> overr ides an interface 1264 * 8 Interfaces: It is a static warning if an interface member <i>m1</i> overr ides an interface
1259 * member <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>. 1265 * member <i>m2</i> and the type of <i>m1</i> is not a subtype of the type of <i>m2</i>.
1260 */ 1266 */
1261 static final StaticWarningCode OVERRIDE_NOT_SUBTYPE = new StaticWarningCode('O VERRIDE_NOT_SUBTYPE', 34, ""); 1267 static final StaticWarningCode OVERRIDE_NOT_SUBTYPE = new StaticWarningCode('O VERRIDE_NOT_SUBTYPE', 34, "");
1262 /** 1268 /**
1263 * 8 Interfaces: It is a static warning if an interface method <i>m1</i> overr ides an interface 1269 * 8 Interfaces: It is a static warning if an interface method <i>m1</i> overr ides an interface
1264 * method <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for a formal 1270 * method <i>m2</i>, the signature of <i>m2</i> explicitly specifies a default value for a formal
1265 * parameter <i>p</i> and the signature of <i>m1</i> specifies a different def ault value for 1271 * parameter <i>p</i> and the signature of <i>m1</i> specifies a different def ault value for
1266 * <i>p</i>. 1272 * <i>p</i>.
1267 */ 1273 */
1268 static final StaticWarningCode OVERRIDE_WITH_DIFFERENT_DEFAULT = new StaticWar ningCode('OVERRIDE_WITH_DIFFERENT_DEFAULT', 35, ""); 1274 static final StaticWarningCode OVERRIDE_WITH_DIFFERENT_DEFAULT = new StaticWar ningCode('OVERRIDE_WITH_DIFFERENT_DEFAULT', 35, "");
1269 /** 1275 /**
1270 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p< /i> names a library 1276 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p< /i> names a library
1271 * other than the current library as the library to which <i>p</i> belongs. 1277 * other than the current library as the library to which <i>p</i> belongs.
1272 * @param expectedLibraryName the name of expected library name 1278 * @param expectedLibraryName the name of expected library name
1273 * @param actualLibraryName the non-matching actual library name from the "par t of" declaration 1279 * @param actualLibraryName the non-matching actual library name from the "par t of" declaration
1274 */ 1280 */
1275 static final StaticWarningCode PART_OF_DIFFERENT_LIBRARY = new StaticWarningCo de('PART_OF_DIFFERENT_LIBRARY', 36, "Expected this library to be part of '%s', n ot '%s'"); 1281 static final StaticWarningCode PART_OF_DIFFERENT_LIBRARY = new StaticWarningCo de('PART_OF_DIFFERENT_LIBRARY', 36, "Expected this library to be part of '%s', n ot '%s'");
1276 /** 1282 /**
1277 * 7.6.2 Factories: It is a static warning if the function type of <i>k’</i> is not a subtype of 1283 * 7.6.2 Factories: It is a static warning if the function type of <i>k'</i> i s not a subtype of
1278 * the type of <i>k</i>. 1284 * the type of <i>k</i>.
1279 */ 1285 */
1280 static final StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = new StaticWar ningCode('REDIRECT_TO_INVALID_RETURN_TYPE', 37, ""); 1286 static final StaticWarningCode REDIRECT_TO_INVALID_RETURN_TYPE = new StaticWar ningCode('REDIRECT_TO_INVALID_RETURN_TYPE', 37, "");
1281 /** 1287 /**
1282 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the 1288 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the
1283 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the 1289 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the
1284 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>. 1290 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>.
1285 */ 1291 */
1286 static final StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = new StaticWar ningCode('REDIRECT_TO_MISSING_CONSTRUCTOR', 38, ""); 1292 static final StaticWarningCode REDIRECT_TO_MISSING_CONSTRUCTOR = new StaticWar ningCode('REDIRECT_TO_MISSING_CONSTRUCTOR', 38, "");
1287 /** 1293 /**
1288 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the 1294 * 7.6.2 Factories: It is a static warning if type does not denote a class acc essible in the
1289 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the 1295 * current scope; if type does denote such a class <i>C</i> it is a static war ning if the
1290 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>. 1296 * referenced constructor (be it <i>type</i> or <i>type.id</i>) is not a const ructor of <i>C</i>.
1291 */ 1297 */
1292 static final StaticWarningCode REDIRECT_TO_NON_CLASS = new StaticWarningCode(' REDIRECT_TO_NON_CLASS', 39, ""); 1298 static final StaticWarningCode REDIRECT_TO_NON_CLASS = new StaticWarningCode(' REDIRECT_TO_NON_CLASS', 39, "");
1293 /** 1299 /**
1294 * 13.11 Return: Let <i>f</i> be the function immediately enclosing a return s tatement of the form 1300 * 13.11 Return: Let <i>f</i> be the function immediately enclosing a return s tatement of the form
1295 * <i>return;</i> It is a static warning if both of the following conditions h old: 1301 * <i>return;</i> It is a static warning if both of the following conditions h old:
1296 * <ol> 1302 * <ol>
1297 * <li><i>f</i> is not a generative constructor. 1303 * <li><i>f</i> is not a generative constructor.
1298 * <li>The return type of <i>f</i> may not be assigned to void. 1304 * <li>The return type of <i>f</i> may not be assigned to void.
1299 * </ol> 1305 * </ol>
1300 */ 1306 */
1301 static final StaticWarningCode RETURN_WITHOUT_VALUE = new StaticWarningCode('R ETURN_WITHOUT_VALUE', 40, ""); 1307 static final StaticWarningCode RETURN_WITHOUT_VALUE = new StaticWarningCode('R ETURN_WITHOUT_VALUE', 40, "Missing return value after 'return'");
1302 /** 1308 /**
1303 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi gned to the type of 1309 * 13.9 Switch: It is a static warning if the type of <i>e</i> may not be assi gned to the type of
1304 * <i>e<sub>k</sub></i>. 1310 * <i>e<sub>k</sub></i>.
1305 */ 1311 */
1306 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 41, ""); 1312 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 41, "");
1307 /** 1313 /**
1308 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form 1314 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form
1309 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip; 1315 * <i>C.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</ sub>, &hellip;
1310 * 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 1316 * 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
1311 * class in the current scope. 1317 * class in the current scope.
1312 */ 1318 */
1313 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI NED_CLASS', 42, "Undefined class '%s'"); 1319 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI NED_CLASS', 42, "Undefined class '%s'");
1314 /** 1320 /**
1321 * Same as {@link #UNDEFINED_CLASS}, but to catch using "boolean" instead of " bool".
1322 */
1323 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode ('UNDEFINED_CLASS_BOOLEAN', 43, "Undefined class 'boolean'; did you mean 'bool'? ");
1324 /**
1315 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing 1325 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</ i> in the enclosing
1316 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter 1326 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e xplicitly, a getter
1317 * named <i>m</i>. 1327 * named <i>m</i>.
1318 * @param getterName the name of the getter 1328 * @param getterName the name of the getter
1319 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for 1329 * @param enclosingType the name of the enclosing type where the getter is bei ng looked for
1320 */ 1330 */
1321 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF INED_GETTER', 43, "There is no such getter '%s' in '%s'"); 1331 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF INED_GETTER', 44, "There is no such getter '%s' in '%s'");
1322 /** 1332 /**
1323 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 1333 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
1324 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 1334 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
1325 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 1335 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
1326 * lexical scope enclosing the expression. 1336 * lexical scope enclosing the expression.
1327 */ 1337 */
1328 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U NDEFINED_IDENTIFIER', 44, "Undefined name '%s'"); 1338 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U NDEFINED_IDENTIFIER', 45, "Undefined name '%s'");
1329 /** 1339 /**
1330 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form 1340 * 12.30 Identifier Reference: It is as static warning if an identifier expres sion of the form
1331 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or 1341 * <i>id</i> occurs inside a top level or static function (be it function, met hod, getter, or
1332 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the 1342 * setter) or variable initializer and there is no declaration <i>d</i> with n ame <i>id</i> in the
1333 * lexical scope enclosing the expression. 1343 * lexical scope enclosing the expression.
1334 * @param operator the name of the operator 1344 * @param operator the name of the operator
1335 * @param enclosingType the name of the enclosing type where the operator is b eing looked for 1345 * @param enclosingType the name of the enclosing type where the operator is b eing looked for
1336 */ 1346 */
1337 static final StaticWarningCode UNDEFINED_OPERATOR = new StaticWarningCode('UND EFINED_OPERATOR', 45, "There is no such operator '%s' in '%s'"); 1347 static final StaticWarningCode UNDEFINED_OPERATOR = new StaticWarningCode('UND EFINED_OPERATOR', 46, "There is no such operator '%s' in '%s'");
1338 /** 1348 /**
1339 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs 1349 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v = e</i> occurs
1340 * inside a top level or static function (be it function, method, getter, or s etter) or variable 1350 * inside a top level or static function (be it function, method, getter, or s etter) or variable
1341 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope 1351 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the lexical scope
1342 * enclosing the assignment. 1352 * enclosing the assignment.
1343 * <p> 1353 * <p>
1344 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical 1354 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t he enclosing lexical
1345 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter 1355 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp licitly, a setter
1346 * <i>v=</i>. 1356 * <i>v=</i>.
1347 * @param setterName the name of the getter 1357 * @param setterName the name of the getter
1348 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for 1358 * @param enclosingType the name of the enclosing type where the setter is bei ng looked for
1349 */ 1359 */
1350 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF INED_SETTER', 46, "There is no such setter '%s' in '%s'"); 1360 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF INED_SETTER', 47, "There is no such setter '%s' in '%s'");
1351 /** 1361 /**
1352 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method 1362 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl are a static method
1353 * or getter <i>m</i>. 1363 * or getter <i>m</i>.
1354 * @param methodName the name of the method 1364 * @param methodName the name of the method
1355 * @param enclosingType the name of the enclosing type where the method is bei ng looked for 1365 * @param enclosingType the name of the enclosing type where the method is bei ng looked for
1356 */ 1366 */
1357 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 47, "There is no such static met hod '%s' in '%s'"); 1367 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 48, "There is no such static met hod '%s' in '%s'");
1358 static final List<StaticWarningCode> values = [ARGUMENT_TYPE_NOT_ASSIGNABLE, A SSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYPE, COMMENT_REFEREN CE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE, COMMENT_RE FERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_IDENTIFIER, COMMENT _REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBER, CONFLICTING_INS TANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_M EMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICTING_STATIC_SETTER_ AND_INSTANCE_GETTER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_MAP, FIELD_INITIAL IZER_WITH_INVALID_TYPE, INCORRECT_NUMBER_OF_ARGUMENTS, INSTANCE_METHOD_NAME_COLL IDES_WITH_SUPERCLASS_STATIC, INVALID_FACTORY_NAME, INVALID_OVERRIDE_GETTER_TYPE, INVALID_OVERRIDE_RETURN_TYPE, INVALID_OVERRIDE_SETTER_RETURN_TYPE, INVOCATION_O F_NON_FUNCTION, MISMATCHED_GETTER_AND_SETTER_TYPES, NEW_WITH_ABSTRACT_CLASS, NEW _WITH_NON_TYPE, NEW_WITH_UNDEFINED_CONSTRUCTOR, NON_ABSTRACT_CLASS_INHERITS_ABST RACT_MEMBER, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_METHOD, NON_TYPE, NON_TYPE_IN_ CATCH_CLAUSE, NON_VOID_RETURN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, OVERRIDE _NOT_SUBTYPE, OVERRIDE_WITH_DIFFERENT_DEFAULT, PART_OF_DIFFERENT_LIBRARY, REDIRE CT_TO_INVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR, REDIRECT_TO_NON_CLAS S, RETURN_WITHOUT_VALUE, SWITCH_EXPRESSION_NOT_ASSIGNABLE, UNDEFINED_CLASS, UNDE FINED_GETTER, UNDEFINED_IDENTIFIER, UNDEFINED_OPERATOR, UNDEFINED_SETTER, UNDEFI NED_STATIC_METHOD_OR_GETTER]; 1368 static final List<StaticWarningCode> values = [ARGUMENT_TYPE_NOT_ASSIGNABLE, A SSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYPE, COMMENT_REFEREN CE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_VISIBLE, COMMENT_RE FERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_IDENTIFIER, COMMENT _REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBER, CONFLICTING_INS TANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTER_AND_SUPERCLASS_M EMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICTING_STATIC_SETTER_ AND_INSTANCE_GETTER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_MAP, FIELD_INITIAL IZER_WITH_INVALID_TYPE, INCORRECT_NUMBER_OF_ARGUMENTS, INSTANCE_METHOD_NAME_COLL IDES_WITH_SUPERCLASS_STATIC, INVALID_FACTORY_NAME, INVALID_OVERRIDE_GETTER_TYPE, INVALID_OVERRIDE_RETURN_TYPE, INVALID_OVERRIDE_SETTER_RETURN_TYPE, INVOCATION_O F_NON_FUNCTION, MISMATCHED_GETTER_AND_SETTER_TYPES, NEW_WITH_ABSTRACT_CLASS, NEW _WITH_NON_TYPE, NEW_WITH_UNDEFINED_CONSTRUCTOR, NON_ABSTRACT_CLASS_INHERITS_ABST RACT_MEMBER, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_METHOD, NON_TYPE, NON_TYPE_IN_ CATCH_CLAUSE, NON_VOID_RETURN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, OVERRIDE _NOT_SUBTYPE, OVERRIDE_WITH_DIFFERENT_DEFAULT, PART_OF_DIFFERENT_LIBRARY, REDIRE CT_TO_INVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR, REDIRECT_TO_NON_CLAS S, RETURN_WITHOUT_VALUE, SWITCH_EXPRESSION_NOT_ASSIGNABLE, UNDEFINED_CLASS, UNDE FINED_CLASS_BOOLEAN, UNDEFINED_GETTER, UNDEFINED_IDENTIFIER, UNDEFINED_OPERATOR, UNDEFINED_SETTER, UNDEFINED_STATIC_METHOD_OR_GETTER];
1359 final String __name; 1369 final String __name;
1360 final int __ordinal; 1370 final int __ordinal;
1361 int get ordinal => __ordinal; 1371 int get ordinal => __ordinal;
1362 /** 1372 /**
1363 * The message template used to create the message to be displayed for this er ror. 1373 * The message template used to create the message to be displayed for this er ror.
1364 */ 1374 */
1365 String _message; 1375 String _message;
1366 /** 1376 /**
1367 * Initialize a newly created error code to have the given type and message. 1377 * Initialize a newly created error code to have the given type and message.
1368 * @param message the message template used to create the message to be displa yed for the error 1378 * @param message the message template used to create the message to be displa yed for the error
(...skipping 21 matching lines...) Expand all
1390 * This method is invoked when an error has been found by the analysis engine. 1400 * This method is invoked when an error has been found by the analysis engine.
1391 * @param error the error that was just found (not {@code null}) 1401 * @param error the error that was just found (not {@code null})
1392 */ 1402 */
1393 void onError(AnalysisError error); 1403 void onError(AnalysisError error);
1394 } 1404 }
1395 class AnalysisErrorListener_4 implements AnalysisErrorListener { 1405 class AnalysisErrorListener_4 implements AnalysisErrorListener {
1396 void onError(AnalysisError event) { 1406 void onError(AnalysisError event) {
1397 } 1407 }
1398 } 1408 }
1399 /** 1409 /**
1410 * The enumeration {@code HtmlWarningCode} defines the error codes used for warn ings in HTML files.
1411 * The convention for this class is for the name of the error code to indicate t he problem that
1412 * caused the error to be generated and for the error message to explain what is wrong and, when
1413 * appropriate, how the problem can be corrected.
1414 * @coverage dart.engine.error
1415 */
1416 class HtmlWarningCode implements Comparable<HtmlWarningCode>, ErrorCode {
1417 /**
1418 * An error code indicating that the value of the 'src' attribute of a Dart sc ript tag is not a
1419 * valid URI.
1420 */
1421 static final HtmlWarningCode INVALID_URI = new HtmlWarningCode('INVALID_URI', 0, "");
1422 /**
1423 * An error code indicating that the value of the 'src' attribute of a Dart sc ript tag references
1424 * a file that does not exist.
1425 */
1426 static final HtmlWarningCode URI_DOES_NOT_EXIST = new HtmlWarningCode('URI_DOE S_NOT_EXIST', 1, "");
1427 static final List<HtmlWarningCode> values = [INVALID_URI, URI_DOES_NOT_EXIST];
1428 final String __name;
1429 final int __ordinal;
1430 int get ordinal => __ordinal;
1431 /**
1432 * The message template used to create the message to be displayed for this er ror.
1433 */
1434 String _message;
1435 /**
1436 * Initialize a newly created error code to have the given type and message.
1437 * @param message the message template used to create the message to be displa yed for the error
1438 */
1439 HtmlWarningCode(this.__name, this.__ordinal, String message) {
1440 this._message = message;
1441 }
1442 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING;
1443 String get message => _message;
1444 ErrorType get type => ErrorType.STATIC_WARNING;
1445 bool needsRecompilation() => false;
1446 int compareTo(HtmlWarningCode other) => __ordinal - other.__ordinal;
1447 String toString() => __name;
1448 }
1449 /**
1400 * The enumeration {@code StaticTypeWarningCode} defines the error codes used fo r static type 1450 * The enumeration {@code StaticTypeWarningCode} defines the error codes used fo r static type
1401 * warnings. The convention for this class is for the name of the error code to indicate the problem 1451 * warnings. The convention for this class is for the name of the error code to indicate the problem
1402 * that caused the error to be generated and for the error message to explain wh at is wrong and, 1452 * that caused the error to be generated and for the error message to explain wh at is wrong and,
1403 * when appropriate, how the problem can be corrected. 1453 * when appropriate, how the problem can be corrected.
1404 * @coverage dart.engine.error 1454 * @coverage dart.engine.error
1405 */ 1455 */
1406 class StaticTypeWarningCode implements Comparable<StaticTypeWarningCode>, ErrorC ode { 1456 class StaticTypeWarningCode implements Comparable<StaticTypeWarningCode>, ErrorC ode {
1407 /** 1457 /**
1408 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type 1458 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>. It is a static type
1409 * warning if <i>T</i> does not have an accessible instance setter named <i>v= </i>. 1459 * warning if <i>T</i> does not have an accessible instance setter named <i>v= </i>.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 * 13.15 Assert: It is a static type warning if the type of <i>e</i> may not b e assigned to either 1532 * 13.15 Assert: It is a static type warning if the type of <i>e</i> may not b e assigned to either
1483 * bool or () &rarr; bool 1533 * bool or () &rarr; bool
1484 */ 1534 */
1485 static final StaticTypeWarningCode NON_BOOL_EXPRESSION = new StaticTypeWarning Code('NON_BOOL_EXPRESSION', 5, "Assertions must be on either a 'bool' or '() -> bool'"); 1535 static final StaticTypeWarningCode NON_BOOL_EXPRESSION = new StaticTypeWarning Code('NON_BOOL_EXPRESSION', 5, "Assertions must be on either a 'bool' or '() -> bool'");
1486 /** 1536 /**
1487 * 15.8 Parameterized Types: It is a static type warning if <i>A<sub>i</sub>, 1 &lt;= i &lt;= 1537 * 15.8 Parameterized Types: It is a static type warning if <i>A<sub>i</sub>, 1 &lt;= i &lt;=
1488 * n</i> does not denote a type in the enclosing lexical scope. 1538 * n</i> does not denote a type in the enclosing lexical scope.
1489 */ 1539 */
1490 static final StaticTypeWarningCode NON_TYPE_AS_TYPE_ARGUMENT = new StaticTypeW arningCode('NON_TYPE_AS_TYPE_ARGUMENT', 6, ""); 1540 static final StaticTypeWarningCode NON_TYPE_AS_TYPE_ARGUMENT = new StaticTypeW arningCode('NON_TYPE_AS_TYPE_ARGUMENT', 6, "");
1491 /** 1541 /**
1492 * 7.6.2 Factories: It is a static type warning if any of the type arguments t o <i>k’</i> are not 1542 * 7.6.2 Factories: It is a static type warning if any of the type arguments t o <i>k'</i> are not
1493 * subtypes of the bounds of the corresponding formal type parameters of type. 1543 * subtypes of the bounds of the corresponding formal type parameters of type.
1494 */ 1544 */
1495 static final StaticTypeWarningCode REDIRECT_WITH_INVALID_TYPE_PARAMETERS = new StaticTypeWarningCode('REDIRECT_WITH_INVALID_TYPE_PARAMETERS', 7, ""); 1545 static final StaticTypeWarningCode REDIRECT_WITH_INVALID_TYPE_PARAMETERS = new StaticTypeWarningCode('REDIRECT_WITH_INVALID_TYPE_PARAMETERS', 7, "");
1496 /** 1546 /**
1497 * 13.11 Return: It is a static type warning if the type of <i>e</i> may not b e assigned to the 1547 * 13.11 Return: It is a static type warning if the type of <i>e</i> may not b e assigned to the
1498 * declared return type of the immediately enclosing function. 1548 * declared return type of the immediately enclosing function.
1499 * @param actualReturnType the return type as declared in the return statement 1549 * @param actualReturnType the return type as declared in the return statement
1500 * @param expectedReturnType the expected return type as defined by the method 1550 * @param expectedReturnType the expected return type as defined by the method
1501 * @param methodName the name of the method 1551 * @param methodName the name of the method
1502 */ 1552 */
1503 static final StaticTypeWarningCode RETURN_OF_INVALID_TYPE = new StaticTypeWarn ingCode('RETURN_OF_INVALID_TYPE', 8, "The return type '%s' is not a '%s', as def ined by the method '%s'"); 1553 static final StaticTypeWarningCode RETURN_OF_INVALID_TYPE = new StaticTypeWarn ingCode('RETURN_OF_INVALID_TYPE', 8, "The return type '%s' is not a '%s', as def ined by the method '%s'");
1504 /** 1554 /**
1505 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a 1555 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a
1506 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object 1556 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object
1507 * expression are not subtypes of the bounds of the corresponding formal type parameters of 1557 * expression are not subtypes of the bounds of the corresponding formal type parameters of
1508 * <i>G</i>. 1558 * <i>G</i>.
1509 * @param boundedTypeName the name of the type used in the instance creation t hat should be 1559 * @param boundedTypeName the name of the type used in the instance creation t hat should be
1510 * limited by the bound as specified in the class declaration 1560 * limited by the bound as specified in the class declaration
1511 * @param boundingTypeName the name of the bounding type 1561 * @param boundingTypeName the name of the bounding type
1512 */ 1562 */
1513 static final StaticTypeWarningCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Sta ticTypeWarningCode('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 9, "'%s' does not extend '%s'"); 1563 static final StaticTypeWarningCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Sta ticTypeWarningCode('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 9, "'%s' does not extend '%s'");
1514 /** 1564 /**
1515 * 10 Generics: It is a static type warning if a type parameter is a supertype of its upper bound. 1565 * 10 Generics: It is a static type warning if a type parameter is a supertype of its upper bound.
1516 * <p> 1566 * <p>
1517 * 15.8 Parameterized Types: If <i>S</i> is the static type of a member <i>m</ i> of <i>G</i>, then 1567 * 15.8 Parameterized Types: If <i>S</i> is the static type of a member <i>m</ i> of <i>G</i>, then
1518 * the static type of the member <i>m</i> of <i>G&lt;A<sub>1</sub>, &hellip; A <sub>n</sub>&gt;</i> 1568 * the static type of the member <i>m</i> of <i>G&lt;A<sub>1</sub>, &hellip; A <sub>n</sub>&gt;</i>
1519 * is <i>[A<sub>1</sub>, &hellip;, A<sub>n</sub>/T<sub>1</sub>, &hellip;, T<su b>n</sub>]S</i> 1569 * is <i>[[A<sub>1</sub>, &hellip;, A<sub>n</sub>/T<sub>1</sub>, &hellip;, T<s ub>n</sub>]]S</i>
1520 * where <i>T<sub>1</sub>, &hellip; T<sub>n</sub></i> are the formal type para meters of <i>G</i>. 1570 * where <i>T<sub>1</sub>, &hellip; T<sub>n</sub></i> are the formal type para meters of <i>G</i>.
1521 * Let <i>B<sub>i</sub></i> be the bounds of <i>T<sub>i</sub>, 1 &lt;= i &lt;= n</i>. It is a 1571 * Let <i>B<sub>i</sub></i> be the bounds of <i>T<sub>i</sub>, 1 &lt;= i &lt;= n</i>. It is a
1522 * static type warning if <i>A<sub>i</sub></i> is not a subtype of <i>[A<sub>1 </sub>, &hellip;, 1572 * static type warning if <i>A<sub>i</sub></i> is not a subtype of <i>[[A<sub> 1</sub>, &hellip;,
1523 * A<sub>n</sub>/T<sub>1</sub>, &hellip;, T<sub>n</sub>]B<sub>i</sub>, 1 &lt;= i &lt;= n</i>. 1573 * A<sub>n</sub>/T<sub>1</sub>, &hellip;, T<sub>n</sub>]]B<sub>i</sub>, 1 &lt; = i &lt;= n</i>.
1524 */ 1574 */
1525 static final StaticTypeWarningCode TYPE_ARGUMENT_VIOLATES_BOUNDS = new StaticT ypeWarningCode('TYPE_ARGUMENT_VIOLATES_BOUNDS', 10, ""); 1575 static final StaticTypeWarningCode TYPE_ARGUMENT_VIOLATES_BOUNDS = new StaticT ypeWarningCode('TYPE_ARGUMENT_VIOLATES_BOUNDS', 10, "");
1526 /** 1576 /**
1527 * Specification reference needed. This is equivalent to {@link #UNDEFINED_MET HOD}, but for 1577 * Specification reference needed. This is equivalent to {@link #UNDEFINED_MET HOD}, but for
1528 * top-level functions. 1578 * top-level functions.
1529 * @param methodName the name of the method that is undefined 1579 * @param methodName the name of the method that is undefined
1530 */ 1580 */
1531 static final StaticTypeWarningCode UNDEFINED_FUNCTION = new StaticTypeWarningC ode('UNDEFINED_FUNCTION', 11, "The FUNCTION '%s' is not defined"); 1581 static final StaticTypeWarningCode UNDEFINED_FUNCTION = new StaticTypeWarningC ode('UNDEFINED_FUNCTION', 11, "The FUNCTION '%s' is not defined");
1532 /** 1582 /**
1533 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is a static type 1583 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is a static type
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { 1633 StaticTypeWarningCode(this.__name, this.__ordinal, String message) {
1584 this._message = message; 1634 this._message = message;
1585 } 1635 }
1586 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; 1636 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity;
1587 String get message => _message; 1637 String get message => _message;
1588 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; 1638 ErrorType get type => ErrorType.STATIC_TYPE_WARNING;
1589 bool needsRecompilation() => true; 1639 bool needsRecompilation() => true;
1590 int compareTo(StaticTypeWarningCode other) => __ordinal - other.__ordinal; 1640 int compareTo(StaticTypeWarningCode other) => __ordinal - other.__ordinal;
1591 String toString() => __name; 1641 String toString() => __name;
1592 } 1642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698