OLD | NEW |
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 */ | 159 */ |
160 int _length = 0; | 160 int _length = 0; |
161 /** | 161 /** |
162 * Initialize a newly created analysis error for the specified source. The err
or has no location | 162 * Initialize a newly created analysis error for the specified source. The err
or has no location |
163 * information. | 163 * information. |
164 * @param source the source for which the exception occurred | 164 * @param source the source for which the exception occurred |
165 * @param errorCode the error code to be associated with this error | 165 * @param errorCode the error code to be associated with this error |
166 * @param arguments the arguments used to build the error message | 166 * @param arguments the arguments used to build the error message |
167 */ | 167 */ |
168 AnalysisError.con1(Source source2, ErrorCode errorCode2, List<Object> argument
s) { | 168 AnalysisError.con1(Source source2, ErrorCode errorCode2, List<Object> argument
s) { |
169 _jtd_constructor_127_impl(source2, errorCode2, arguments); | 169 _jtd_constructor_129_impl(source2, errorCode2, arguments); |
170 } | 170 } |
171 _jtd_constructor_127_impl(Source source2, ErrorCode errorCode2, List<Object> a
rguments) { | 171 _jtd_constructor_129_impl(Source source2, ErrorCode errorCode2, List<Object> a
rguments) { |
172 this._source = source2; | 172 this._source = source2; |
173 this._errorCode = errorCode2; | 173 this._errorCode = errorCode2; |
174 this._message = JavaString.format(errorCode2.message, arguments); | 174 this._message = JavaString.format(errorCode2.message, arguments); |
175 } | 175 } |
176 /** | 176 /** |
177 * Initialize a newly created analysis error for the specified source at the g
iven location. | 177 * Initialize a newly created analysis error for the specified source at the g
iven location. |
178 * @param source the source for which the exception occurred | 178 * @param source the source for which the exception occurred |
179 * @param offset the offset of the location of the error | 179 * @param offset the offset of the location of the error |
180 * @param length the length of the location of the error | 180 * @param length the length of the location of the error |
181 * @param errorCode the error code to be associated with this error | 181 * @param errorCode the error code to be associated with this error |
182 * @param arguments the arguments used to build the error message | 182 * @param arguments the arguments used to build the error message |
183 */ | 183 */ |
184 AnalysisError.con2(Source source3, int offset2, int length11, ErrorCode errorC
ode3, List<Object> arguments) { | 184 AnalysisError.con2(Source source3, int offset2, int length11, ErrorCode errorC
ode3, List<Object> arguments) { |
185 _jtd_constructor_128_impl(source3, offset2, length11, errorCode3, arguments)
; | 185 _jtd_constructor_130_impl(source3, offset2, length11, errorCode3, arguments)
; |
186 } | 186 } |
187 _jtd_constructor_128_impl(Source source3, int offset2, int length11, ErrorCode
errorCode3, List<Object> arguments) { | 187 _jtd_constructor_130_impl(Source source3, int offset2, int length11, ErrorCode
errorCode3, List<Object> arguments) { |
188 this._source = source3; | 188 this._source = source3; |
189 this._offset = offset2; | 189 this._offset = offset2; |
190 this._length = length11; | 190 this._length = length11; |
191 this._errorCode = errorCode3; | 191 this._errorCode = errorCode3; |
192 this._message = JavaString.format(errorCode3.message, arguments); | 192 this._message = JavaString.format(errorCode3.message, arguments); |
193 } | 193 } |
194 /** | 194 /** |
195 * Return the error code associated with the error. | 195 * Return the error code associated with the error. |
196 * @return the error code associated with the error | 196 * @return the error code associated with the error |
197 */ | 197 */ |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 static final CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD = new
CompileTimeErrorCode('CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD', 12, "Classes wit
h non-final fields cannot define 'const' constructors"); | 405 static final CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD = new
CompileTimeErrorCode('CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD', 12, "Classes wit
h non-final fields cannot define 'const' constructors"); |
406 /** | 406 /** |
407 * 6.2 Formal Parameters: It is a compile-time error if a formal parameter is
declared as a | 407 * 6.2 Formal Parameters: It is a compile-time error if a formal parameter is
declared as a |
408 * constant variable. | 408 * constant variable. |
409 */ | 409 */ |
410 static final CompileTimeErrorCode CONST_FORMAL_PARAMETER = new CompileTimeErro
rCode('CONST_FORMAL_PARAMETER', 13, "Parameters cannot be 'const'"); | 410 static final CompileTimeErrorCode CONST_FORMAL_PARAMETER = new CompileTimeErro
rCode('CONST_FORMAL_PARAMETER', 13, "Parameters cannot be 'const'"); |
411 /** | 411 /** |
412 * 5 Variables: A constant variable must be initialized to a compile-time cons
tant or a | 412 * 5 Variables: A constant variable must be initialized to a compile-time cons
tant or a |
413 * compile-time error occurs. | 413 * compile-time error occurs. |
414 */ | 414 */ |
415 static final CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE =
new CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 14, ""); | 415 static final CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE =
new CompileTimeErrorCode('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 14, "'cons
t' variables must be constant value"); |
416 /** | 416 /** |
417 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an | 417 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an |
418 * uncaught exception being thrown. | 418 * uncaught exception being thrown. |
419 */ | 419 */ |
420 static final CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = new CompileTim
eErrorCode('CONST_EVAL_THROWS_EXCEPTION', 15, ""); | 420 static final CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = new CompileTim
eErrorCode('CONST_EVAL_THROWS_EXCEPTION', 15, ""); |
421 /** | 421 /** |
422 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S<U<sub>1</sub>, &
hellip;, | 422 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S<U<sub>1</sub>, &
hellip;, |
423 * U<sub>m</sub>></i>, let <i>R = S</i>; It is a compile time error if <i>S
</i> is not a | 423 * U<sub>m</sub>></i>, let <i>R = S</i>; It is a compile time error if <i>S
</i> is not a |
424 * generic type with <i>m</i> type parameters. | 424 * generic type with <i>m</i> type parameters. |
425 * @param typeName the name of the type being referenced (<i>S</i>) | 425 * @param typeName the name of the type being referenced (<i>S</i>) |
426 * @param argumentCount the number of type arguments provided | 426 * @param argumentCount the number of type arguments provided |
427 * @param parameterCount the number of type parameters that were declared | 427 * @param parameterCount the number of type parameters that were declared |
428 */ | 428 */ |
429 static final CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = new Com
pileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 16, "The type '%s' is de
clared with %d type parameters, but %d type arguments were given"); | 429 static final CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = new Com
pileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 16, "The type '%s' is de
clared with %d type parameters, but %d type arguments were given"); |
430 /** | 430 /** |
431 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, &hellip
;, a<sub>n</sub>, | 431 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, &hellip
;, a<sub>n</sub>, |
432 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a | 432 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a |
433 * compile-time error if the type <i>T</i> does not declare a constant constru
ctor with the same | 433 * compile-time error if the type <i>T</i> does not declare a constant constru
ctor with the same |
434 * name as the declaration of <i>T</i>. | 434 * name as the declaration of <i>T</i>. |
435 */ | 435 */ |
436 static final CompileTimeErrorCode CONST_WITH_NON_CONST = new CompileTimeErrorC
ode('CONST_WITH_NON_CONST', 17, ""); | 436 static final CompileTimeErrorCode CONST_WITH_NON_CONST = new CompileTimeErrorC
ode('CONST_WITH_NON_CONST', 17, "The constructor being called is not a 'const' c
onstructor"); |
437 /** | 437 /** |
438 * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i>
a<sub>i</sub>, 1 | 438 * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i>
a<sub>i</sub>, 1 |
439 * <= i <= n + k</i>, is not a compile-time constant expression. | 439 * <= i <= n + k</i>, is not a compile-time constant expression. |
440 */ | 440 */ |
441 static final CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = new Compi
leTimeErrorCode('CONST_WITH_NON_CONSTANT_ARGUMENT', 18, ""); | 441 static final CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = new Compi
leTimeErrorCode('CONST_WITH_NON_CONSTANT_ARGUMENT', 18, ""); |
442 /** | 442 /** |
443 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current | 443 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current |
444 * scope, optionally followed by type arguments. | 444 * scope, optionally followed by type arguments. |
445 * <p> | 445 * <p> |
446 * 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>, | 446 * 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>, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 */ | 485 */ |
486 static final CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = new CompileTimeEr
rorCode('DUPLICATE_NAMED_ARGUMENT', 26, ""); | 486 static final CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = new CompileTimeEr
rorCode('DUPLICATE_NAMED_ARGUMENT', 26, ""); |
487 /** | 487 /** |
488 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is | 488 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is |
489 * not a library declaration. | 489 * not a library declaration. |
490 */ | 490 */ |
491 static final CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = new CompileTimeError
Code('EXPORT_OF_NON_LIBRARY', 27, ""); | 491 static final CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = new CompileTimeError
Code('EXPORT_OF_NON_LIBRARY', 27, ""); |
492 /** | 492 /** |
493 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla
ss <i>C</i> includes | 493 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla
ss <i>C</i> includes |
494 * a type expression that does not denote a class available in the lexical sco
pe of <i>C</i>. | 494 * a type expression that does not denote a class available in the lexical sco
pe of <i>C</i>. |
| 495 * @param typeName the name of the superclass that was not found |
495 */ | 496 */ |
496 static final CompileTimeErrorCode EXTENDS_NON_CLASS = new CompileTimeErrorCode
('EXTENDS_NON_CLASS', 28, ""); | 497 static final CompileTimeErrorCode EXTENDS_NON_CLASS = new CompileTimeErrorCode
('EXTENDS_NON_CLASS', 28, "Classes can only extend other classes"); |
497 /** | 498 /** |
498 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i
mplement Null. | 499 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i
mplement Null. |
499 * <p> | 500 * <p> |
500 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement int. | 501 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement int. |
501 * <p> | 502 * <p> |
502 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement double. | 503 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o
r implement double. |
503 * <p> | 504 * <p> |
504 * 12.3 Numbers: It is a compile-time error for any type other than the types
int and double to | 505 * 12.3 Numbers: It is a compile-time error for any type other than the types
int and double to |
505 * attempt to extend or implement num. | 506 * attempt to extend or implement num. |
506 * <p> | 507 * <p> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 static final CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = new Compi
leTimeErrorCode('GETTER_AND_METHOD_WITH_SAME_NAME', 37, ""); | 556 static final CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = new Compi
leTimeErrorCode('GETTER_AND_METHOD_WITH_SAME_NAME', 37, ""); |
556 /** | 557 /** |
557 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class includes | 558 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class includes |
558 * type dynamic. | 559 * type dynamic. |
559 */ | 560 */ |
560 static final CompileTimeErrorCode IMPLEMENTS_DYNAMIC = new CompileTimeErrorCod
e('IMPLEMENTS_DYNAMIC', 38, ""); | 561 static final CompileTimeErrorCode IMPLEMENTS_DYNAMIC = new CompileTimeErrorCod
e('IMPLEMENTS_DYNAMIC', 38, ""); |
561 /** | 562 /** |
562 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class <i>C</i> | 563 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o
f a class <i>C</i> |
563 * includes a type expression that does not denote a class available in the le
xical scope of | 564 * includes a type expression that does not denote a class available in the le
xical scope of |
564 * <i>C</i>. | 565 * <i>C</i>. |
| 566 * @param typeName the name of the interface that was not found |
565 */ | 567 */ |
566 static final CompileTimeErrorCode IMPLEMENTS_NON_CLASS = new CompileTimeErrorC
ode('IMPLEMENTS_NON_CLASS', 39, ""); | 568 static final CompileTimeErrorCode IMPLEMENTS_NON_CLASS = new CompileTimeErrorC
ode('IMPLEMENTS_NON_CLASS', 39, "Classes can only implement other classes"); |
567 /** | 569 /** |
568 * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears
more than once in | 570 * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears
more than once in |
569 * the implements clause of a class. | 571 * the implements clause of a class. |
570 */ | 572 */ |
571 static final CompileTimeErrorCode IMPLEMENTS_REPEATED = new CompileTimeErrorCo
de('IMPLEMENTS_REPEATED', 40, ""); | 573 static final CompileTimeErrorCode IMPLEMENTS_REPEATED = new CompileTimeErrorCo
de('IMPLEMENTS_REPEATED', 40, ""); |
572 /** | 574 /** |
573 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a | 575 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas
s <i>C</i> is a |
574 * superinterface of itself. | 576 * superinterface of itself. |
575 */ | 577 */ |
576 static final CompileTimeErrorCode IMPLEMENTS_SELF = new CompileTimeErrorCode('
IMPLEMENTS_SELF', 41, ""); | 578 static final CompileTimeErrorCode IMPLEMENTS_SELF = new CompileTimeErrorCode('
IMPLEMENTS_SELF', 41, ""); |
(...skipping 11 matching lines...) Expand all Loading... |
588 * not instances of the same class <i>C</i>, for all <i>1 <= k <= n</i>. | 590 * not instances of the same class <i>C</i>, for all <i>1 <= k <= n</i>. |
589 */ | 591 */ |
590 static final CompileTimeErrorCode INCONSITENT_CASE_EXPRESSION_TYPES = new Comp
ileTimeErrorCode('INCONSITENT_CASE_EXPRESSION_TYPES', 44, ""); | 592 static final CompileTimeErrorCode INCONSITENT_CASE_EXPRESSION_TYPES = new Comp
ileTimeErrorCode('INCONSITENT_CASE_EXPRESSION_TYPES', 44, ""); |
591 /** | 593 /** |
592 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a | 594 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a |
593 * compile-time error if <i>id</i> is not the name of an instance variable of
the immediately | 595 * compile-time error if <i>id</i> is not the name of an instance variable of
the immediately |
594 * enclosing class. | 596 * enclosing class. |
595 */ | 597 */ |
596 static final CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = new Com
pileTimeErrorCode('INITIALIZER_FOR_NON_EXISTANT_FIELD', 45, ""); | 598 static final CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = new Com
pileTimeErrorCode('INITIALIZER_FOR_NON_EXISTANT_FIELD', 45, ""); |
597 /** | 599 /** |
| 600 * TODO(brianwilkerson) Remove this when we have decided on how to report erro
rs in compile-time |
| 601 * constants. Until then, this acts as a placeholder for more informative erro
rs. |
| 602 */ |
| 603 static final CompileTimeErrorCode INVALID_CONSTANT = new CompileTimeErrorCode(
'INVALID_CONSTANT', 46, ""); |
| 604 /** |
598 * 7.6 Constructors: It is a compile-time error if the name of a constructor i
s not a constructor | 605 * 7.6 Constructors: It is a compile-time error if the name of a constructor i
s not a constructor |
599 * name. | 606 * name. |
600 */ | 607 */ |
601 static final CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = new CompileTimeEr
rorCode('INVALID_CONSTRUCTOR_NAME', 46, ""); | 608 static final CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = new CompileTimeEr
rorCode('INVALID_CONSTRUCTOR_NAME', 47, ""); |
602 /** | 609 /** |
603 * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of
the immediately | 610 * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of
the immediately |
604 * enclosing class. | 611 * enclosing class. |
605 */ | 612 */ |
606 static final CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = new Compi
leTimeErrorCode('INVALID_FACTORY_NAME_NOT_A_CLASS', 47, ""); | 613 static final CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = new Compi
leTimeErrorCode('INVALID_FACTORY_NAME_NOT_A_CLASS', 48, ""); |
607 /** | 614 /** |
608 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an | 615 * 7.1 Instance Methods: It is a static warning if an instance method <i>m1</i
> overrides an |
609 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for | 616 * instance member <i>m2</i>, the signature of <i>m2</i> explicitly specifies
a default value for |
610 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value | 617 * a formal parameter <i>p</i> and the signature of <i>m1</i> specifies a diff
erent default value |
611 * for <i>p</i>. | 618 * for <i>p</i>. |
612 */ | 619 */ |
613 static final CompileTimeErrorCode INVALID_OVERRIDE_DEFAULT_VALUE = new Compile
TimeErrorCode('INVALID_OVERRIDE_DEFAULT_VALUE', 48, ""); | 620 static final CompileTimeErrorCode INVALID_OVERRIDE_DEFAULT_VALUE = new Compile
TimeErrorCode('INVALID_OVERRIDE_DEFAULT_VALUE', 49, ""); |
614 /** | 621 /** |
615 * 7.1: It is a compile-time error if an instance method <i>m1</i> overrides a
n instance member | 622 * 7.1: It is a compile-time error if an instance method <i>m1</i> overrides a
n instance member |
616 * <i>m2</i> and <i>m1</i> does not declare all the named parameters declared
by <i>m2</i>. | 623 * <i>m2</i> and <i>m1</i> does not declare all the named parameters declared
by <i>m2</i>. |
617 */ | 624 */ |
618 static final CompileTimeErrorCode INVALID_OVERRIDE_NAMED = new CompileTimeErro
rCode('INVALID_OVERRIDE_NAMED', 49, ""); | 625 static final CompileTimeErrorCode INVALID_OVERRIDE_NAMED = new CompileTimeErro
rCode('INVALID_OVERRIDE_NAMED', 50, ""); |
619 /** | 626 /** |
620 * 7.1 Instance Methods: It is a compile-time error if an instance method m1 o
verrides an instance | 627 * 7.1 Instance Methods: It is a compile-time error if an instance method m1 o
verrides an instance |
621 * member <i>m2</i> and <i>m1</i> has fewer optional positional parameters tha
n <i>m2</i>. | 628 * member <i>m2</i> and <i>m1</i> has fewer optional positional parameters tha
n <i>m2</i>. |
622 */ | 629 */ |
623 static final CompileTimeErrorCode INVALID_OVERRIDE_POSITIONAL = new CompileTim
eErrorCode('INVALID_OVERRIDE_POSITIONAL', 50, ""); | 630 static final CompileTimeErrorCode INVALID_OVERRIDE_POSITIONAL = new CompileTim
eErrorCode('INVALID_OVERRIDE_POSITIONAL', 51, ""); |
624 /** | 631 /** |
625 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m
1</i> overrides an | 632 * 7.1 Instance Methods: It is a compile-time error if an instance method <i>m
1</i> overrides an |
626 * instance member <i>m2</i> and <i>m1</i> has a different number of required
parameters than | 633 * instance member <i>m2</i> and <i>m1</i> has a different number of required
parameters than |
627 * <i>m2</i>. | 634 * <i>m2</i>. |
628 */ | 635 */ |
629 static final CompileTimeErrorCode INVALID_OVERRIDE_REQUIRED = new CompileTimeE
rrorCode('INVALID_OVERRIDE_REQUIRED', 51, ""); | 636 static final CompileTimeErrorCode INVALID_OVERRIDE_REQUIRED = new CompileTimeE
rrorCode('INVALID_OVERRIDE_REQUIRED', 52, ""); |
630 /** | 637 /** |
631 * 12.10 This: It is a compile-time error if this appears in a top-level funct
ion or variable | 638 * 12.10 This: It is a compile-time error if this appears in a top-level funct
ion or variable |
632 * initializer, in a factory constructor, or in a static method or variable in
itializer, or in the | 639 * initializer, in a factory constructor, or in a static method or variable in
itializer, or in the |
633 * initializer of an instance variable. | 640 * initializer of an instance variable. |
634 */ | 641 */ |
635 static final CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = new CompileTimeE
rrorCode('INVALID_REFERENCE_TO_THIS', 52, ""); | 642 static final CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = new CompileTimeE
rrorCode('INVALID_REFERENCE_TO_THIS', 53, ""); |
636 /** | 643 /** |
637 * 12.7 Maps: It is a compile-time error if the first type argument to a map l
iteral is not | 644 * 12.7 Maps: It is a compile-time error if the first type argument to a map l
iteral is not |
638 * String. | 645 * String. |
639 */ | 646 */ |
640 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_FOR_KEY = new CompileT
imeErrorCode('INVALID_TYPE_ARGUMENT_FOR_KEY', 53, ""); | 647 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_FOR_KEY = new CompileT
imeErrorCode('INVALID_TYPE_ARGUMENT_FOR_KEY', 54, ""); |
641 /** | 648 /** |
642 * 12.6 Lists: It is a compile time error if the type argument of a constant l
ist literal includes | 649 * 12.6 Lists: It is a compile time error if the type argument of a constant l
ist literal includes |
643 * a type parameter. | 650 * a type parameter. |
644 */ | 651 */ |
645 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = new Co
mpileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 54, ""); | 652 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = new Co
mpileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 55, ""); |
646 /** | 653 /** |
647 * 12.7 Maps: It is a compile time error if the type arguments of a constant m
ap literal include a | 654 * 12.7 Maps: It is a compile time error if the type arguments of a constant m
ap literal include a |
648 * type parameter. | 655 * type parameter. |
649 */ | 656 */ |
650 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = new Com
pileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 55, ""); | 657 static final CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = new Com
pileTimeErrorCode('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 56, ""); |
651 /** | 658 /** |
652 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 659 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
653 * error if <i>k</i>'s initializer list contains an initializer for a variable
that is not an | 660 * error if <i>k</i>'s initializer list contains an initializer for a variable
that is not an |
654 * instance variable declared in the immediately surrounding class. | 661 * instance variable declared in the immediately surrounding class. |
655 */ | 662 */ |
656 static final CompileTimeErrorCode INVALID_VARIABLE_IN_INITIALIZER = new Compil
eTimeErrorCode('INVALID_VARIABLE_IN_INITIALIZER', 56, ""); | 663 static final CompileTimeErrorCode INVALID_VARIABLE_IN_INITIALIZER = new Compil
eTimeErrorCode('INVALID_VARIABLE_IN_INITIALIZER', 57, ""); |
657 /** | 664 /** |
658 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within | 665 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within |
659 * the innermost function in which <i>s<sub>b</sub></i> occurs. | 666 * the innermost function in which <i>s<sub>b</sub></i> occurs. |
660 * <p> | 667 * <p> |
661 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use | 668 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use |
662 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. | 669 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. |
663 * @param labelName the name of the unresolvable label | 670 * @param labelName the name of the unresolvable label |
664 */ | 671 */ |
665 static final CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = new CompileTimeErrorC
ode('LABEL_IN_OUTER_SCOPE', 57, "Cannot reference label '%s' declared in an oute
r method or function"); | 672 static final CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = new CompileTimeErrorC
ode('LABEL_IN_OUTER_SCOPE', 58, "Cannot reference label '%s' declared in an oute
r method"); |
666 /** | 673 /** |
667 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within | 674 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su
b></i> exists within |
668 * the innermost function in which <i>s<sub>b</sub></i> occurs. | 675 * the innermost function in which <i>s<sub>b</sub></i> occurs. |
669 * <p> | 676 * <p> |
670 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use | 677 * 13.14 Continue: It is a compile-time error if no such statement or case cla
use |
671 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. | 678 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub
>c</sub></i> occurs. |
672 * @param labelName the name of the unresolvable label | 679 * @param labelName the name of the unresolvable label |
673 */ | 680 */ |
674 static final CompileTimeErrorCode LABEL_UNDEFINED = new CompileTimeErrorCode('
LABEL_UNDEFINED', 58, "Cannot reference undefined label '%s'"); | 681 static final CompileTimeErrorCode LABEL_UNDEFINED = new CompileTimeErrorCode('
LABEL_UNDEFINED', 59, "Cannot reference undefined label '%s'"); |
675 /** | 682 /** |
676 * 7 Classes: It is a compile time error if a class <i>C</i> declares a member
with the same name | 683 * 7 Classes: It is a compile time error if a class <i>C</i> declares a member
with the same name |
677 * as <i>C</i>. | 684 * as <i>C</i>. |
678 */ | 685 */ |
679 static final CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = new CompileTimeErro
rCode('MEMBER_WITH_CLASS_NAME', 59, ""); | 686 static final CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = new CompileTimeErro
rCode('MEMBER_WITH_CLASS_NAME', 60, ""); |
680 /** | 687 /** |
681 * 9 Mixins: It is a compile-time error if a declared or derived mixin explici
tly declares a | 688 * 9 Mixins: It is a compile-time error if a declared or derived mixin explici
tly declares a |
682 * constructor. | 689 * constructor. |
683 */ | 690 */ |
684 static final CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = new CompileTime
ErrorCode('MIXIN_DECLARES_CONSTRUCTOR', 60, ""); | 691 static final CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = new CompileTime
ErrorCode('MIXIN_DECLARES_CONSTRUCTOR', 61, ""); |
685 /** | 692 /** |
686 * 9 Mixins: It is a compile-time error if a mixin is derived from a class who
se superclass is not | 693 * 9 Mixins: It is a compile-time error if a mixin is derived from a class who
se superclass is not |
687 * Object. | 694 * Object. |
688 */ | 695 */ |
689 static final CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = new Compile
TimeErrorCode('MIXIN_INHERITS_FROM_NOT_OBJECT', 61, ""); | 696 static final CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = new Compile
TimeErrorCode('MIXIN_INHERITS_FROM_NOT_OBJECT', 62, ""); |
690 /** | 697 /** |
691 * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not deno
te a class or mixin | 698 * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not deno
te a class or mixin |
692 * available in the immediately enclosing scope. | 699 * available in the immediately enclosing scope. |
| 700 * @param typeName the name of the mixin that was not found |
693 */ | 701 */ |
694 static final CompileTimeErrorCode MIXIN_OF_NON_CLASS = new CompileTimeErrorCod
e('MIXIN_OF_NON_CLASS', 62, ""); | 702 static final CompileTimeErrorCode MIXIN_OF_NON_CLASS = new CompileTimeErrorCod
e('MIXIN_OF_NON_CLASS', 63, "Classes can only mixin other classes"); |
695 /** | 703 /** |
696 * 9.1 Mixin Application: If <i>M</i> is a class, it is a compile time error i
f a well formed | 704 * 9.1 Mixin Application: If <i>M</i> is a class, it is a compile time error i
f a well formed |
697 * mixin cannot be derived from <i>M</i>. | 705 * mixin cannot be derived from <i>M</i>. |
698 */ | 706 */ |
699 static final CompileTimeErrorCode MIXIN_OF_NON_MIXIN = new CompileTimeErrorCod
e('MIXIN_OF_NON_MIXIN', 63, ""); | 707 static final CompileTimeErrorCode MIXIN_OF_NON_MIXIN = new CompileTimeErrorCod
e('MIXIN_OF_NON_MIXIN', 64, ""); |
700 /** | 708 /** |
701 * 9 Mixins: It is a compile-time error if a declared or derived mixin refers
to super. | 709 * 9 Mixins: It is a compile-time error if a declared or derived mixin refers
to super. |
702 */ | 710 */ |
703 static final CompileTimeErrorCode MIXIN_REFERENCES_SUPER = new CompileTimeErro
rCode('MIXIN_REFERENCES_SUPER', 64, ""); | 711 static final CompileTimeErrorCode MIXIN_REFERENCES_SUPER = new CompileTimeErro
rCode('MIXIN_REFERENCES_SUPER', 65, ""); |
704 /** | 712 /** |
705 * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not deno
te a class available | 713 * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not deno
te a class available |
706 * in the immediately enclosing scope. | 714 * in the immediately enclosing scope. |
707 */ | 715 */ |
708 static final CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = new Compil
eTimeErrorCode('MIXIN_WITH_NON_CLASS_SUPERCLASS', 65, ""); | 716 static final CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = new Compil
eTimeErrorCode('MIXIN_WITH_NON_CLASS_SUPERCLASS', 66, ""); |
709 /** | 717 /** |
710 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Th
en <i>k</i> may | 718 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Th
en <i>k</i> may |
711 * include at most one superinitializer in its initializer list or a compile t
ime error occurs. | 719 * include at most one superinitializer in its initializer list or a compile t
ime error occurs. |
712 */ | 720 */ |
713 static final CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = new CompileTim
eErrorCode('MULTIPLE_SUPER_INITIALIZERS', 66, ""); | 721 static final CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = new CompileTim
eErrorCode('MULTIPLE_SUPER_INITIALIZERS', 67, ""); |
714 /** | 722 /** |
715 * 12.11.1 New: It is a compile time error if <i>S</i> is not a generic type w
ith <i>m</i> type | 723 * 12.11.1 New: It is a compile time error if <i>S</i> is not a generic type w
ith <i>m</i> type |
716 * parameters. | 724 * parameters. |
717 * @param typeName the name of the type being referenced (<i>S</i>) | 725 * @param typeName the name of the type being referenced (<i>S</i>) |
718 * @param argumentCount the number of type arguments provided | 726 * @param argumentCount the number of type arguments provided |
719 * @param parameterCount the number of type parameters that were declared | 727 * @param parameterCount the number of type parameters that were declared |
720 */ | 728 */ |
721 static final CompileTimeErrorCode NEW_WITH_INVALID_TYPE_PARAMETERS = new Compi
leTimeErrorCode('NEW_WITH_INVALID_TYPE_PARAMETERS', 67, "The type '%s' is declar
ed with %d type parameters, but %d type arguments were given"); | 729 static final CompileTimeErrorCode NEW_WITH_INVALID_TYPE_PARAMETERS = new Compi
leTimeErrorCode('NEW_WITH_INVALID_TYPE_PARAMETERS', 68, "The type '%s' is declar
ed with %d type parameters, but %d type arguments were given"); |
722 /** | 730 /** |
723 * 13.2 Expression Statements: It is a compile-time error if a non-constant ma
p literal that has | 731 * 13.2 Expression Statements: It is a compile-time error if a non-constant ma
p literal that has |
724 * no explicit type arguments appears in a place where a statement is expected
. | 732 * no explicit type arguments appears in a place where a statement is expected
. |
725 */ | 733 */ |
726 static final CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = new
CompileTimeErrorCode('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 68, ""); | 734 static final CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = new
CompileTimeErrorCode('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 69, ""); |
727 /** | 735 /** |
728 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … | 736 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub
>11</sub> … |
729 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … | 737 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> … label<sub>n1
</sub> … |
730 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form | 738 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s
ub>}</i> or the form |
731 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: | 739 * <i>switch (e) { label<sub>11</sub> … label<sub>1j1</sub> case e<sub>
1</sub>: |
732 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: | 740 * s<sub>1</sub> … label<sub>n1</sub> … label<sub>njn</sub> case
e<sub>n</sub>: |
733 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not | 741 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub>
k</sub></i> are not |
734 * compile-time constants, for all <i>1 <= k <= n</i>. | 742 * compile-time constants, for all <i>1 <= k <= n</i>. |
735 */ | 743 */ |
736 static final CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = new CompileTi
meErrorCode('NON_CONSTANT_CASE_EXPRESSION', 69, ""); | 744 static final CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = new CompileTi
meErrorCode('NON_CONSTANT_CASE_EXPRESSION', 70, "Case expressions must be consta
nt"); |
737 /** | 745 /** |
738 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional | 746 * 6.2.2 Optional Formals: It is a compile-time error if the default value of
an optional |
739 * parameter is not a compile-time constant. | 747 * parameter is not a compile-time constant. |
740 */ | 748 */ |
741 static final CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = new CompileTime
ErrorCode('NON_CONSTANT_DEFAULT_VALUE', 70, ""); | 749 static final CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = new CompileTime
ErrorCode('NON_CONSTANT_DEFAULT_VALUE', 71, "Default values of an optional param
eter must be constant"); |
742 /** | 750 /** |
743 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a | 751 * 12.6 Lists: It is a compile time error if an element of a constant list lit
eral is not a |
744 * compile-time constant. | 752 * compile-time constant. |
745 */ | 753 */ |
746 static final CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = new CompileTimeE
rrorCode('NON_CONSTANT_LIST_ELEMENT', 71, ""); | 754 static final CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = new CompileTimeE
rrorCode('NON_CONSTANT_LIST_ELEMENT', 72, "'const' lists must have all constant
values"); |
747 /** | 755 /** |
748 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map | 756 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
749 * literal is not a compile-time constant. | 757 * literal is not a compile-time constant. |
750 */ | 758 */ |
751 static final CompileTimeErrorCode NON_CONSTANT_MAP_KEY = new CompileTimeErrorC
ode('NON_CONSTANT_MAP_KEY', 72, ""); | 759 static final CompileTimeErrorCode NON_CONSTANT_MAP_KEY = new CompileTimeErrorC
ode('NON_CONSTANT_MAP_KEY', 73, "The keys in a 'const' map must be constant"); |
752 /** | 760 /** |
753 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map | 761 * 12.7 Maps: It is a compile time error if either a key or a value of an entr
y in a constant map |
754 * literal is not a compile-time constant. | 762 * literal is not a compile-time constant. |
755 */ | 763 */ |
756 static final CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = new CompileTimeErro
rCode('NON_CONSTANT_MAP_VALUE', 73, ""); | 764 static final CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = new CompileTimeErro
rCode('NON_CONSTANT_MAP_VALUE', 74, "The values in a 'const' map must be constan
t"); |
757 /** | 765 /** |
758 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a | 766 * 7.6.3 Constant Constructors: Any expression that appears within the initial
izer list of a |
759 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. | 767 * constant constructor must be a potentially constant expression, or a compil
e-time error occurs. |
760 */ | 768 */ |
761 static final CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = new Comp
ileTimeErrorCode('NON_CONSTANT_VALUE_IN_INITIALIZER', 74, ""); | 769 static final CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = new Comp
ileTimeErrorCode('NON_CONSTANT_VALUE_IN_INITIALIZER', 75, ""); |
762 /** | 770 /** |
763 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f
or class Object. | 771 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f
or class Object. |
764 */ | 772 */ |
765 static final CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = new Com
pileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 75, ""); | 773 static final CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = new Com
pileTimeErrorCode('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 76, ""); |
766 /** | 774 /** |
767 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete
r in an operator. | 775 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete
r in an operator. |
768 */ | 776 */ |
769 static final CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = new Compile
TimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', 76, ""); | 777 static final CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = new Compile
TimeErrorCode('OPTIONAL_PARAMETER_IN_OPERATOR', 77, ""); |
770 /** | 778 /** |
771 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an | 779 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an |
772 * interface member <i>m2</i> and <i>m1</i> does not declare all the named par
ameters declared by | 780 * interface member <i>m2</i> and <i>m1</i> does not declare all the named par
ameters declared by |
773 * <i>m2</i> in the same order. | 781 * <i>m2</i> in the same order. |
774 */ | 782 */ |
775 static final CompileTimeErrorCode OVERRIDE_MISSING_NAMED_PARAMETERS = new Comp
ileTimeErrorCode('OVERRIDE_MISSING_NAMED_PARAMETERS', 77, ""); | 783 static final CompileTimeErrorCode OVERRIDE_MISSING_NAMED_PARAMETERS = new Comp
ileTimeErrorCode('OVERRIDE_MISSING_NAMED_PARAMETERS', 78, ""); |
776 /** | 784 /** |
777 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an | 785 * 8 Interfaces: It is a compile-time error if an interface member <i>m1</i> o
verrides an |
778 * interface member <i>m2</i> and <i>m1</i> has a different number of required
parameters than | 786 * interface member <i>m2</i> and <i>m1</i> has a different number of required
parameters than |
779 * <i>m2</i>. | 787 * <i>m2</i>. |
780 */ | 788 */ |
781 static final CompileTimeErrorCode OVERRIDE_MISSING_REQUIRED_PARAMETERS = new C
ompileTimeErrorCode('OVERRIDE_MISSING_REQUIRED_PARAMETERS', 78, ""); | 789 static final CompileTimeErrorCode OVERRIDE_MISSING_REQUIRED_PARAMETERS = new C
ompileTimeErrorCode('OVERRIDE_MISSING_REQUIRED_PARAMETERS', 79, ""); |
782 /** | 790 /** |
783 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part | 791 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part |
784 * declaration. | 792 * declaration. |
785 */ | 793 */ |
786 static final CompileTimeErrorCode PART_OF_NON_PART = new CompileTimeErrorCode(
'PART_OF_NON_PART', 79, ""); | 794 static final CompileTimeErrorCode PART_OF_NON_PART = new CompileTimeErrorCode(
'PART_OF_NON_PART', 80, ""); |
787 /** | 795 /** |
788 * 14.1 Imports: It is a compile-time error if the current library declares a
top-level member | 796 * 14.1 Imports: It is a compile-time error if the current library declares a
top-level member |
789 * named <i>p</i>. | 797 * named <i>p</i>. |
790 */ | 798 */ |
791 static final CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = new
CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 80, ""); | 799 static final CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = new
CompileTimeErrorCode('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 81, ""); |
792 /** | 800 /** |
793 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o
ptional parameter | 801 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o
ptional parameter |
794 * begins with an ‘_’ character. | 802 * begins with an ‘_’ character. |
795 */ | 803 */ |
796 static final CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = new CompileTime
ErrorCode('PRIVATE_OPTIONAL_PARAMETER', 81, ""); | 804 static final CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = new CompileTime
ErrorCode('PRIVATE_OPTIONAL_PARAMETER', 82, ""); |
797 /** | 805 /** |
798 * 12.1 Constants: It is a compile-time error if the value of a compile-time c
onstant expression | 806 * 12.1 Constants: It is a compile-time error if the value of a compile-time c
onstant expression |
799 * depends on itself. | 807 * depends on itself. |
800 */ | 808 */ |
801 static final CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = new Compil
eTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', 82, ""); | 809 static final CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = new Compil
eTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', 83, ""); |
802 /** | 810 /** |
803 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr
uctor redirects to | 811 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr
uctor redirects to |
804 * itself, either directly or indirectly via a sequence of redirections. | 812 * itself, either directly or indirectly via a sequence of redirections. |
805 */ | 813 */ |
806 static final CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = new CompileTime
ErrorCode('RECURSIVE_FACTORY_REDIRECT', 83, ""); | 814 static final CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = new CompileTime
ErrorCode('RECURSIVE_FACTORY_REDIRECT', 84, ""); |
807 /** | 815 /** |
808 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi
a a chain of | 816 * 15.3.1 Typedef: It is a compile-time error if a typedef refers to itself vi
a a chain of |
809 * references that does not include a class type. | 817 * references that does not include a class type. |
810 */ | 818 */ |
811 static final CompileTimeErrorCode RECURSIVE_FUNCTION_TYPE_ALIAS = new CompileT
imeErrorCode('RECURSIVE_FUNCTION_TYPE_ALIAS', 84, ""); | 819 static final CompileTimeErrorCode RECURSIVE_FUNCTION_TYPE_ALIAS = new CompileT
imeErrorCode('RECURSIVE_FUNCTION_TYPE_ALIAS', 85, ""); |
812 /** | 820 /** |
813 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. | 821 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi
nterface of itself. |
814 */ | 822 */ |
815 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = new Compil
eTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', 85, ""); | 823 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = new Compil
eTimeErrorCode('RECURSIVE_INTERFACE_INHERITANCE', 86, ""); |
816 /** | 824 /** |
817 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 825 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
818 * <i>k’</i> is not a constant constructor. | 826 * <i>k’</i> is not a constant constructor. |
819 */ | 827 */ |
820 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp
ileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 86, ""); | 828 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp
ileTimeErrorCode('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 87, ""); |
821 /** | 829 /** |
822 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name | 830 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name |
823 * <i>v</i> or the name <i>v=</i>. | 831 * <i>v</i> or the name <i>v=</i>. |
824 */ | 832 */ |
825 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE
R = new CompileTimeErrorCode('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER', 87
, ""); | 833 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE
R = new CompileTimeErrorCode('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER', 88
, ""); |
826 /** | 834 /** |
827 * 16.1.1 Reserved Words: A reserved word may not be used as an identifier; it
is a compile-time | 835 * 16.1.1 Reserved Words: A reserved word may not be used as an identifier; it
is a compile-time |
828 * error if a reserved word is used where an identifier is expected. | 836 * error if a reserved word is used where an identifier is expected. |
829 */ | 837 */ |
830 static final CompileTimeErrorCode RESERVED_WORD_AS_IDENTIFIER = new CompileTim
eErrorCode('RESERVED_WORD_AS_IDENTIFIER', 88, ""); | 838 static final CompileTimeErrorCode RESERVED_WORD_AS_IDENTIFIER = new CompileTim
eErrorCode('RESERVED_WORD_AS_IDENTIFIER', 89, ""); |
831 /** | 839 /** |
832 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> | 840 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> |
833 * appears in a generative constructor. | 841 * appears in a generative constructor. |
834 */ | 842 */ |
835 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', 89, ""); | 843 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode('RETURN_IN_GENERATIVE_CONSTRUCTOR', 90, ""); |
836 /** | 844 /** |
837 * 6.1 Function Declarations: It is a compile-time error to preface a function
declaration with | 845 * 6.1 Function Declarations: It is a compile-time error to preface a function
declaration with |
838 * the built-in identifier static. | 846 * the built-in identifier static. |
839 */ | 847 */ |
840 static final CompileTimeErrorCode STATIC_TOP_LEVEL_FUNCTION = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_FUNCTION', 90, ""); | 848 static final CompileTimeErrorCode STATIC_TOP_LEVEL_FUNCTION = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_FUNCTION', 91, ""); |
841 /** | 849 /** |
842 * 5 Variables: It is a compile-time error to preface a top level variable dec
laration with the | 850 * 5 Variables: It is a compile-time error to preface a top level variable dec
laration with the |
843 * built-in identifier static. | 851 * built-in identifier static. |
844 */ | 852 */ |
845 static final CompileTimeErrorCode STATIC_TOP_LEVEL_VARIABLE = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_VARIABLE', 91, ""); | 853 static final CompileTimeErrorCode STATIC_TOP_LEVEL_VARIABLE = new CompileTimeE
rrorCode('STATIC_TOP_LEVEL_VARIABLE', 92, ""); |
846 /** | 854 /** |
847 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 855 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
848 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 856 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
849 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation | 857 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation |
850 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or | 858 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or |
851 * initializer list, in class Object, in a factory constructor, or in a static
method or variable | 859 * initializer list, in class Object, in a factory constructor, or in a static
method or variable |
852 * initializer. | 860 * initializer. |
853 */ | 861 */ |
854 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode('SUPER_IN_INVALID_CONTEXT', 92, ""); | 862 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode('SUPER_IN_INVALID_CONTEXT', 93, ""); |
855 /** | 863 /** |
856 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 864 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
857 * error if a generative constructor of class Object includes a superinitializ
er. | 865 * error if a generative constructor of class Object includes a superinitializ
er. |
858 */ | 866 */ |
859 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode('SUPER_INITIALIZER_IN_OBJECT', 93, ""); | 867 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode('SUPER_INITIALIZER_IN_OBJECT', 94, ""); |
860 /** | 868 /** |
861 * 12.8 Throw: It is a compile-time error if an expression of the form throw;
is not enclosed | 869 * 12.8 Throw: It is a compile-time error if an expression of the form throw;
is not enclosed |
862 * within a on-catch clause. | 870 * within a on-catch clause. |
863 */ | 871 */ |
864 static final CompileTimeErrorCode THROW_WITHOUT_VALUE_OUTSIDE_ON = new Compile
TimeErrorCode('THROW_WITHOUT_VALUE_OUTSIDE_ON', 94, ""); | 872 static final CompileTimeErrorCode THROW_WITHOUT_VALUE_OUTSIDE_ON = new Compile
TimeErrorCode('THROW_WITHOUT_VALUE_OUTSIDE_ON', 95, ""); |
865 /** | 873 /** |
866 * 12.11 Instance Creation: It is a compile-time error if a constructor of a n
on-generic type | 874 * 12.11 Instance Creation: It is a compile-time error if a constructor of a n
on-generic type |
867 * invoked by a new expression or a constant object expression is passed any t
ype arguments. | 875 * invoked by a new expression or a constant object expression is passed any t
ype arguments. |
868 * <p> | 876 * <p> |
869 * 12.32 Type Cast: It is a compile-time error if <i>T</i> is a parameterized
type of the form | 877 * 12.32 Type Cast: It is a compile-time error if <i>T</i> is a parameterized
type of the form |
870 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with | 878 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with |
871 * <i>n</i> type parameters. | 879 * <i>n</i> type parameters. |
872 */ | 880 */ |
873 static final CompileTimeErrorCode TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS = new C
ompileTimeErrorCode('TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS', 95, ""); | 881 static final CompileTimeErrorCode TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS = new C
ompileTimeErrorCode('TYPE_ARGUMENTS_FOR_NON_GENERIC_CLASS', 96, ""); |
874 /** | 882 /** |
875 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 883 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
876 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 884 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
877 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 885 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
878 * (respectively <i>S.id</i>) | 886 * (respectively <i>S.id</i>) |
879 */ | 887 */ |
880 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 96, ""); | 888 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 97, ""); |
881 /** | 889 /** |
882 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Ea
ch final instance | 890 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Ea
ch final instance |
883 * variable <i>f</i> declared in the immediately enclosing class must have an
initializer in | 891 * variable <i>f</i> declared in the immediately enclosing class must have an
initializer in |
884 * <i>k</i>'s initializer list unless it has already been initialized by one o
f the following | 892 * <i>k</i>'s initializer list unless it has already been initialized by one o
f the following |
885 * means: | 893 * means: |
886 * <ol> | 894 * <ol> |
887 * <li>Initialization at the declaration of <i>f</i>. | 895 * <li>Initialization at the declaration of <i>f</i>. |
888 * <li>Initialization by means of an initializing formal of <i>k</i>. | 896 * <li>Initialization by means of an initializing formal of <i>k</i>. |
889 * </ol> | 897 * </ol> |
890 * or a compile-time error occurs. | 898 * or a compile-time error occurs. |
891 */ | 899 */ |
892 static final CompileTimeErrorCode UNINITIALIZED_FINAL_FIELD = new CompileTimeE
rrorCode('UNINITIALIZED_FINAL_FIELD', 97, ""); | 900 static final CompileTimeErrorCode UNINITIALIZED_FINAL_FIELD = new CompileTimeE
rrorCode('UNINITIALIZED_FINAL_FIELD', 98, ""); |
893 /** | 901 /** |
894 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if | 902 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if |
895 * <i>x</i> involves string interpolation. | 903 * <i>x</i> involves string interpolation. |
896 * <p> | 904 * <p> |
897 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if | 905 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if |
898 * <i>s</i> involves string interpolation. | 906 * <i>s</i> involves string interpolation. |
899 * <p> | 907 * <p> |
900 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is | 908 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is |
901 * not a compile-time constant, or if <i>x</i> involves string interpolation. | 909 * not a compile-time constant, or if <i>x</i> involves string interpolation. |
902 */ | 910 */ |
903 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode('URI_WITH_INTERPOLATION', 98, "URIs cannot use string interpolation"); | 911 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode('URI_WITH_INTERPOLATION', 99, "URIs cannot use string interpolation"); |
904 /** | 912 /** |
905 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is | 913 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is |
906 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the | 914 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the |
907 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. | 915 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. |
908 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a | 916 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a |
909 * compile time error if the arity of the user-declared operator ~ is not 0. | 917 * compile time error if the arity of the user-declared operator ~ is not 0. |
910 */ | 918 */ |
911 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 99, ""); | 919 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 100, ""); |
912 /** | 920 /** |
913 * 7.3 Setters: It is a compile-time error if a setter’s formal parameter li
st does not include | 921 * 7.3 Setters: It is a compile-time error if a setter’s formal parameter li
st does not include |
914 * exactly one required formal parameter <i>p</i>. | 922 * exactly one required formal parameter <i>p</i>. |
915 */ | 923 */ |
916 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 100, ""); | 924 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 101, ""); |
917 /** | 925 /** |
918 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g
eneric type with | 926 * 12.11 Instance Creation: It is a compile-time error if a constructor of a g
eneric type with |
919 * <i>n</i> type parameters invoked by a new expression or a constant object e
xpression is passed | 927 * <i>n</i> type parameters invoked by a new expression or a constant object e
xpression is passed |
920 * <i>m</i> type arguments where <i>m != n</i>. | 928 * <i>m</i> type arguments where <i>m != n</i>. |
921 * <p> | 929 * <p> |
922 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized
type of the form | 930 * 12.31 Type Test: It is a compile-time error if <i>T</i> is a parameterized
type of the form |
923 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with | 931 * <i>G<T<sub>1</sub>, …, T<sub>n</sub>></i> and <i>G</i> is not
a generic type with |
924 * <i>n</i> type parameters. | 932 * <i>n</i> type parameters. |
925 */ | 933 */ |
926 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile
TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 101, ""); | 934 static final CompileTimeErrorCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Compile
TimeErrorCode('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 102, ""); |
927 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, COMPILE_TIME_CONSTANT_RAISES_EXCEPTION_DIVIDE_BY_
ZERO, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTING_CONSTRUCTOR_NAME_AND_M
ETHOD, CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, CONST_FORMAL_PARAMETER, CONST_INI
TIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_THROWS_EXCEPTION, CONST_WITH_INVALI
D_TYPE_PARAMETERS, CONST_WITH_NON_CONST, CONST_WITH_NON_CONSTANT_ARGUMENT, CONST
_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS, CONST_WITH_UNDEFINED_CONSTRUCTOR, DE
FAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_DEFINITION, DUPLICATE_MEMBER_NAME,
DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED_ARGUMENT, EXPORT_OF_NON_
LIBRARY, EXTENDS_NON_CLASS, EXTENDS_OR_IMPLEMENTS_DISALLOWED_CLASS, FIELD_INITIA
LIZED_BY_MULTIPLE_INITIALIZERS, FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION
, FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, FIELD_INITIALIZER_OUTSIDE_CONS
TRUCTOR, FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, FINAL_INITIALIZED_MUL
TIPLE_TIMES, FINAL_NOT_INITIALIZED, GETTER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS
_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMENTS_REPEATED, IMPLEMENTS_SELF, IMPORT_DUP
LICATED_LIBRARY_NAME, IMPORT_OF_NON_LIBRARY, INCONSITENT_CASE_EXPRESSION_TYPES,
INITIALIZER_FOR_NON_EXISTANT_FIELD, INVALID_CONSTRUCTOR_NAME, INVALID_FACTORY_NA
ME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALUE, INVALID_OVERRIDE_NAMED, INVALID_
OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRED, INVALID_REFERENCE_TO_THIS, INVAL
ID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUMENT_IN_CONST_LIST, INVALID_TYPE_ARGU
MENT_IN_CONST_MAP, INVALID_VARIABLE_IN_INITIALIZER, LABEL_IN_OUTER_SCOPE, LABEL_
UNDEFINED, MEMBER_WITH_CLASS_NAME, MIXIN_DECLARES_CONSTRUCTOR, MIXIN_INHERITS_FR
OM_NOT_OBJECT, MIXIN_OF_NON_CLASS, MIXIN_OF_NON_MIXIN, MIXIN_REFERENCES_SUPER, M
IXIN_WITH_NON_CLASS_SUPERCLASS, MULTIPLE_SUPER_INITIALIZERS, NEW_WITH_INVALID_TY
PE_PARAMETERS, NON_CONST_MAP_AS_EXPRESSION_STATEMENT, NON_CONSTANT_CASE_EXPRESSI
ON, NON_CONSTANT_DEFAULT_VALUE, NON_CONSTANT_LIST_ELEMENT, NON_CONSTANT_MAP_KEY,
NON_CONSTANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_INITIALIZER, OBJECT_CANNOT_EXTEND
_ANOTHER_CLASS, OPTIONAL_PARAMETER_IN_OPERATOR, OVERRIDE_MISSING_NAMED_PARAMETER
S, OVERRIDE_MISSING_REQUIRED_PARAMETERS, PART_OF_NON_PART, PREFIX_COLLIDES_WITH_
TOP_LEVEL_MEMBER, PRIVATE_OPTIONAL_PARAMETER, RECURSIVE_COMPILE_TIME_CONSTANT, R
ECURSIVE_FACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECURSIVE_INTERFACE_IN
HERITANCE, REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_DECLARED_VARIABLE_IN_
INITIALIZER, RESERVED_WORD_AS_IDENTIFIER, RETURN_IN_GENERATIVE_CONSTRUCTOR, STAT
IC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVEL_VARIABLE, SUPER_IN_INVALID_CONTEXT, SUPE
R_INITIALIZER_IN_OBJECT, THROW_WITHOUT_VALUE_OUTSIDE_ON, TYPE_ARGUMENTS_FOR_NON_
GENERIC_CLASS, UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, UNINITIALIZED_FINAL_FIELD,
URI_WITH_INTERPOLATION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, WRONG_NUMBER_OF
_PARAMETERS_FOR_SETTER, WRONG_NUMBER_OF_TYPE_ARGUMENTS]; | 935 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, COMPILE_TIME_CONSTANT_RAISES_EXCEPTION_DIVIDE_BY_
ZERO, CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, CONFLICTING_CONSTRUCTOR_NAME_AND_M
ETHOD, CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD, CONST_FORMAL_PARAMETER, CONST_INI
TIALIZED_WITH_NON_CONSTANT_VALUE, CONST_EVAL_THROWS_EXCEPTION, CONST_WITH_INVALI
D_TYPE_PARAMETERS, CONST_WITH_NON_CONST, CONST_WITH_NON_CONSTANT_ARGUMENT, CONST
_WITH_NON_TYPE, CONST_WITH_TYPE_PARAMETERS, CONST_WITH_UNDEFINED_CONSTRUCTOR, DE
FAULT_VALUE_IN_FUNCTION_TYPE_ALIAS, DUPLICATE_DEFINITION, DUPLICATE_MEMBER_NAME,
DUPLICATE_MEMBER_NAME_INSTANCE_STATIC, DUPLICATE_NAMED_ARGUMENT, EXPORT_OF_NON_
LIBRARY, EXTENDS_NON_CLASS, EXTENDS_OR_IMPLEMENTS_DISALLOWED_CLASS, FIELD_INITIA
LIZED_BY_MULTIPLE_INITIALIZERS, FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION
, FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZER, FIELD_INITIALIZER_OUTSIDE_CONS
TRUCTOR, FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR, FINAL_INITIALIZED_MUL
TIPLE_TIMES, FINAL_NOT_INITIALIZED, GETTER_AND_METHOD_WITH_SAME_NAME, IMPLEMENTS
_DYNAMIC, IMPLEMENTS_NON_CLASS, IMPLEMENTS_REPEATED, IMPLEMENTS_SELF, IMPORT_DUP
LICATED_LIBRARY_NAME, IMPORT_OF_NON_LIBRARY, INCONSITENT_CASE_EXPRESSION_TYPES,
INITIALIZER_FOR_NON_EXISTANT_FIELD, INVALID_CONSTANT, INVALID_CONSTRUCTOR_NAME,
INVALID_FACTORY_NAME_NOT_A_CLASS, INVALID_OVERRIDE_DEFAULT_VALUE, INVALID_OVERRI
DE_NAMED, INVALID_OVERRIDE_POSITIONAL, INVALID_OVERRIDE_REQUIRED, INVALID_REFERE
NCE_TO_THIS, INVALID_TYPE_ARGUMENT_FOR_KEY, INVALID_TYPE_ARGUMENT_IN_CONST_LIST,
INVALID_TYPE_ARGUMENT_IN_CONST_MAP, INVALID_VARIABLE_IN_INITIALIZER, LABEL_IN_O
UTER_SCOPE, LABEL_UNDEFINED, MEMBER_WITH_CLASS_NAME, MIXIN_DECLARES_CONSTRUCTOR,
MIXIN_INHERITS_FROM_NOT_OBJECT, MIXIN_OF_NON_CLASS, MIXIN_OF_NON_MIXIN, MIXIN_R
EFERENCES_SUPER, MIXIN_WITH_NON_CLASS_SUPERCLASS, MULTIPLE_SUPER_INITIALIZERS, N
EW_WITH_INVALID_TYPE_PARAMETERS, NON_CONST_MAP_AS_EXPRESSION_STATEMENT, NON_CONS
TANT_CASE_EXPRESSION, NON_CONSTANT_DEFAULT_VALUE, NON_CONSTANT_LIST_ELEMENT, NON
_CONSTANT_MAP_KEY, NON_CONSTANT_MAP_VALUE, NON_CONSTANT_VALUE_IN_INITIALIZER, OB
JECT_CANNOT_EXTEND_ANOTHER_CLASS, OPTIONAL_PARAMETER_IN_OPERATOR, OVERRIDE_MISSI
NG_NAMED_PARAMETERS, OVERRIDE_MISSING_REQUIRED_PARAMETERS, PART_OF_NON_PART, PRE
FIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, PRIVATE_OPTIONAL_PARAMETER, RECURSIVE_COMPIL
E_TIME_CONSTANT, RECURSIVE_FACTORY_REDIRECT, RECURSIVE_FUNCTION_TYPE_ALIAS, RECU
RSIVE_INTERFACE_INHERITANCE, REDIRECT_TO_NON_CONST_CONSTRUCTOR, REFERENCE_TO_DEC
LARED_VARIABLE_IN_INITIALIZER, RESERVED_WORD_AS_IDENTIFIER, RETURN_IN_GENERATIVE
_CONSTRUCTOR, STATIC_TOP_LEVEL_FUNCTION, STATIC_TOP_LEVEL_VARIABLE, SUPER_IN_INV
ALID_CONTEXT, SUPER_INITIALIZER_IN_OBJECT, THROW_WITHOUT_VALUE_OUTSIDE_ON, TYPE_
ARGUMENTS_FOR_NON_GENERIC_CLASS, UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, UNINITIAL
IZED_FINAL_FIELD, URI_WITH_INTERPOLATION, WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATO
R, WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER, WRONG_NUMBER_OF_TYPE_ARGUMENTS]; |
928 final String __name; | 936 final String __name; |
929 final int __ordinal; | 937 final int __ordinal; |
930 int get ordinal => __ordinal; | 938 int get ordinal => __ordinal; |
931 /** | 939 /** |
932 * The message template used to create the message to be displayed for this er
ror. | 940 * The message template used to create the message to be displayed for this er
ror. |
933 */ | 941 */ |
934 String _message; | 942 String _message; |
935 /** | 943 /** |
936 * Initialize a newly created error code to have the given message. | 944 * Initialize a newly created error code to have the given message. |
937 * @param message the message template used to create the message to be displa
yed for the error | 945 * @param message the message template used to create the message to be displa
yed for the error |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 /** | 1056 /** |
1049 * 7.3 Setters: It is a static warning if a class declares a static setter nam
ed <i>v=</i> and | 1057 * 7.3 Setters: It is a static warning if a class declares a static setter nam
ed <i>v=</i> and |
1050 * also has a non-static member named <i>v</i>. | 1058 * also has a non-static member named <i>v</i>. |
1051 */ | 1059 */ |
1052 static final StaticWarningCode CONFLICTING_STATIC_SETTER_AND_INSTANCE_GETTER =
new StaticWarningCode('CONFLICTING_STATIC_SETTER_AND_INSTANCE_GETTER', 13, ""); | 1060 static final StaticWarningCode CONFLICTING_STATIC_SETTER_AND_INSTANCE_GETTER =
new StaticWarningCode('CONFLICTING_STATIC_SETTER_AND_INSTANCE_GETTER', 13, ""); |
1053 /** | 1061 /** |
1054 * 12.11.2 Const: Given an instance creation expression of the form <i>const q
(a<sub>1</sub>, | 1062 * 12.11.2 Const: Given an instance creation expression of the form <i>const q
(a<sub>1</sub>, |
1055 * … a<sub>n</sub>)</i> it is a static warning if <i>q</i> is the const
ructor of an | 1063 * … a<sub>n</sub>)</i> it is a static warning if <i>q</i> is the const
ructor of an |
1056 * abstract class but <i>q</i> is not a factory constructor. | 1064 * abstract class but <i>q</i> is not a factory constructor. |
1057 */ | 1065 */ |
1058 static final StaticWarningCode CONST_WITH_ABSTRACT_CLASS = new StaticWarningCo
de('CONST_WITH_ABSTRACT_CLASS', 14, ""); | 1066 static final StaticWarningCode CONST_WITH_ABSTRACT_CLASS = new StaticWarningCo
de('CONST_WITH_ABSTRACT_CLASS', 14, "Abstract classes cannot be created with a '
const' expression"); |
1059 /** | 1067 /** |
1060 * 12.7 Maps: It is a static warning if the values of any two keys in a map li
teral are equal. | 1068 * 12.7 Maps: It is a static warning if the values of any two keys in a map li
teral are equal. |
1061 */ | 1069 */ |
1062 static final StaticWarningCode EQUAL_KEYS_IN_MAP = new StaticWarningCode('EQUA
L_KEYS_IN_MAP', 15, ""); | 1070 static final StaticWarningCode EQUAL_KEYS_IN_MAP = new StaticWarningCode('EQUA
L_KEYS_IN_MAP', 15, "Keys in a map cannot be equal"); |
1063 /** | 1071 /** |
1064 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a | 1072 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this.
id</i>. It is a |
1065 * static warning if the static type of <i>id</i> is not assignable to <i>T<su
b>id</sub></i>. | 1073 * static warning if the static type of <i>id</i> is not assignable to <i>T<su
b>id</sub></i>. |
1066 */ | 1074 */ |
1067 static final StaticWarningCode FIELD_INITIALIZER_WITH_INVALID_TYPE = new Stati
cWarningCode('FIELD_INITIALIZER_WITH_INVALID_TYPE', 16, ""); | 1075 static final StaticWarningCode FIELD_INITIALIZER_WITH_INVALID_TYPE = new Stati
cWarningCode('FIELD_INITIALIZER_WITH_INVALID_TYPE', 16, ""); |
1068 /** | 1076 /** |
1069 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</
i> or if <i>m > | 1077 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</
i> or if <i>m > |
1070 * n</i>. | 1078 * n</i>. |
1071 */ | 1079 */ |
1072 static final StaticWarningCode INCORRECT_NUMBER_OF_ARGUMENTS = new StaticWarni
ngCode('INCORRECT_NUMBER_OF_ARGUMENTS', 17, ""); | 1080 static final StaticWarningCode INCORRECT_NUMBER_OF_ARGUMENTS = new StaticWarni
ngCode('INCORRECT_NUMBER_OF_ARGUMENTS', 17, ""); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 /** | 1113 /** |
1106 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type | 1114 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type |
1107 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be | 1115 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be |
1108 * assigned to <i>S</i>. | 1116 * assigned to <i>S</i>. |
1109 */ | 1117 */ |
1110 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static
WarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 24, ""); | 1118 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static
WarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 24, ""); |
1111 /** | 1119 /** |
1112 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst
ract class and | 1120 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst
ract class and |
1113 * <i>q</i> is not a factory constructor. | 1121 * <i>q</i> is not a factory constructor. |
1114 */ | 1122 */ |
1115 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode
('NEW_WITH_ABSTRACT_CLASS', 25, ""); | 1123 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode
('NEW_WITH_ABSTRACT_CLASS', 25, "Abstract classes cannot be created with a 'new'
expression"); |
1116 /** | 1124 /** |
1117 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i
n the current scope, | 1125 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i
n the current scope, |
1118 * optionally followed by type arguments. | 1126 * optionally followed by type arguments. |
1119 */ | 1127 */ |
1120 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode('NEW_
WITH_NON_TYPE', 26, ""); | 1128 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode('NEW_
WITH_NON_TYPE', 26, ""); |
1121 /** | 1129 /** |
1122 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: | 1130 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: |
1123 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, | 1131 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, |
1124 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a | 1132 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a |
1125 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. | 1133 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 * <p> | 1348 * <p> |
1341 * Let <i>T</i> be the static type of <i>o</i>. It is a static type warning if
<i>T</i> does not | 1349 * Let <i>T</i> be the static type of <i>o</i>. It is a static type warning if
<i>T</i> does not |
1342 * have an accessible instance member named <i>m</i>. If <i>T.m</i> exists, it
is a static warning | 1350 * have an accessible instance member named <i>m</i>. If <i>T.m</i> exists, it
is a static warning |
1343 * if the type <i>F</i> of <i>T.m</i> may not be assigned to a function type.
If <i>T.m</i> does | 1351 * if the type <i>F</i> of <i>T.m</i> may not be assigned to a function type.
If <i>T.m</i> does |
1344 * not exist, or if <i>F</i> is not a function type, the static type of <i>i</
i> is dynamic. | 1352 * not exist, or if <i>F</i> is not a function type, the static type of <i>i</
i> is dynamic. |
1345 * <p> | 1353 * <p> |
1346 * 12.15.3 Static Invocation: It is a static type warning if the type <i>F</i>
of <i>C.m</i> may | 1354 * 12.15.3 Static Invocation: It is a static type warning if the type <i>F</i>
of <i>C.m</i> may |
1347 * not be assigned to a function type. | 1355 * not be assigned to a function type. |
1348 * @param nonFunctionIdentifier the name of the identifier that is not a funct
ion type | 1356 * @param nonFunctionIdentifier the name of the identifier that is not a funct
ion type |
1349 */ | 1357 */ |
1350 static final StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION = new StaticType
WarningCode('INVOCATION_OF_NON_FUNCTION', 3, "'%s' is not a method or function")
; | 1358 static final StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION = new StaticType
WarningCode('INVOCATION_OF_NON_FUNCTION', 3, "'%s' is not a method"); |
1351 /** | 1359 /** |
1352 * 12.19 Conditional: It is a static type warning if the type of <i>e<sub>1</s
ub></i> may not be | 1360 * 12.19 Conditional: It is a static type warning if the type of <i>e<sub>1</s
ub></i> may not be |
1353 * assigned to bool. | 1361 * assigned to bool. |
1354 * <p> | 1362 * <p> |
1355 * 13.5 If: It is a static type warning if the type of the expression <i>b</i>
may not be assigned | 1363 * 13.5 If: It is a static type warning if the type of the expression <i>b</i>
may not be assigned |
1356 * to bool. | 1364 * to bool. |
1357 * <p> | 1365 * <p> |
1358 * 13.7 While: It is a static type warning if the type of <i>e</i> may not be
assigned to bool. | 1366 * 13.7 While: It is a static type warning if the type of <i>e</i> may not be
assigned to bool. |
1359 * <p> | 1367 * <p> |
1360 * 13.8 Do: It is a static type warning if the type of <i>e</i> cannot be assi
gned to bool. | 1368 * 13.8 Do: It is a static type warning if the type of <i>e</i> cannot be assi
gned to bool. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 */ | 1452 */ |
1445 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { | 1453 StaticTypeWarningCode(this.__name, this.__ordinal, String message) { |
1446 this._message = message; | 1454 this._message = message; |
1447 } | 1455 } |
1448 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 1456 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
1449 String get message => _message; | 1457 String get message => _message; |
1450 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 1458 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
1451 bool needsRecompilation() => true; | 1459 bool needsRecompilation() => true; |
1452 String toString() => __name; | 1460 String toString() => __name; |
1453 } | 1461 } |
OLD | NEW |