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

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

Issue 535543003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.error; 8 library engine.error;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 /** 409 /**
410 * 12.33 Argument Definition Test: It is a compile time error if <i>v</i> does not denote a formal 410 * 12.33 Argument Definition Test: It is a compile time error if <i>v</i> does not denote a formal
411 * parameter. 411 * parameter.
412 * 412 *
413 * @param the name of the identifier in the argument definition test that is n ot a parameter 413 * @param the name of the identifier in the argument definition test that is n ot a parameter
414 */ 414 */
415 static const CompileTimeErrorCode ARGUMENT_DEFINITION_TEST_NON_PARAMETER = con st CompileTimeErrorCode.con1('ARGUMENT_DEFINITION_TEST_NON_PARAMETER', 2, "'{0}' is not a parameter"); 415 static const CompileTimeErrorCode ARGUMENT_DEFINITION_TEST_NON_PARAMETER = con st CompileTimeErrorCode.con1('ARGUMENT_DEFINITION_TEST_NON_PARAMETER', 2, "'{0}' is not a parameter");
416 416
417 /** 417 /**
418 * ?? Asynchronous For-in: It is a compile-time error if an asynchronous for-i n statement appears
419 * inside a synchronous function.
420 */
421 static const CompileTimeErrorCode ASYNC_FOR_IN_WRONG_CONTEXT = const CompileTi meErrorCode.con1('ASYNC_FOR_IN_WRONG_CONTEXT', 3, "The asynchronous for-in can o nly be used in a function marked with async or async*");
422
423 /**
424 * ??: It is a compile-time error if the function immediately enclosing a is n ot declared
425 * asynchronous.
426 */
427 static const CompileTimeErrorCode AWAIT_IN_WRONG_CONTEXT = const CompileTimeEr rorCode.con1('AWAIT_IN_WRONG_CONTEXT', 4, "The await expression can only be used in a function marked as async or async*");
428
429 /**
418 * 12.30 Identifier Reference: It is a compile-time error to use a built-in id entifier other than 430 * 12.30 Identifier Reference: It is a compile-time error to use a built-in id entifier other than
419 * dynamic as a type annotation. 431 * dynamic as a type annotation.
420 */ 432 */
421 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE = const CompileT imeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPE', 3, "The built-in identifier '{0 }' cannot be as a type"); 433 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE = const CompileT imeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPE', 5, "The built-in identifier '{0 }' cannot be as a type");
422 434
423 /** 435 /**
424 * 12.30 Identifier Reference: It is a compile-time error if a built-in identi fier is used as the 436 * 12.30 Identifier Reference: It is a compile-time error if a built-in identi fier is used as the
425 * declared name of a class, type parameter or type alias. 437 * declared name of a class, type parameter or type alias.
426 */ 438 */
427 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_NAME = const Com pileTimeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPE_NAME', 4, "The built-in iden tifier '{0}' cannot be used as a type name"); 439 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_NAME = const Com pileTimeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPE_NAME', 6, "The built-in iden tifier '{0}' cannot be used as a type name");
428 440
429 /** 441 /**
430 * 12.30 Identifier Reference: It is a compile-time error if a built-in identi fier is used as the 442 * 12.30 Identifier Reference: It is a compile-time error if a built-in identi fier is used as the
431 * declared name of a class, type parameter or type alias. 443 * declared name of a class, type parameter or type alias.
432 */ 444 */
433 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME = const CompileTimeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME', 5, "The built-i n identifier '{0}' cannot be used as a type alias name"); 445 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME = const CompileTimeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME', 7, "The built-i n identifier '{0}' cannot be used as a type alias name");
434 446
435 /** 447 /**
436 * 12.30 Identifier Reference: It is a compile-time error if a built-in identi fier is used as the 448 * 12.30 Identifier Reference: It is a compile-time error if a built-in identi fier is used as the
437 * declared name of a class, type parameter or type alias. 449 * declared name of a class, type parameter or type alias.
438 */ 450 */
439 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME = const CompileTimeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME', 6 , "The built-in identifier '{0}' cannot be used as a type parameter name"); 451 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME = const CompileTimeErrorCode.con1('BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME', 8 , "The built-in identifier '{0}' cannot be used as a type parameter name");
440 452
441 /** 453 /**
442 * 13.9 Switch: It is a compile-time error if the class <i>C</i> implements th e operator 454 * 13.9 Switch: It is a compile-time error if the class <i>C</i> implements th e operator
443 * <i>==</i>. 455 * <i>==</i>.
444 */ 456 */
445 static const CompileTimeErrorCode CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS = con st CompileTimeErrorCode.con1('CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS', 7, "The s witch case expression type '{0}' cannot override the == operator"); 457 static const CompileTimeErrorCode CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS = con st CompileTimeErrorCode.con1('CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS', 9, "The s witch case expression type '{0}' cannot override the == operator");
446 458
447 /** 459 /**
448 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time constant would raise 460 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time constant would raise
449 * an exception. 461 * an exception.
450 */ 462 */
451 static const CompileTimeErrorCode COMPILE_TIME_CONSTANT_RAISES_EXCEPTION = con st CompileTimeErrorCode.con1('COMPILE_TIME_CONSTANT_RAISES_EXCEPTION', 8, ""); 463 static const CompileTimeErrorCode COMPILE_TIME_CONSTANT_RAISES_EXCEPTION = con st CompileTimeErrorCode.con1('COMPILE_TIME_CONSTANT_RAISES_EXCEPTION', 10, "");
452 464
453 /** 465 /**
454 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same 466 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
455 * name. This restriction holds regardless of whether the getter is defined ex plicitly or 467 * name. This restriction holds regardless of whether the getter is defined ex plicitly or
456 * implicitly, or whether the getter or the method are inherited or not. 468 * implicitly, or whether the getter or the method are inherited or not.
457 */ 469 */
458 static const CompileTimeErrorCode CONFLICTING_GETTER_AND_METHOD = const Compil eTimeErrorCode.con1('CONFLICTING_GETTER_AND_METHOD', 9, "Class '{0}' cannot have both getter '{1}.{2}' and method with the same name"); 470 static const CompileTimeErrorCode CONFLICTING_GETTER_AND_METHOD = const Compil eTimeErrorCode.con1('CONFLICTING_GETTER_AND_METHOD', 11, "Class '{0}' cannot hav e both getter '{1}.{2}' and method with the same name");
459 471
460 /** 472 /**
461 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same 473 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
462 * name. This restriction holds regardless of whether the getter is defined ex plicitly or 474 * name. This restriction holds regardless of whether the getter is defined ex plicitly or
463 * implicitly, or whether the getter or the method are inherited or not. 475 * implicitly, or whether the getter or the method are inherited or not.
464 */ 476 */
465 static const CompileTimeErrorCode CONFLICTING_METHOD_AND_GETTER = const Compil eTimeErrorCode.con1('CONFLICTING_METHOD_AND_GETTER', 10, "Class '{0}' cannot hav e both method '{1}.{2}' and getter with the same name"); 477 static const CompileTimeErrorCode CONFLICTING_METHOD_AND_GETTER = const Compil eTimeErrorCode.con1('CONFLICTING_METHOD_AND_GETTER', 12, "Class '{0}' cannot hav e both method '{1}.{2}' and getter with the same name");
466 478
467 /** 479 /**
468 * 7.6 Constructors: A constructor name always begins with the name of its imm ediately enclosing 480 * 7.6 Constructors: A constructor name always begins with the name of its imm ediately enclosing
469 * class, and may optionally be followed by a dot and an identifier <i>id</i>. It is a 481 * class, and may optionally be followed by a dot and an identifier <i>id</i>. It is a
470 * compile-time error if <i>id</i> is the name of a member declared in the imm ediately enclosing 482 * compile-time error if <i>id</i> is the name of a member declared in the imm ediately enclosing
471 * class. 483 * class.
472 */ 484 */
473 static const CompileTimeErrorCode CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD = con st CompileTimeErrorCode.con1('CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD', 11, "'{0} ' cannot be used to name a constructor and a field in this class"); 485 static const CompileTimeErrorCode CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD = con st CompileTimeErrorCode.con1('CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD', 13, "'{0} ' cannot be used to name a constructor and a field in this class");
474 486
475 /** 487 /**
476 * 7.6 Constructors: A constructor name always begins with the name of its imm ediately enclosing 488 * 7.6 Constructors: A constructor name always begins with the name of its imm ediately enclosing
477 * class, and may optionally be followed by a dot and an identifier <i>id</i>. It is a 489 * class, and may optionally be followed by a dot and an identifier <i>id</i>. It is a
478 * compile-time error if <i>id</i> is the name of a member declared in the imm ediately enclosing 490 * compile-time error if <i>id</i> is the name of a member declared in the imm ediately enclosing
479 * class. 491 * class.
480 */ 492 */
481 static const CompileTimeErrorCode CONFLICTING_CONSTRUCTOR_NAME_AND_METHOD = co nst CompileTimeErrorCode.con1('CONFLICTING_CONSTRUCTOR_NAME_AND_METHOD', 12, "'{ 0}' cannot be used to name a constructor and a method in this class"); 493 static const CompileTimeErrorCode CONFLICTING_CONSTRUCTOR_NAME_AND_METHOD = co nst CompileTimeErrorCode.con1('CONFLICTING_CONSTRUCTOR_NAME_AND_METHOD', 14, "'{ 0}' cannot be used to name a constructor and a method in this class");
482 494
483 /** 495 /**
484 * 7. Classes: It is a compile time error if a generic class declares a type v ariable with the 496 * 7. Classes: It is a compile time error if a generic class declares a type v ariable with the
485 * same name as the class or any of its members or constructors. 497 * same name as the class or any of its members or constructors.
486 */ 498 */
487 static const CompileTimeErrorCode CONFLICTING_TYPE_VARIABLE_AND_CLASS = const CompileTimeErrorCode.con1('CONFLICTING_TYPE_VARIABLE_AND_CLASS', 13, "'{0}' cann ot be used to name a type varaible in a class with the same name"); 499 static const CompileTimeErrorCode CONFLICTING_TYPE_VARIABLE_AND_CLASS = const CompileTimeErrorCode.con1('CONFLICTING_TYPE_VARIABLE_AND_CLASS', 15, "'{0}' cann ot be used to name a type varaible in a class with the same name");
488 500
489 /** 501 /**
490 * 7. Classes: It is a compile time error if a generic class declares a type v ariable with the 502 * 7. Classes: It is a compile time error if a generic class declares a type v ariable with the
491 * same name as the class or any of its members or constructors. 503 * same name as the class or any of its members or constructors.
492 */ 504 */
493 static const CompileTimeErrorCode CONFLICTING_TYPE_VARIABLE_AND_MEMBER = const CompileTimeErrorCode.con1('CONFLICTING_TYPE_VARIABLE_AND_MEMBER', 14, "'{0}' ca nnot be used to name a type varaible and member in this class"); 505 static const CompileTimeErrorCode CONFLICTING_TYPE_VARIABLE_AND_MEMBER = const CompileTimeErrorCode.con1('CONFLICTING_TYPE_VARIABLE_AND_MEMBER', 16, "'{0}' ca nnot be used to name a type varaible and member in this class");
494 506
495 /** 507 /**
496 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 508 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
497 * uncaught exception being thrown. 509 * uncaught exception being thrown.
498 */ 510 */
499 static const CompileTimeErrorCode CONST_CONSTRUCTOR_THROWS_EXCEPTION = const C ompileTimeErrorCode.con1('CONST_CONSTRUCTOR_THROWS_EXCEPTION', 15, "'const' cons tructors cannot throw exceptions"); 511 static const CompileTimeErrorCode CONST_CONSTRUCTOR_THROWS_EXCEPTION = const C ompileTimeErrorCode.con1('CONST_CONSTRUCTOR_THROWS_EXCEPTION', 17, "'const' cons tructors cannot throw exceptions");
500 512
501 /** 513 /**
502 * 10.6.3 Constant Constructors: It is a compile-time error if a constant cons tructor is declared 514 * 10.6.3 Constant Constructors: It is a compile-time error if a constant cons tructor is declared
503 * by a class C if any instance variable declared in C is initialized with an expression that is 515 * by a class C if any instance variable declared in C is initialized with an expression that is
504 * not a constant expression. 516 * not a constant expression.
505 */ 517 */
506 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_FIELD_INITIALIZED_BY_ NON_CONST = const CompileTimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_FIELD_INITIA LIZED_BY_NON_CONST', 16, "Can't define the 'const' constructor because the field '{0}' is initialized with a non-constant value"); 518 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_FIELD_INITIALIZED_BY_ NON_CONST = const CompileTimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_FIELD_INITIA LIZED_BY_NON_CONST', 18, "Can't define the 'const' constructor because the field '{0}' is initialized with a non-constant value");
507 519
508 /** 520 /**
509 * 7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in 521 * 7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in
510 * the initializer list of a constant constructor must specify a constant cons tructor of the 522 * the initializer list of a constant constructor must specify a constant cons tructor of the
511 * superclass of the immediately enclosing class or a compile-time error occur s. 523 * superclass of the immediately enclosing class or a compile-time error occur s.
512 * 524 *
513 * 9 Mixins: For each generative constructor named ... an implicitly declared constructor named 525 * 9 Mixins: For each generative constructor named ... an implicitly declared constructor named
514 * ... is declared. 526 * ... is declared.
515 */ 527 */
516 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_MIXIN = const Compile TimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_MIXIN', 17, "Constant constructor can not be declared for a class with a mixin"); 528 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_MIXIN = const Compile TimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_MIXIN', 19, "Constant constructor can not be declared for a class with a mixin");
517 529
518 /** 530 /**
519 * 7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in 531 * 7.6.3 Constant Constructors: The superinitializer that appears, explicitly or implicitly, in
520 * the initializer list of a constant constructor must specify a constant cons tructor of the 532 * the initializer list of a constant constructor must specify a constant cons tructor of the
521 * superclass of the immediately enclosing class or a compile-time error occur s. 533 * superclass of the immediately enclosing class or a compile-time error occur s.
522 */ 534 */
523 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER = con st CompileTimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER', 18, "Cons tant constructor cannot call non-constant super constructor of '{0}'"); 535 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER = con st CompileTimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_NON_CONST_SUPER', 20, "Cons tant constructor cannot call non-constant super constructor of '{0}'");
524 536
525 /** 537 /**
526 * 7.6.3 Constant Constructors: It is a compile-time error if a constant const ructor is declared 538 * 7.6.3 Constant Constructors: It is a compile-time error if a constant const ructor is declared
527 * by a class that has a non-final instance variable. 539 * by a class that has a non-final instance variable.
528 * 540 *
529 * The above refers to both locally declared and inherited instance variables. 541 * The above refers to both locally declared and inherited instance variables.
530 */ 542 */
531 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD = con st CompileTimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD', 19, "Cann ot define the 'const' constructor for a class with non-final fields"); 543 static const CompileTimeErrorCode CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD = con st CompileTimeErrorCode.con1('CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD', 21, "Cann ot define the 'const' constructor for a class with non-final fields");
532 544
533 /** 545 /**
534 * 12.12.2 Const: It is a compile-time error if <i>T</i> is a deferred type. 546 * 12.12.2 Const: It is a compile-time error if <i>T</i> is a deferred type.
535 */ 547 */
536 static const CompileTimeErrorCode CONST_DEFERRED_CLASS = const CompileTimeErro rCode.con1('CONST_DEFERRED_CLASS', 20, "Deferred classes cannot be created with 'const'"); 548 static const CompileTimeErrorCode CONST_DEFERRED_CLASS = const CompileTimeErro rCode.con1('CONST_DEFERRED_CLASS', 22, "Deferred classes cannot be created with 'const'");
537 549
538 /** 550 /**
539 * 7.6.1 Generative Constructors: In checked mode, it is a dynamic type error if o is not 551 * 7.6.1 Generative Constructors: In checked mode, it is a dynamic type error if o is not
540 * <b>null</b> and the interface of the class of <i>o</i> is not a subtype of the static type of 552 * <b>null</b> and the interface of the class of <i>o</i> is not a subtype of the static type of
541 * the field <i>v</i>. 553 * the field <i>v</i>.
542 * 554 *
543 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 555 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
544 * uncaught exception being thrown. 556 * uncaught exception being thrown.
545 * 557 *
546 * @param initializerType the name of the type of the initializer expression 558 * @param initializerType the name of the type of the initializer expression
547 * @param fieldType the name of the type of the field 559 * @param fieldType the name of the type of the field
548 */ 560 */
549 static const CompileTimeErrorCode CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE = con st CompileTimeErrorCode.con1('CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE', 21, "The initializer type '{0}' cannot be assigned to the field type '{1}'"); 561 static const CompileTimeErrorCode CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE = con st CompileTimeErrorCode.con1('CONST_FIELD_INITIALIZER_NOT_ASSIGNABLE', 23, "The initializer type '{0}' cannot be assigned to the field type '{1}'");
550 562
551 /** 563 /**
552 * 6.2 Formal Parameters: It is a compile-time error if a formal parameter is declared as a 564 * 6.2 Formal Parameters: It is a compile-time error if a formal parameter is declared as a
553 * constant variable. 565 * constant variable.
554 */ 566 */
555 static const CompileTimeErrorCode CONST_FORMAL_PARAMETER = const CompileTimeEr rorCode.con1('CONST_FORMAL_PARAMETER', 22, "Parameters cannot be 'const'"); 567 static const CompileTimeErrorCode CONST_FORMAL_PARAMETER = const CompileTimeEr rorCode.con1('CONST_FORMAL_PARAMETER', 24, "Parameters cannot be 'const'");
556 568
557 /** 569 /**
558 * 5 Variables: A constant variable must be initialized to a compile-time cons tant or a 570 * 5 Variables: A constant variable must be initialized to a compile-time cons tant or a
559 * compile-time error occurs. 571 * compile-time error occurs.
560 */ 572 */
561 static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 23, "'const' variables must be constant value"); 573 static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE', 25, "'const' variables must be constant value");
562 574
563 /** 575 /**
564 * 5 Variables: A constant variable must be initialized to a compile-time cons tant or a 576 * 5 Variables: A constant variable must be initialized to a compile-time cons tant or a
565 * compile-time error occurs. 577 * compile-time error occurs.
566 * 578 *
567 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 579 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
568 * deferred prefix. 580 * deferred prefix.
569 */ 581 */
570 static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FR OM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NO N_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY', 24, "Constant values from a deferred li brary cannot be used to initialized a 'const' variable"); 582 static const CompileTimeErrorCode CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE_FR OM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('CONST_INITIALIZED_WITH_NO N_CONSTANT_VALUE_FROM_DEFERRED_LIBRARY', 26, "Constant values from a deferred li brary cannot be used to initialized a 'const' variable");
571 583
572 /** 584 /**
573 * 7.5 Instance Variables: It is a compile-time error if an instance variable is declared to be 585 * 7.5 Instance Variables: It is a compile-time error if an instance variable is declared to be
574 * constant. 586 * constant.
575 */ 587 */
576 static const CompileTimeErrorCode CONST_INSTANCE_FIELD = const CompileTimeErro rCode.con1('CONST_INSTANCE_FIELD', 25, "Only static fields can be declared as 'c onst'"); 588 static const CompileTimeErrorCode CONST_INSTANCE_FIELD = const CompileTimeErro rCode.con1('CONST_INSTANCE_FIELD', 27, "Only static fields can be declared as 'c onst'");
577 589
578 /** 590 /**
579 * 12.8 Maps: It is a compile-time error if the key of an entry in a constant map literal is an 591 * 12.8 Maps: It is a compile-time error if the key of an entry in a constant map literal is an
580 * instance of a class that implements the operator <i>==</i> unless the key i s a string or 592 * instance of a class that implements the operator <i>==</i> unless the key i s a string or
581 * integer. 593 * integer.
582 */ 594 */
583 static const CompileTimeErrorCode CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQU ALS = const CompileTimeErrorCode.con1('CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_ EQUALS', 26, "The constant map entry key expression type '{0}' cannot override t he == operator"); 595 static const CompileTimeErrorCode CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_EQU ALS = const CompileTimeErrorCode.con1('CONST_MAP_KEY_EXPRESSION_TYPE_IMPLEMENTS_ EQUALS', 28, "The constant map entry key expression type '{0}' cannot override t he == operator");
584 596
585 /** 597 /**
586 * 5 Variables: A constant variable must be initialized to a compile-time cons tant (12.1) or a 598 * 5 Variables: A constant variable must be initialized to a compile-time cons tant (12.1) or a
587 * compile-time error occurs. 599 * compile-time error occurs.
588 * 600 *
589 * @param name the name of the uninitialized final variable 601 * @param name the name of the uninitialized final variable
590 */ 602 */
591 static const CompileTimeErrorCode CONST_NOT_INITIALIZED = const CompileTimeErr orCode.con1('CONST_NOT_INITIALIZED', 27, "The const variable '{0}' must be initi alized"); 603 static const CompileTimeErrorCode CONST_NOT_INITIALIZED = const CompileTimeErr orCode.con1('CONST_NOT_INITIALIZED', 29, "The const variable '{0}' must be initi alized");
592 604
593 /** 605 /**
594 * 12.11.2 Const: An expression of one of the forms !e, e1 && e2 or e1 || e2, where e, e1 and e2 606 * 12.11.2 Const: An expression of one of the forms !e, e1 && e2 or e1 || e2, where e, e1 and e2
595 * are constant expressions that evaluate to a boolean value. 607 * are constant expressions that evaluate to a boolean value.
596 */ 608 */
597 static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL = const CompileTimeErro rCode.con1('CONST_EVAL_TYPE_BOOL', 28, "An expression of type 'bool' was expecte d"); 609 static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL = const CompileTimeErro rCode.con1('CONST_EVAL_TYPE_BOOL', 30, "An expression of type 'bool' was expecte d");
598 610
599 /** 611 /**
600 * 12.11.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where e1 and e2 are 612 * 12.11.2 Const: An expression of one of the forms e1 == e2 or e1 != e2 where e1 and e2 are
601 * constant expressions that evaluate to a numeric, string or boolean value or to null. 613 * constant expressions that evaluate to a numeric, string or boolean value or to null.
602 */ 614 */
603 static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING = const Comp ileTimeErrorCode.con1('CONST_EVAL_TYPE_BOOL_NUM_STRING', 29, "An expression of t ype 'bool', 'num', 'String' or 'null' was expected"); 615 static const CompileTimeErrorCode CONST_EVAL_TYPE_BOOL_NUM_STRING = const Comp ileTimeErrorCode.con1('CONST_EVAL_TYPE_BOOL_NUM_STRING', 31, "An expression of t ype 'bool', 'num', 'String' or 'null' was expected");
604 616
605 /** 617 /**
606 * 12.11.2 Const: An expression of one of the forms ~e, e1 ^ e2, e1 & e2, e1 | e2, e1 >> e2 or e1 618 * 12.11.2 Const: An expression of one of the forms ~e, e1 ^ e2, e1 & e2, e1 | e2, e1 >> e2 or e1
607 * << e2, where e, e1 and e2 are constant expressions that evaluate to an inte ger value or to 619 * << e2, where e, e1 and e2 are constant expressions that evaluate to an inte ger value or to
608 * null. 620 * null.
609 */ 621 */
610 static const CompileTimeErrorCode CONST_EVAL_TYPE_INT = const CompileTimeError Code.con1('CONST_EVAL_TYPE_INT', 30, "An expression of type 'int' was expected") ; 622 static const CompileTimeErrorCode CONST_EVAL_TYPE_INT = const CompileTimeError Code.con1('CONST_EVAL_TYPE_INT', 32, "An expression of type 'int' was expected") ;
611 623
612 /** 624 /**
613 * 12.11.2 Const: An expression of one of the forms e, e1 + e2, e1 - e2, e1 * e2, e1 / e2, e1 ~/ 625 * 12.11.2 Const: An expression of one of the forms e, e1 + e2, e1 - e2, e1 * e2, e1 / e2, e1 ~/
614 * e2, e1 > e2, e1 < e2, e1 >= e2, e1 <= e2 or e1 % e2, where e, e1 and e2 are constant 626 * e2, e1 > e2, e1 < e2, e1 >= e2, e1 <= e2 or e1 % e2, where e, e1 and e2 are constant
615 * expressions that evaluate to a numeric value or to null.. 627 * expressions that evaluate to a numeric value or to null..
616 */ 628 */
617 static const CompileTimeErrorCode CONST_EVAL_TYPE_NUM = const CompileTimeError Code.con1('CONST_EVAL_TYPE_NUM', 31, "An expression of type 'num' was expected") ; 629 static const CompileTimeErrorCode CONST_EVAL_TYPE_NUM = const CompileTimeError Code.con1('CONST_EVAL_TYPE_NUM', 33, "An expression of type 'num' was expected") ;
618 630
619 /** 631 /**
620 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 632 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
621 * uncaught exception being thrown. 633 * uncaught exception being thrown.
622 */ 634 */
623 static const CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = const CompileT imeErrorCode.con1('CONST_EVAL_THROWS_EXCEPTION', 32, "Evaluation of this constan t expression causes exception"); 635 static const CompileTimeErrorCode CONST_EVAL_THROWS_EXCEPTION = const CompileT imeErrorCode.con1('CONST_EVAL_THROWS_EXCEPTION', 34, "Evaluation of this constan t expression causes exception");
624 636
625 /** 637 /**
626 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 638 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
627 * uncaught exception being thrown. 639 * uncaught exception being thrown.
628 */ 640 */
629 static const CompileTimeErrorCode CONST_EVAL_THROWS_IDBZE = const CompileTimeE rrorCode.con1('CONST_EVAL_THROWS_IDBZE', 33, "Evaluation of this constant expres sion throws IntegerDivisionByZeroException"); 641 static const CompileTimeErrorCode CONST_EVAL_THROWS_IDBZE = const CompileTimeE rrorCode.con1('CONST_EVAL_THROWS_IDBZE', 35, "Evaluation of this constant expres sion throws IntegerDivisionByZeroException");
630 642
631 /** 643 /**
632 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S&lt;U<sub>1</sub>, & hellip;, 644 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S&lt;U<sub>1</sub>, & hellip;,
633 * U<sub>m</sub>&gt;</i>, let <i>R = S</i>; It is a compile time error if <i>S </i> is not a 645 * U<sub>m</sub>&gt;</i>, let <i>R = S</i>; It is a compile time error if <i>S </i> is not a
634 * generic type with <i>m</i> type parameters. 646 * generic type with <i>m</i> type parameters.
635 * 647 *
636 * @param typeName the name of the type being referenced (<i>S</i>) 648 * @param typeName the name of the type being referenced (<i>S</i>)
637 * @param parameterCount the number of type parameters that were declared 649 * @param parameterCount the number of type parameters that were declared
638 * @param argumentCount the number of type arguments provided 650 * @param argumentCount the number of type arguments provided
639 * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS 651 * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS
640 * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS 652 * @see StaticTypeWarningCode#WRONG_NUMBER_OF_TYPE_ARGUMENTS
641 */ 653 */
642 static const CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = const C ompileTimeErrorCode.con1('CONST_WITH_INVALID_TYPE_PARAMETERS', 34, "The type '{0 }' is declared with {1} type parameters, but {2} type arguments were given"); 654 static const CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = const C ompileTimeErrorCode.con1('CONST_WITH_INVALID_TYPE_PARAMETERS', 36, "The type '{0 }' is declared with {1} type parameters, but {2} type arguments were given");
643 655
644 /** 656 /**
645 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, &hellip ;, a<sub>n</sub>, 657 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, &hellip ;, a<sub>n</sub>,
646 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a 658 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, x<sub>n+k</sub>: a<sub>n+k</sub >)</i> it is a
647 * compile-time error if the type <i>T</i> does not declare a constant constru ctor with the same 659 * compile-time error if the type <i>T</i> does not declare a constant constru ctor with the same
648 * name as the declaration of <i>T</i>. 660 * name as the declaration of <i>T</i>.
649 */ 661 */
650 static const CompileTimeErrorCode CONST_WITH_NON_CONST = const CompileTimeErro rCode.con1('CONST_WITH_NON_CONST', 35, "The constructor being called is not a 'c onst' constructor"); 662 static const CompileTimeErrorCode CONST_WITH_NON_CONST = const CompileTimeErro rCode.con1('CONST_WITH_NON_CONST', 37, "The constructor being called is not a 'c onst' constructor");
651 663
652 /** 664 /**
653 * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i> a<sub>i</sub>, 1 665 * 12.11.2 Const: In all of the above cases, it is a compile-time error if <i> a<sub>i</sub>, 1
654 * &lt;= i &lt;= n + k</i>, is not a compile-time constant expression. 666 * &lt;= i &lt;= n + k</i>, is not a compile-time constant expression.
655 */ 667 */
656 static const CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = const Com pileTimeErrorCode.con1('CONST_WITH_NON_CONSTANT_ARGUMENT', 36, "Arguments of a c onstant creation must be constant expressions"); 668 static const CompileTimeErrorCode CONST_WITH_NON_CONSTANT_ARGUMENT = const Com pileTimeErrorCode.con1('CONST_WITH_NON_CONSTANT_ARGUMENT', 38, "Arguments of a c onstant creation must be constant expressions");
657 669
658 /** 670 /**
659 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current 671 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current
660 * scope, optionally followed by type arguments. 672 * scope, optionally followed by type arguments.
661 * 673 *
662 * 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>, 674 * 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>,
663 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+k</sub> )</i> it is a 675 * x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip; x<sub>n+k</sub>: a<sub>n+k</sub> )</i> it is a
664 * compile-time error if <i>T</i> is not a class accessible in the current sco pe, optionally 676 * compile-time error if <i>T</i> is not a class accessible in the current sco pe, optionally
665 * followed by type arguments. 677 * followed by type arguments.
666 * 678 *
667 * @param name the name of the non-type element 679 * @param name the name of the non-type element
668 */ 680 */
669 static const CompileTimeErrorCode CONST_WITH_NON_TYPE = const CompileTimeError Code.con1('CONST_WITH_NON_TYPE', 37, "The name '{0}' is not a class"); 681 static const CompileTimeErrorCode CONST_WITH_NON_TYPE = const CompileTimeError Code.con1('CONST_WITH_NON_TYPE', 39, "The name '{0}' is not a class");
670 682
671 /** 683 /**
672 * 12.11.2 Const: It is a compile-time error if <i>T</i> includes any type par ameters. 684 * 12.11.2 Const: It is a compile-time error if <i>T</i> includes any type par ameters.
673 */ 685 */
674 static const CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = const CompileTi meErrorCode.con1('CONST_WITH_TYPE_PARAMETERS', 38, "The constant creation cannot use a type parameter"); 686 static const CompileTimeErrorCode CONST_WITH_TYPE_PARAMETERS = const CompileTi meErrorCode.con1('CONST_WITH_TYPE_PARAMETERS', 40, "The constant creation cannot use a type parameter");
675 687
676 /** 688 /**
677 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant 689 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant
678 * constructor declared by the type <i>T</i>. 690 * constructor declared by the type <i>T</i>.
679 * 691 *
680 * @param typeName the name of the type 692 * @param typeName the name of the type
681 * @param constructorName the name of the requested constant constructor 693 * @param constructorName the name of the requested constant constructor
682 */ 694 */
683 static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = const Com pileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR', 39, "The class '{0}' does not have a constant constructor '{1}'"); 695 static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR = const Com pileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR', 41, "The class '{0}' does not have a constant constructor '{1}'");
684 696
685 /** 697 /**
686 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant 698 * 12.11.2 Const: It is a compile-time error if <i>T.id</i> is not the name of a constant
687 * constructor declared by the type <i>T</i>. 699 * constructor declared by the type <i>T</i>.
688 * 700 *
689 * @param typeName the name of the type 701 * @param typeName the name of the type
690 */ 702 */
691 static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = c onst CompileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 40, " The class '{0}' does not have a default constant constructor"); 703 static const CompileTimeErrorCode CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = c onst CompileTimeErrorCode.con1('CONST_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 42, " The class '{0}' does not have a default constant constructor");
692 704
693 /** 705 /**
694 * 15.3.1 Typedef: It is a compile-time error if any default values are specif ied in the signature 706 * 15.3.1 Typedef: It is a compile-time error if any default values are specif ied in the signature
695 * of a function type alias. 707 * of a function type alias.
696 */ 708 */
697 static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 41, "Default values aren't allowed in typedefs"); 709 static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS', 43, "Default values aren't allowed in typedefs");
698 710
699 /** 711 /**
700 * 6.2.1 Required Formals: By means of a function signature that names the par ameter and describes 712 * 6.2.1 Required Formals: By means of a function signature that names the par ameter and describes
701 * its type as a function type. It is a compile-time error if any default valu es are specified in 713 * its type as a function type. It is a compile-time error if any default valu es are specified in
702 * the signature of such a function type. 714 * the signature of such a function type.
703 */ 715 */
704 static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER', 42, "Default values aren't allowed in function type parameters"); 716 static const CompileTimeErrorCode DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER', 44, "Default values aren't allowed in function type parameters");
705 717
706 /** 718 /**
707 * 7.6.2 Factories: It is a compile-time error if <i>k</i> explicitly specifie s a default value 719 * 7.6.2 Factories: It is a compile-time error if <i>k</i> explicitly specifie s a default value
708 * for an optional parameter. 720 * for an optional parameter.
709 */ 721 */
710 static const CompileTimeErrorCode DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRU CTOR = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CON STRUCTOR', 43, "Default values aren't allowed in factory constructors that redir ect to another constructor"); 722 static const CompileTimeErrorCode DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CONSTRU CTOR = const CompileTimeErrorCode.con1('DEFAULT_VALUE_IN_REDIRECTING_FACTORY_CON STRUCTOR', 45, "Default values aren't allowed in factory constructors that redir ect to another constructor");
711 723
712 /** 724 /**
713 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name 725 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name
714 * declared in the same scope. 726 * declared in the same scope.
715 */ 727 */
716 static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_DEFAULT = const Compil eTimeErrorCode.con1('DUPLICATE_CONSTRUCTOR_DEFAULT', 44, "The default constructo r is already defined"); 728 static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_DEFAULT = const Compil eTimeErrorCode.con1('DUPLICATE_CONSTRUCTOR_DEFAULT', 46, "The default constructo r is already defined");
717 729
718 /** 730 /**
719 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name 731 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name
720 * declared in the same scope. 732 * declared in the same scope.
721 * 733 *
722 * @param duplicateName the name of the duplicate entity 734 * @param duplicateName the name of the duplicate entity
723 */ 735 */
724 static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_NAME = const CompileTi meErrorCode.con1('DUPLICATE_CONSTRUCTOR_NAME', 45, "The constructor with name '{ 0}' is already defined"); 736 static const CompileTimeErrorCode DUPLICATE_CONSTRUCTOR_NAME = const CompileTi meErrorCode.con1('DUPLICATE_CONSTRUCTOR_NAME', 47, "The constructor with name '{ 0}' is already defined");
725 737
726 /** 738 /**
727 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name 739 * 3.1 Scoping: It is a compile-time error if there is more than one entity wi th the same name
728 * declared in the same scope. 740 * declared in the same scope.
729 * 741 *
730 * 7 Classes: It is a compile-time error if a class declares two members of th e same name. 742 * 7 Classes: It is a compile-time error if a class declares two members of th e same name.
731 * 743 *
732 * 7 Classes: It is a compile-time error if a class has an instance member and a static member 744 * 7 Classes: It is a compile-time error if a class has an instance member and a static member
733 * with the same name. 745 * with the same name.
734 * 746 *
735 * @param duplicateName the name of the duplicate entity 747 * @param duplicateName the name of the duplicate entity
736 */ 748 */
737 static const CompileTimeErrorCode DUPLICATE_DEFINITION = const CompileTimeErro rCode.con1('DUPLICATE_DEFINITION', 46, "The name '{0}' is already defined"); 749 static const CompileTimeErrorCode DUPLICATE_DEFINITION = const CompileTimeErro rCode.con1('DUPLICATE_DEFINITION', 48, "The name '{0}' is already defined");
738 750
739 /** 751 /**
740 * 7. Classes: It is a compile-time error if a class has an instance member an d a static member 752 * 7. Classes: It is a compile-time error if a class has an instance member an d a static member
741 * with the same name. 753 * with the same name.
742 * 754 *
743 * This covers the additional duplicate definition cases where inheritance has to be considered. 755 * This covers the additional duplicate definition cases where inheritance has to be considered.
744 * 756 *
745 * @param className the name of the class that has conflicting instance/static members 757 * @param className the name of the class that has conflicting instance/static members
746 * @param name the name of the conflicting members 758 * @param name the name of the conflicting members
747 * @see #DUPLICATE_DEFINITION 759 * @see #DUPLICATE_DEFINITION
748 */ 760 */
749 static const CompileTimeErrorCode DUPLICATE_DEFINITION_INHERITANCE = const Com pileTimeErrorCode.con1('DUPLICATE_DEFINITION_INHERITANCE', 47, "The name '{0}' i s already defined in '{1}'"); 761 static const CompileTimeErrorCode DUPLICATE_DEFINITION_INHERITANCE = const Com pileTimeErrorCode.con1('DUPLICATE_DEFINITION_INHERITANCE', 49, "The name '{0}' i s already defined in '{1}'");
750 762
751 /** 763 /**
752 * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub> i</sub> = 764 * 12.14.2 Binding Actuals to Formals: It is a compile-time error if <i>q<sub> i</sub> =
753 * q<sub>j</sub></i> for any <i>i != j</i> [where <i>q<sub>i</sub></i> is the label for a named 765 * q<sub>j</sub></i> for any <i>i != j</i> [where <i>q<sub>i</sub></i> is the label for a named
754 * argument]. 766 * argument].
755 */ 767 */
756 static const CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = const CompileTime ErrorCode.con1('DUPLICATE_NAMED_ARGUMENT', 48, "The argument for the named param eter '{0}' was already specified"); 768 static const CompileTimeErrorCode DUPLICATE_NAMED_ARGUMENT = const CompileTime ErrorCode.con1('DUPLICATE_NAMED_ARGUMENT', 50, "The argument for the named param eter '{0}' was already specified");
757 769
758 /** 770 /**
759 * SDK implementation libraries can be exported only by other SDK libraries. 771 * SDK implementation libraries can be exported only by other SDK libraries.
760 * 772 *
761 * @param uri the uri pointing to a library 773 * @param uri the uri pointing to a library
762 */ 774 */
763 static const CompileTimeErrorCode EXPORT_INTERNAL_LIBRARY = const CompileTimeE rrorCode.con1('EXPORT_INTERNAL_LIBRARY', 49, "The library '{0}' is internal and cannot be exported"); 775 static const CompileTimeErrorCode EXPORT_INTERNAL_LIBRARY = const CompileTimeE rrorCode.con1('EXPORT_INTERNAL_LIBRARY', 51, "The library '{0}' is internal and cannot be exported");
764 776
765 /** 777 /**
766 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 778 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
767 * not a library declaration. 779 * not a library declaration.
768 * 780 *
769 * @param uri the uri pointing to a non-library declaration 781 * @param uri the uri pointing to a non-library declaration
770 */ 782 */
771 static const CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = const CompileTimeErr orCode.con1('EXPORT_OF_NON_LIBRARY', 50, "The exported library '{0}' must not ha ve a part-of directive"); 783 static const CompileTimeErrorCode EXPORT_OF_NON_LIBRARY = const CompileTimeErr orCode.con1('EXPORT_OF_NON_LIBRARY', 52, "The exported library '{0}' must not ha ve a part-of directive");
772 784
773 /** 785 /**
774 * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum. 786 * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum.
775 */ 787 */
776 static const CompileTimeErrorCode EXTENDS_ENUM = const CompileTimeErrorCode.co n1('EXTENDS_ENUM', 51, "Classes cannot extend an enum"); 788 static const CompileTimeErrorCode EXTENDS_ENUM = const CompileTimeErrorCode.co n1('EXTENDS_ENUM', 53, "Classes cannot extend an enum");
777 789
778 /** 790 /**
779 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes 791 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes
780 * a type expression that does not denote a class available in the lexical sco pe of <i>C</i>. 792 * a type expression that does not denote a class available in the lexical sco pe of <i>C</i>.
781 * 793 *
782 * @param typeName the name of the superclass that was not found 794 * @param typeName the name of the superclass that was not found
783 */ 795 */
784 static const CompileTimeErrorCode EXTENDS_NON_CLASS = const CompileTimeErrorCo de.con1('EXTENDS_NON_CLASS', 52, "Classes can only extend other classes"); 796 static const CompileTimeErrorCode EXTENDS_NON_CLASS = const CompileTimeErrorCo de.con1('EXTENDS_NON_CLASS', 54, "Classes can only extend other classes");
785 797
786 /** 798 /**
787 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null. 799 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null.
788 * 800 *
789 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int. 801 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int.
790 * 802 *
791 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double. 803 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double.
792 * 804 *
793 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to 805 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to
794 * attempt to extend or implement num. 806 * attempt to extend or implement num.
795 * 807 *
796 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool. 808 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.
797 * 809 *
798 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String. 810 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String.
799 * 811 *
800 * @param typeName the name of the type that cannot be extended 812 * @param typeName the name of the type that cannot be extended
801 * @see #IMPLEMENTS_DISALLOWED_CLASS 813 * @see #IMPLEMENTS_DISALLOWED_CLASS
802 */ 814 */
803 static const CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = const CompileTime ErrorCode.con1('EXTENDS_DISALLOWED_CLASS', 53, "Classes cannot extend '{0}'"); 815 static const CompileTimeErrorCode EXTENDS_DISALLOWED_CLASS = const CompileTime ErrorCode.con1('EXTENDS_DISALLOWED_CLASS', 55, "Classes cannot extend '{0}'");
804 816
805 /** 817 /**
806 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes 818 * 7.9 Superclasses: It is a compile-time error if the extends clause of a cla ss <i>C</i> includes
807 * a deferred type expression. 819 * a deferred type expression.
808 * 820 *
809 * @param typeName the name of the type that cannot be extended 821 * @param typeName the name of the type that cannot be extended
810 * @see #IMPLEMENTS_DEFERRED_CLASS 822 * @see #IMPLEMENTS_DEFERRED_CLASS
811 * @see #MIXIN_DEFERRED_CLASS 823 * @see #MIXIN_DEFERRED_CLASS
812 */ 824 */
813 static const CompileTimeErrorCode EXTENDS_DEFERRED_CLASS = const CompileTimeEr rorCode.con1('EXTENDS_DEFERRED_CLASS', 54, "This class cannot extend the deferre d class '{0}'"); 825 static const CompileTimeErrorCode EXTENDS_DEFERRED_CLASS = const CompileTimeEr rorCode.con1('EXTENDS_DEFERRED_CLASS', 56, "This class cannot extend the deferre d class '{0}'");
814 826
815 /** 827 /**
816 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt; 828 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m &lt; h</ i> or if <i>m &gt;
817 * n</i>. 829 * n</i>.
818 * 830 *
819 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 831 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
820 * uncaught exception being thrown. 832 * uncaught exception being thrown.
821 * 833 *
822 * @param requiredCount the maximum number of positional arguments 834 * @param requiredCount the maximum number of positional arguments
823 * @param argumentCount the actual number of positional arguments given 835 * @param argumentCount the actual number of positional arguments given
824 */ 836 */
825 static const CompileTimeErrorCode EXTRA_POSITIONAL_ARGUMENTS = const CompileTi meErrorCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 55, "{0} positional arguments exp ected, but {1} found"); 837 static const CompileTimeErrorCode EXTRA_POSITIONAL_ARGUMENTS = const CompileTi meErrorCode.con1('EXTRA_POSITIONAL_ARGUMENTS', 57, "{0} positional arguments exp ected, but {1} found");
826 838
827 /** 839 /**
828 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 840 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
829 * error if more than one initializer corresponding to a given instance variab le appears in 841 * error if more than one initializer corresponding to a given instance variab le appears in
830 * <i>k</i>'s list. 842 * <i>k</i>'s list.
831 */ 843 */
832 static const CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 5 6, "The field '{0}' cannot be initialized twice in the same constructor"); 844 static const CompileTimeErrorCode FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_BY_MULTIPLE_INITIALIZERS', 5 8, "The field '{0}' cannot be initialized twice in the same constructor");
833 845
834 /** 846 /**
835 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time 847 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile time
836 * error if <i>k</i>'s initializer list contains an initializer for a variable that is initialized 848 * error if <i>k</i>'s initializer list contains an initializer for a variable that is initialized
837 * by means of an initializing formal of <i>k</i>. 849 * by means of an initializing formal of <i>k</i>.
838 */ 850 */
839 static const CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ ER = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIAL IZER', 57, "Fields cannot be initialized in both the parameter list and the init ializers"); 851 static const CompileTimeErrorCode FIELD_INITIALIZED_IN_PARAMETER_AND_INITIALIZ ER = const CompileTimeErrorCode.con1('FIELD_INITIALIZED_IN_PARAMETER_AND_INITIAL IZER', 59, "Fields cannot be initialized in both the parameter list and the init ializers");
840 852
841 /** 853 /**
842 * 5 Variables: It is a compile-time error if a final instance variable that h as is initialized by 854 * 5 Variables: It is a compile-time error if a final instance variable that h as is initialized by
843 * means of an initializing formal of a constructor is also initialized elsewh ere in the same 855 * means of an initializing formal of a constructor is also initialized elsewh ere in the same
844 * constructor. 856 * constructor.
845 * 857 *
846 * @param name the name of the field in question 858 * @param name the name of the field in question
847 */ 859 */
848 static const CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = const Com pileTimeErrorCode.con1('FINAL_INITIALIZED_MULTIPLE_TIMES', 58, "'{0}' is a final field and so can only be set once"); 860 static const CompileTimeErrorCode FINAL_INITIALIZED_MULTIPLE_TIMES = const Com pileTimeErrorCode.con1('FINAL_INITIALIZED_MULTIPLE_TIMES', 60, "'{0}' is a final field and so can only be set once");
849 861
850 /** 862 /**
851 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 863 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
852 * a function other than a non-redirecting generative constructor. 864 * a function other than a non-redirecting generative constructor.
853 */ 865 */
854 static const CompileTimeErrorCode FIELD_INITIALIZER_FACTORY_CONSTRUCTOR = cons t CompileTimeErrorCode.con1('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', 59, "Initia lizing formal fields cannot be used in factory constructors"); 866 static const CompileTimeErrorCode FIELD_INITIALIZER_FACTORY_CONSTRUCTOR = cons t CompileTimeErrorCode.con1('FIELD_INITIALIZER_FACTORY_CONSTRUCTOR', 61, "Initia lizing formal fields cannot be used in factory constructors");
855 867
856 /** 868 /**
857 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 869 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
858 * a function other than a non-redirecting generative constructor. 870 * a function other than a non-redirecting generative constructor.
859 */ 871 */
860 static const CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = cons t CompileTimeErrorCode.con1('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 60, "Initia lizing formal fields can only be used in constructors"); 872 static const CompileTimeErrorCode FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR = cons t CompileTimeErrorCode.con1('FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR', 62, "Initia lizing formal fields can only be used in constructors");
861 873
862 /** 874 /**
863 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its 875 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
864 * only action is to invoke another generative constructor. 876 * only action is to invoke another generative constructor.
865 * 877 *
866 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by 878 * 7.6.1 Generative Constructors: It is a compile-time error if an initializin g formal is used by
867 * a function other than a non-redirecting generative constructor. 879 * a function other than a non-redirecting generative constructor.
868 */ 880 */
869 static const CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', 61, "The redirecting constructor cannot have a field initializer"); 881 static const CompileTimeErrorCode FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR = const CompileTimeErrorCode.con1('FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR', 63, "The redirecting constructor cannot have a field initializer");
870 882
871 /** 883 /**
872 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same 884 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
873 * name. 885 * name.
874 * 886 *
875 * @param name the conflicting name of the getter and method 887 * @param name the conflicting name of the getter and method
876 */ 888 */
877 static const CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = const Com pileTimeErrorCode.con1('GETTER_AND_METHOD_WITH_SAME_NAME', 62, "'{0}' cannot be used to name a getter, there is already a method with the same name"); 889 static const CompileTimeErrorCode GETTER_AND_METHOD_WITH_SAME_NAME = const Com pileTimeErrorCode.con1('GETTER_AND_METHOD_WITH_SAME_NAME', 64, "'{0}' cannot be used to name a getter, there is already a method with the same name");
878 890
879 /** 891 /**
880 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class <i>C</i> 892 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class <i>C</i>
881 * specifies a malformed type or deferred type as a superinterface. 893 * specifies a malformed type or deferred type as a superinterface.
882 * 894 *
883 * @param typeName the name of the type that cannot be extended 895 * @param typeName the name of the type that cannot be extended
884 * @see #EXTENDS_DEFERRED_CLASS 896 * @see #EXTENDS_DEFERRED_CLASS
885 * @see #MIXIN_DEFERRED_CLASS 897 * @see #MIXIN_DEFERRED_CLASS
886 */ 898 */
887 static const CompileTimeErrorCode IMPLEMENTS_DEFERRED_CLASS = const CompileTim eErrorCode.con1('IMPLEMENTS_DEFERRED_CLASS', 63, "This class cannot implement th e deferred class '{0}'"); 899 static const CompileTimeErrorCode IMPLEMENTS_DEFERRED_CLASS = const CompileTim eErrorCode.con1('IMPLEMENTS_DEFERRED_CLASS', 65, "This class cannot implement th e deferred class '{0}'");
888 900
889 /** 901 /**
890 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null. 902 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null.
891 * 903 *
892 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int. 904 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int.
893 * 905 *
894 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double. 906 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double.
895 * 907 *
896 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to 908 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to
897 * attempt to extend or implement num. 909 * attempt to extend or implement num.
898 * 910 *
899 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool. 911 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.
900 * 912 *
901 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String. 913 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String.
902 * 914 *
903 * @param typeName the name of the type that cannot be implemented 915 * @param typeName the name of the type that cannot be implemented
904 * @see #EXTENDS_DISALLOWED_CLASS 916 * @see #EXTENDS_DISALLOWED_CLASS
905 */ 917 */
906 static const CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = const CompileT imeErrorCode.con1('IMPLEMENTS_DISALLOWED_CLASS', 64, "Classes cannot implement ' {0}'"); 918 static const CompileTimeErrorCode IMPLEMENTS_DISALLOWED_CLASS = const CompileT imeErrorCode.con1('IMPLEMENTS_DISALLOWED_CLASS', 66, "Classes cannot implement ' {0}'");
907 919
908 /** 920 /**
909 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class includes 921 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class includes
910 * type dynamic. 922 * type dynamic.
911 */ 923 */
912 static const CompileTimeErrorCode IMPLEMENTS_DYNAMIC = const CompileTimeErrorC ode.con1('IMPLEMENTS_DYNAMIC', 65, "Classes cannot implement 'dynamic'"); 924 static const CompileTimeErrorCode IMPLEMENTS_DYNAMIC = const CompileTimeErrorC ode.con1('IMPLEMENTS_DYNAMIC', 67, "Classes cannot implement 'dynamic'");
913 925
914 /** 926 /**
915 * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum. 927 * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum.
916 */ 928 */
917 static const CompileTimeErrorCode IMPLEMENTS_ENUM = const CompileTimeErrorCode .con1('IMPLEMENTS_ENUM', 66, "Classes cannot implement an enum"); 929 static const CompileTimeErrorCode IMPLEMENTS_ENUM = const CompileTimeErrorCode .con1('IMPLEMENTS_ENUM', 68, "Classes cannot implement an enum");
918 930
919 /** 931 /**
920 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class <i>C</i> 932 * 7.10 Superinterfaces: It is a compile-time error if the implements clause o f a class <i>C</i>
921 * includes a type expression that does not denote a class available in the le xical scope of 933 * includes a type expression that does not denote a class available in the le xical scope of
922 * <i>C</i>. 934 * <i>C</i>.
923 * 935 *
924 * @param typeName the name of the interface that was not found 936 * @param typeName the name of the interface that was not found
925 */ 937 */
926 static const CompileTimeErrorCode IMPLEMENTS_NON_CLASS = const CompileTimeErro rCode.con1('IMPLEMENTS_NON_CLASS', 67, "Classes can only implement other classes "); 938 static const CompileTimeErrorCode IMPLEMENTS_NON_CLASS = const CompileTimeErro rCode.con1('IMPLEMENTS_NON_CLASS', 69, "Classes can only implement other classes ");
927 939
928 /** 940 /**
929 * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears more than once in 941 * 7.10 Superinterfaces: It is a compile-time error if a type <i>T</i> appears more than once in
930 * the implements clause of a class. 942 * the implements clause of a class.
931 * 943 *
932 * @param className the name of the class that is implemented more than once 944 * @param className the name of the class that is implemented more than once
933 */ 945 */
934 static const CompileTimeErrorCode IMPLEMENTS_REPEATED = const CompileTimeError Code.con1('IMPLEMENTS_REPEATED', 68, "'{0}' can only be implemented once"); 946 static const CompileTimeErrorCode IMPLEMENTS_REPEATED = const CompileTimeError Code.con1('IMPLEMENTS_REPEATED', 70, "'{0}' can only be implemented once");
935 947
936 /** 948 /**
937 * 7.10 Superinterfaces: It is a compile-time error if the superclass of a cla ss <i>C</i> appears 949 * 7.10 Superinterfaces: It is a compile-time error if the superclass of a cla ss <i>C</i> appears
938 * in the implements clause of <i>C</i>. 950 * in the implements clause of <i>C</i>.
939 * 951 *
940 * @param className the name of the class that appears in both "extends" and " implements" clauses 952 * @param className the name of the class that appears in both "extends" and " implements" clauses
941 */ 953 */
942 static const CompileTimeErrorCode IMPLEMENTS_SUPER_CLASS = const CompileTimeEr rorCode.con1('IMPLEMENTS_SUPER_CLASS', 69, "'{0}' cannot be used in both 'extend s' and 'implements' clauses"); 954 static const CompileTimeErrorCode IMPLEMENTS_SUPER_CLASS = const CompileTimeEr rorCode.con1('IMPLEMENTS_SUPER_CLASS', 71, "'{0}' cannot be used in both 'extend s' and 'implements' clauses");
943 955
944 /** 956 /**
945 * 7.6.1 Generative Constructors: Note that <b>this</b> is not in scope on the right hand side of 957 * 7.6.1 Generative Constructors: Note that <b>this</b> is not in scope on the right hand side of
946 * an initializer. 958 * an initializer.
947 * 959 *
948 * 12.10 This: It is a compile-time error if this appears in a top-level funct ion or variable 960 * 12.10 This: It is a compile-time error if this appears in a top-level funct ion or variable
949 * initializer, in a factory constructor, or in a static method or variable in itializer, or in the 961 * initializer, in a factory constructor, or in a static method or variable in itializer, or in the
950 * initializer of an instance variable. 962 * initializer of an instance variable.
951 * 963 *
952 * @param name the name of the type in question 964 * @param name the name of the type in question
953 */ 965 */
954 static const CompileTimeErrorCode IMPLICIT_THIS_REFERENCE_IN_INITIALIZER = con st CompileTimeErrorCode.con1('IMPLICIT_THIS_REFERENCE_IN_INITIALIZER', 70, "Only static members can be accessed in initializers"); 966 static const CompileTimeErrorCode IMPLICIT_THIS_REFERENCE_IN_INITIALIZER = con st CompileTimeErrorCode.con1('IMPLICIT_THIS_REFERENCE_IN_INITIALIZER', 72, "Only static members can be accessed in initializers");
955 967
956 /** 968 /**
957 * SDK implementation libraries can be imported only by other SDK libraries. 969 * SDK implementation libraries can be imported only by other SDK libraries.
958 * 970 *
959 * @param uri the uri pointing to a library 971 * @param uri the uri pointing to a library
960 */ 972 */
961 static const CompileTimeErrorCode IMPORT_INTERNAL_LIBRARY = const CompileTimeE rrorCode.con1('IMPORT_INTERNAL_LIBRARY', 71, "The library '{0}' is internal and cannot be imported"); 973 static const CompileTimeErrorCode IMPORT_INTERNAL_LIBRARY = const CompileTimeE rrorCode.con1('IMPORT_INTERNAL_LIBRARY', 73, "The library '{0}' is internal and cannot be imported");
962 974
963 /** 975 /**
964 * 14.1 Imports: It is a compile-time error if the specified URI of an immedia te import does not 976 * 14.1 Imports: It is a compile-time error if the specified URI of an immedia te import does not
965 * refer to a library declaration. 977 * refer to a library declaration.
966 * 978 *
967 * @param uri the uri pointing to a non-library declaration 979 * @param uri the uri pointing to a non-library declaration
968 * @see StaticWarningCode#IMPORT_OF_NON_LIBRARY 980 * @see StaticWarningCode#IMPORT_OF_NON_LIBRARY
969 */ 981 */
970 static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = const CompileTimeErr orCode.con1('IMPORT_OF_NON_LIBRARY', 72, "The imported library '{0}' must not ha ve a part-of directive"); 982 static const CompileTimeErrorCode IMPORT_OF_NON_LIBRARY = const CompileTimeErr orCode.con1('IMPORT_OF_NON_LIBRARY', 74, "The imported library '{0}' must not ha ve a part-of directive");
971 983
972 /** 984 /**
973 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s ub>k</sub></i> are 985 * 13.9 Switch: It is a compile-time error if values of the expressions <i>e<s ub>k</sub></i> are
974 * not instances of the same class <i>C</i>, for all <i>1 &lt;= k &lt;= n</i>. 986 * not instances of the same class <i>C</i>, for all <i>1 &lt;= k &lt;= n</i>.
975 * 987 *
976 * @param expressionSource the expression source code that is the unexpected t ype 988 * @param expressionSource the expression source code that is the unexpected t ype
977 * @param expectedType the name of the expected type 989 * @param expectedType the name of the expected type
978 */ 990 */
979 static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = const C ompileTimeErrorCode.con1('INCONSISTENT_CASE_EXPRESSION_TYPES', 73, "Case express ions must have the same types, '{0}' is not a '{1}'"); 991 static const CompileTimeErrorCode INCONSISTENT_CASE_EXPRESSION_TYPES = const C ompileTimeErrorCode.con1('INCONSISTENT_CASE_EXPRESSION_TYPES', 75, "Case express ions must have the same types, '{0}' is not a '{1}'");
980 992
981 /** 993 /**
982 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 994 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
983 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an 995 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an
984 * instance variable declared in the immediately surrounding class. 996 * instance variable declared in the immediately surrounding class.
985 * 997 *
986 * @param id the name of the initializing formal that is not an instance varia ble in the 998 * @param id the name of the initializing formal that is not an instance varia ble in the
987 * immediately enclosing class 999 * immediately enclosing class
988 * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD 1000 * @see #INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD
989 */ 1001 */
990 static const CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = const C ompileTimeErrorCode.con1('INITIALIZER_FOR_NON_EXISTANT_FIELD', 74, "'{0}' is not a variable in the enclosing class"); 1002 static const CompileTimeErrorCode INITIALIZER_FOR_NON_EXISTANT_FIELD = const C ompileTimeErrorCode.con1('INITIALIZER_FOR_NON_EXISTANT_FIELD', 76, "'{0}' is not a variable in the enclosing class");
991 1003
992 /** 1004 /**
993 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 1005 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
994 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an 1006 * error if <i>k</i>'s initializer list contains an initializer for a variable that is not an
995 * instance variable declared in the immediately surrounding class. 1007 * instance variable declared in the immediately surrounding class.
996 * 1008 *
997 * @param id the name of the initializing formal that is a static variable in the immediately 1009 * @param id the name of the initializing formal that is a static variable in the immediately
998 * enclosing class 1010 * enclosing class
999 * @see #INITIALIZING_FORMAL_FOR_STATIC_FIELD 1011 * @see #INITIALIZING_FORMAL_FOR_STATIC_FIELD
1000 */ 1012 */
1001 static const CompileTimeErrorCode INITIALIZER_FOR_STATIC_FIELD = const Compile TimeErrorCode.con1('INITIALIZER_FOR_STATIC_FIELD', 75, "'{0}' is a static variab le in the enclosing class, variables initialized in a constructor cannot be stat ic"); 1013 static const CompileTimeErrorCode INITIALIZER_FOR_STATIC_FIELD = const Compile TimeErrorCode.con1('INITIALIZER_FOR_STATIC_FIELD', 77, "'{0}' is a static variab le in the enclosing class, variables initialized in a constructor cannot be stat ic");
1002 1014
1003 /** 1015 /**
1004 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a 1016 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a
1005 * compile-time error if <i>id</i> is not the name of an instance variable of the immediately 1017 * compile-time error if <i>id</i> is not the name of an instance variable of the immediately
1006 * enclosing class. 1018 * enclosing class.
1007 * 1019 *
1008 * @param id the name of the initializing formal that is not an instance varia ble in the 1020 * @param id the name of the initializing formal that is not an instance varia ble in the
1009 * immediately enclosing class 1021 * immediately enclosing class
1010 * @see #INITIALIZING_FORMAL_FOR_STATIC_FIELD 1022 * @see #INITIALIZING_FORMAL_FOR_STATIC_FIELD
1011 * @see #INITIALIZER_FOR_NON_EXISTANT_FIELD 1023 * @see #INITIALIZER_FOR_NON_EXISTANT_FIELD
1012 */ 1024 */
1013 static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD', 7 6, "'{0}' is not a variable in the enclosing class"); 1025 static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD', 7 8, "'{0}' is not a variable in the enclosing class");
1014 1026
1015 /** 1027 /**
1016 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a 1028 * 7.6.1 Generative Constructors: An initializing formal has the form <i>this. id</i>. It is a
1017 * compile-time error if <i>id</i> is not the name of an instance variable of the immediately 1029 * compile-time error if <i>id</i> is not the name of an instance variable of the immediately
1018 * enclosing class. 1030 * enclosing class.
1019 * 1031 *
1020 * @param id the name of the initializing formal that is a static variable in the immediately 1032 * @param id the name of the initializing formal that is a static variable in the immediately
1021 * enclosing class 1033 * enclosing class
1022 * @see #INITIALIZER_FOR_STATIC_FIELD 1034 * @see #INITIALIZER_FOR_STATIC_FIELD
1023 */ 1035 */
1024 static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_STATIC_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_STATIC_FIELD', 77, "'{0}' is a static field in the enclosing class, fields initialized in a constructor cann ot be static"); 1036 static const CompileTimeErrorCode INITIALIZING_FORMAL_FOR_STATIC_FIELD = const CompileTimeErrorCode.con1('INITIALIZING_FORMAL_FOR_STATIC_FIELD', 79, "'{0}' is a static field in the enclosing class, fields initialized in a constructor cann ot be static");
1025 1037
1026 /** 1038 /**
1027 * 12.30 Identifier Reference: Otherwise, e is equivalent to the property extr action 1039 * 12.30 Identifier Reference: Otherwise, e is equivalent to the property extr action
1028 * <b>this</b>.<i>id</i>. 1040 * <b>this</b>.<i>id</i>.
1029 */ 1041 */
1030 static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_FACTORY = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_FACTORY', 78, "Instance m embers cannot be accessed from a factory constructor"); 1042 static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_FACTORY = const CompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_FACTORY', 80, "Instance m embers cannot be accessed from a factory constructor");
1031 1043
1032 /** 1044 /**
1033 * 12.30 Identifier Reference: Otherwise, e is equivalent to the property extr action 1045 * 12.30 Identifier Reference: Otherwise, e is equivalent to the property extr action
1034 * <b>this</b>.<i>id</i>. 1046 * <b>this</b>.<i>id</i>.
1035 */ 1047 */
1036 static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_STATIC = const C ompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_STATIC', 79, "Instance mem bers cannot be accessed from a static method"); 1048 static const CompileTimeErrorCode INSTANCE_MEMBER_ACCESS_FROM_STATIC = const C ompileTimeErrorCode.con1('INSTANCE_MEMBER_ACCESS_FROM_STATIC', 81, "Instance mem bers cannot be accessed from a static method");
1037 1049
1038 /** 1050 /**
1039 * Enum proposal: It is also a compile-time error to explicitly instantiate an enum via 'new' or 1051 * Enum proposal: It is also a compile-time error to explicitly instantiate an enum via 'new' or
1040 * 'const' or to access its private fields. 1052 * 'const' or to access its private fields.
1041 */ 1053 */
1042 static const CompileTimeErrorCode INSTANTIATE_ENUM = const CompileTimeErrorCod e.con1('INSTANTIATE_ENUM', 80, "Enums cannot be instantiated"); 1054 static const CompileTimeErrorCode INSTANTIATE_ENUM = const CompileTimeErrorCod e.con1('INSTANTIATE_ENUM', 82, "Enums cannot be instantiated");
1043 1055
1044 /** 1056 /**
1045 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the 1057 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the
1046 * character @, followed by a constant expression that must be either a refere nce to a 1058 * character @, followed by a constant expression that must be either a refere nce to a
1047 * compile-time constant variable, or a call to a constant constructor. 1059 * compile-time constant variable, or a call to a constant constructor.
1048 */ 1060 */
1049 static const CompileTimeErrorCode INVALID_ANNOTATION = const CompileTimeErrorC ode.con1('INVALID_ANNOTATION', 81, "Annotation can be only constant variable or constant constructor invocation"); 1061 static const CompileTimeErrorCode INVALID_ANNOTATION = const CompileTimeErrorC ode.con1('INVALID_ANNOTATION', 83, "Annotation can be only constant variable or constant constructor invocation");
1050 1062
1051 /** 1063 /**
1052 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the 1064 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the
1053 * character @, followed by a constant expression that must be either a refere nce to a 1065 * character @, followed by a constant expression that must be either a refere nce to a
1054 * compile-time constant variable, or a call to a constant constructor. 1066 * compile-time constant variable, or a call to a constant constructor.
1055 * 1067 *
1056 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1068 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1057 * deferred prefix. 1069 * deferred prefix.
1058 */ 1070 */
1059 static const CompileTimeErrorCode INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY = c onst CompileTimeErrorCode.con1('INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY', 82, " Constant values from a deferred library cannot be used as annotations"); 1071 static const CompileTimeErrorCode INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY = c onst CompileTimeErrorCode.con1('INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY', 84, " Constant values from a deferred library cannot be used as annotations");
1072
1073 /**
1074 * 15.31 Identifier Reference: It is a compile-time error if any of the identi fiers async, await
1075 * or yield is used as an identifier in a function body marked with either asy nc, async* or sync*.
1076 */
1077 static const CompileTimeErrorCode INVALID_IDENTIFIER_IN_ASYNC = const CompileT imeErrorCode.con1('INVALID_IDENTIFIER_IN_ASYNC', 85, "The identifier '{0}' canno t be used in a function marked with async, async* or sync*");
1078
1079 /**
1080 * 9. Functions: It is a compile-time error if an async, async* or sync* modif ier is attached to
1081 * the body of a setter or constructor.
1082 */
1083 static const CompileTimeErrorCode INVALID_MODIFIER_ON_CONSTRUCTOR = const Comp ileTimeErrorCode.con1('INVALID_MODIFIER_ON_CONSTRUCTOR', 86, "The modifier '{0}' cannot be applied to the body of a constructor");
1084
1085 /**
1086 * 9. Functions: It is a compile-time error if an async, async* or sync* modif ier is attached to
1087 * the body of a setter or constructor.
1088 */
1089 static const CompileTimeErrorCode INVALID_MODIFIER_ON_SETTER = const CompileTi meErrorCode.con1('INVALID_MODIFIER_ON_SETTER', 87, "The modifier '{0}' cannot be applied to the body of a setter");
1060 1090
1061 /** 1091 /**
1062 * TODO(brianwilkerson) Remove this when we have decided on how to report erro rs in compile-time 1092 * TODO(brianwilkerson) Remove this when we have decided on how to report erro rs in compile-time
1063 * constants. Until then, this acts as a placeholder for more informative erro rs. 1093 * constants. Until then, this acts as a placeholder for more informative erro rs.
1064 * 1094 *
1065 * See TODOs in ConstantVisitor 1095 * See TODOs in ConstantVisitor
1066 */ 1096 */
1067 static const CompileTimeErrorCode INVALID_CONSTANT = const CompileTimeErrorCod e.con1('INVALID_CONSTANT', 83, "Invalid constant value"); 1097 static const CompileTimeErrorCode INVALID_CONSTANT = const CompileTimeErrorCod e.con1('INVALID_CONSTANT', 88, "Invalid constant value");
1068 1098
1069 /** 1099 /**
1070 * 7.6 Constructors: It is a compile-time error if the name of a constructor i s not a constructor 1100 * 7.6 Constructors: It is a compile-time error if the name of a constructor i s not a constructor
1071 * name. 1101 * name.
1072 */ 1102 */
1073 static const CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = const CompileTime ErrorCode.con1('INVALID_CONSTRUCTOR_NAME', 84, "Invalid constructor name"); 1103 static const CompileTimeErrorCode INVALID_CONSTRUCTOR_NAME = const CompileTime ErrorCode.con1('INVALID_CONSTRUCTOR_NAME', 89, "Invalid constructor name");
1074 1104
1075 /** 1105 /**
1076 * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of the immediately 1106 * 7.6.2 Factories: It is a compile-time error if <i>M</i> is not the name of the immediately
1077 * enclosing class. 1107 * enclosing class.
1078 */ 1108 */
1079 static const CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = const Com pileTimeErrorCode.con1('INVALID_FACTORY_NAME_NOT_A_CLASS', 85, "The name of the immediately enclosing class expected"); 1109 static const CompileTimeErrorCode INVALID_FACTORY_NAME_NOT_A_CLASS = const Com pileTimeErrorCode.con1('INVALID_FACTORY_NAME_NOT_A_CLASS', 90, "The name of the immediately enclosing class expected");
1080 1110
1081 /** 1111 /**
1082 * 12.10 This: It is a compile-time error if this appears in a top-level funct ion or variable 1112 * 12.10 This: It is a compile-time error if this appears in a top-level funct ion or variable
1083 * initializer, in a factory constructor, or in a static method or variable in itializer, or in the 1113 * initializer, in a factory constructor, or in a static method or variable in itializer, or in the
1084 * initializer of an instance variable. 1114 * initializer of an instance variable.
1085 */ 1115 */
1086 static const CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = const CompileTim eErrorCode.con1('INVALID_REFERENCE_TO_THIS', 86, "Invalid reference to 'this' ex pression"); 1116 static const CompileTimeErrorCode INVALID_REFERENCE_TO_THIS = const CompileTim eErrorCode.con1('INVALID_REFERENCE_TO_THIS', 91, "Invalid reference to 'this' ex pression");
1087 1117
1088 /** 1118 /**
1089 * 12.6 Lists: It is a compile time error if the type argument of a constant l ist literal includes 1119 * 12.6 Lists: It is a compile time error if the type argument of a constant l ist literal includes
1090 * a type parameter. 1120 * a type parameter.
1091 * 1121 *
1092 * @name the name of the type parameter 1122 * @name the name of the type parameter
1093 */ 1123 */
1094 static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 87, "Constant l ist literals cannot include a type parameter as a type argument, such as '{0}'") ; 1124 static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_LIST = const CompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_LIST', 92, "Constant l ist literals cannot include a type parameter as a type argument, such as '{0}'") ;
1095 1125
1096 /** 1126 /**
1097 * 12.7 Maps: It is a compile time error if the type arguments of a constant m ap literal include a 1127 * 12.7 Maps: It is a compile time error if the type arguments of a constant m ap literal include a
1098 * type parameter. 1128 * type parameter.
1099 * 1129 *
1100 * @name the name of the type parameter 1130 * @name the name of the type parameter
1101 */ 1131 */
1102 static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = const C ompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 88, "Constant map literals cannot include a type parameter as a type argument, such as '{0}'"); 1132 static const CompileTimeErrorCode INVALID_TYPE_ARGUMENT_IN_CONST_MAP = const C ompileTimeErrorCode.con1('INVALID_TYPE_ARGUMENT_IN_CONST_MAP', 93, "Constant map literals cannot include a type parameter as a type argument, such as '{0}'");
1103 1133
1104 /** 1134 /**
1105 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 1135 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
1106 * not a library declaration. 1136 * not a library declaration.
1107 * 1137 *
1108 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is 1138 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is
1109 * not a library declaration. 1139 * not a library declaration.
1110 * 1140 *
1111 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 1141 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
1112 * declaration. 1142 * declaration.
1113 * 1143 *
1114 * @param uri the URI that is invalid 1144 * @param uri the URI that is invalid
1115 * @see #URI_DOES_NOT_EXIST 1145 * @see #URI_DOES_NOT_EXIST
1116 */ 1146 */
1117 static const CompileTimeErrorCode INVALID_URI = const CompileTimeErrorCode.con 1('INVALID_URI', 89, "Invalid URI syntax: '{0}'"); 1147 static const CompileTimeErrorCode INVALID_URI = const CompileTimeErrorCode.con 1('INVALID_URI', 94, "Invalid URI syntax: '{0}'");
1118 1148
1119 /** 1149 /**
1120 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su b></i> exists within 1150 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su b></i> exists within
1121 * the innermost function in which <i>s<sub>b</sub></i> occurs. 1151 * the innermost function in which <i>s<sub>b</sub></i> occurs.
1122 * 1152 *
1123 * 13.14 Continue: It is a compile-time error if no such statement or case cla use 1153 * 13.14 Continue: It is a compile-time error if no such statement or case cla use
1124 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub >c</sub></i> occurs. 1154 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub >c</sub></i> occurs.
1125 * 1155 *
1126 * @param labelName the name of the unresolvable label 1156 * @param labelName the name of the unresolvable label
1127 */ 1157 */
1128 static const CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = const CompileTimeErro rCode.con1('LABEL_IN_OUTER_SCOPE', 90, "Cannot reference label '{0}' declared in an outer method"); 1158 static const CompileTimeErrorCode LABEL_IN_OUTER_SCOPE = const CompileTimeErro rCode.con1('LABEL_IN_OUTER_SCOPE', 95, "Cannot reference label '{0}' declared in an outer method");
1129 1159
1130 /** 1160 /**
1131 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su b></i> exists within 1161 * 13.13 Break: It is a compile-time error if no such statement <i>s<sub>E</su b></i> exists within
1132 * the innermost function in which <i>s<sub>b</sub></i> occurs. 1162 * the innermost function in which <i>s<sub>b</sub></i> occurs.
1133 * 1163 *
1134 * 13.14 Continue: It is a compile-time error if no such statement or case cla use 1164 * 13.14 Continue: It is a compile-time error if no such statement or case cla use
1135 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub >c</sub></i> occurs. 1165 * <i>s<sub>E</sub></i> exists within the innermost function in which <i>s<sub >c</sub></i> occurs.
1136 * 1166 *
1137 * @param labelName the name of the unresolvable label 1167 * @param labelName the name of the unresolvable label
1138 */ 1168 */
1139 static const CompileTimeErrorCode LABEL_UNDEFINED = const CompileTimeErrorCode .con1('LABEL_UNDEFINED', 91, "Cannot reference undefined label '{0}'"); 1169 static const CompileTimeErrorCode LABEL_UNDEFINED = const CompileTimeErrorCode .con1('LABEL_UNDEFINED', 96, "Cannot reference undefined label '{0}'");
1140 1170
1141 /** 1171 /**
1142 * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> ... 1172 * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> ...
1143 * <i>e<sub>n</sub></i>] is evaluated as follows: 1173 * <i>e<sub>n</sub></i>] is evaluated as follows:
1144 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument 1174 * * The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument
1145 * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i> 1175 * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i>
1146 * 1176 *
1147 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 1177 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
1148 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 1178 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
1149 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 1179 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
1150 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 1180 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
1151 * j &lt;= m</i>. 1181 * j &lt;= m</i>.
1152 */ 1182 */
1153 static const CompileTimeErrorCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const Com pileTimeErrorCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 92, "The element type '{0}' cannot be assigned to the list type '{1}'"); 1183 static const CompileTimeErrorCode LIST_ELEMENT_TYPE_NOT_ASSIGNABLE = const Com pileTimeErrorCode.con1('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 97, "The element type '{0}' cannot be assigned to the list type '{1}'");
1154 1184
1155 /** 1185 /**
1156 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> : 1186 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> :
1157 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows: 1187 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows:
1158 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second 1188 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second
1159 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i> 1189 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i>
1160 * 1190 *
1161 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 1191 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
1162 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 1192 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
1163 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 1193 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
1164 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 1194 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
1165 * j &lt;= m</i>. 1195 * j &lt;= m</i>.
1166 */ 1196 */
1167 static const CompileTimeErrorCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const CompileT imeErrorCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 93, "The element type '{0}' can not be assigned to the map key type '{1}'"); 1197 static const CompileTimeErrorCode MAP_KEY_TYPE_NOT_ASSIGNABLE = const CompileT imeErrorCode.con1('MAP_KEY_TYPE_NOT_ASSIGNABLE', 98, "The element type '{0}' can not be assigned to the map key type '{1}'");
1168 1198
1169 /** 1199 /**
1170 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> : 1200 * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</su b></i> :
1171 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows: 1201 * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is ev aluated as follows:
1172 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second 1202 * * The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</s ub></i> and second
1173 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i> 1203 * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i>
1174 * 1204 *
1175 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of 1205 * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
1176 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;= 1206 * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</s ub>, 1 &lt;= i &lt;=
1177 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>. 1207 * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i> q</i> of <i>f</i>.
1178 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;= 1208 * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S< sub>j</sub>, 1 &lt;=
1179 * j &lt;= m</i>. 1209 * j &lt;= m</i>.
1180 */ 1210 */
1181 static const CompileTimeErrorCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const Compil eTimeErrorCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 94, "The element type '{0}' cannot be assigned to the map value type '{1}'"); 1211 static const CompileTimeErrorCode MAP_VALUE_TYPE_NOT_ASSIGNABLE = const Compil eTimeErrorCode.con1('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 99, "The element type '{0}' cannot be assigned to the map value type '{1}'");
1182 1212
1183 /** 1213 /**
1184 * 7 Classes: It is a compile time error if a class <i>C</i> declares a member with the same name 1214 * 7 Classes: It is a compile time error if a class <i>C</i> declares a member with the same name
1185 * as <i>C</i>. 1215 * as <i>C</i>.
1186 */ 1216 */
1187 static const CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = const CompileTimeEr rorCode.con1('MEMBER_WITH_CLASS_NAME', 95, "Class members cannot have the same n ame as the enclosing class"); 1217 static const CompileTimeErrorCode MEMBER_WITH_CLASS_NAME = const CompileTimeEr rorCode.con1('MEMBER_WITH_CLASS_NAME', 100, "Class members cannot have the same name as the enclosing class");
1188 1218
1189 /** 1219 /**
1190 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same 1220 * 7.2 Getters: It is a compile-time error if a class has both a getter and a method with the same
1191 * name. 1221 * name.
1192 * 1222 *
1193 * @param name the conflicting name of the getter and method 1223 * @param name the conflicting name of the getter and method
1194 */ 1224 */
1195 static const CompileTimeErrorCode METHOD_AND_GETTER_WITH_SAME_NAME = const Com pileTimeErrorCode.con1('METHOD_AND_GETTER_WITH_SAME_NAME', 96, "'{0}' cannot be used to name a method, there is already a getter with the same name"); 1225 static const CompileTimeErrorCode METHOD_AND_GETTER_WITH_SAME_NAME = const Com pileTimeErrorCode.con1('METHOD_AND_GETTER_WITH_SAME_NAME', 101, "'{0}' cannot be used to name a method, there is already a getter with the same name");
1196 1226
1197 /** 1227 /**
1198 * 12.1 Constants: A constant expression is ... a constant list literal. 1228 * 12.1 Constants: A constant expression is ... a constant list literal.
1199 */ 1229 */
1200 static const CompileTimeErrorCode MISSING_CONST_IN_LIST_LITERAL = const Compil eTimeErrorCode.con1('MISSING_CONST_IN_LIST_LITERAL', 97, "List literals must be prefixed with 'const' when used as a constant expression"); 1230 static const CompileTimeErrorCode MISSING_CONST_IN_LIST_LITERAL = const Compil eTimeErrorCode.con1('MISSING_CONST_IN_LIST_LITERAL', 102, "List literals must be prefixed with 'const' when used as a constant expression");
1201 1231
1202 /** 1232 /**
1203 * 12.1 Constants: A constant expression is ... a constant map literal. 1233 * 12.1 Constants: A constant expression is ... a constant map literal.
1204 */ 1234 */
1205 static const CompileTimeErrorCode MISSING_CONST_IN_MAP_LITERAL = const Compile TimeErrorCode.con1('MISSING_CONST_IN_MAP_LITERAL', 98, "Map literals must be pre fixed with 'const' when used as a constant expression"); 1235 static const CompileTimeErrorCode MISSING_CONST_IN_MAP_LITERAL = const Compile TimeErrorCode.con1('MISSING_CONST_IN_MAP_LITERAL', 103, "Map literals must be pr efixed with 'const' when used as a constant expression");
1206 1236
1207 /** 1237 /**
1208 * Enum proposal: It is a static warning if all of the following conditions ho ld: 1238 * Enum proposal: It is a static warning if all of the following conditions ho ld:
1209 * * The switch statement does not have a 'default' clause. 1239 * * The switch statement does not have a 'default' clause.
1210 * * The static type of <i>e</i> is an enumerated typed with elements <i>id<su b>1</sub></i>, 1240 * * The static type of <i>e</i> is an enumerated typed with elements <i>id<su b>1</sub></i>,
1211 * &hellip;, <i>id<sub>n</sub></i>. 1241 * &hellip;, <i>id<sub>n</sub></i>.
1212 * * The sets {<i>e<sub>1</sub></i>, &hellip;, <i>e<sub>k</sub></i>} and {<i>i d<sub>1</sub></i>, 1242 * * The sets {<i>e<sub>1</sub></i>, &hellip;, <i>e<sub>k</sub></i>} and {<i>i d<sub>1</sub></i>,
1213 * &hellip;, <i>id<sub>n</sub></i>} are not the same. 1243 * &hellip;, <i>id<sub>n</sub></i>} are not the same.
1214 * 1244 *
1215 * @param constantName the name of the constant that is missing 1245 * @param constantName the name of the constant that is missing
1216 */ 1246 */
1217 static const CompileTimeErrorCode MISSING_ENUM_CONSTANT_IN_SWITCH = const Comp ileTimeErrorCode.con2('MISSING_ENUM_CONSTANT_IN_SWITCH', 99, "Missing case claus e for '{0}'", "Add a case clause for the missing constant or add a default claus e."); 1247 static const CompileTimeErrorCode MISSING_ENUM_CONSTANT_IN_SWITCH = const Comp ileTimeErrorCode.con2('MISSING_ENUM_CONSTANT_IN_SWITCH', 104, "Missing case clau se for '{0}'", "Add a case clause for the missing constant or add a default clau se.");
1218 1248
1219 /** 1249 /**
1220 * 9 Mixins: It is a compile-time error if a declared or derived mixin explici tly declares a 1250 * 9 Mixins: It is a compile-time error if a declared or derived mixin explici tly declares a
1221 * constructor. 1251 * constructor.
1222 * 1252 *
1223 * @param typeName the name of the mixin that is invalid 1253 * @param typeName the name of the mixin that is invalid
1224 */ 1254 */
1225 static const CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = const CompileTi meErrorCode.con1('MIXIN_DECLARES_CONSTRUCTOR', 100, "The class '{0}' cannot be u sed as a mixin because it declares a constructor"); 1255 static const CompileTimeErrorCode MIXIN_DECLARES_CONSTRUCTOR = const CompileTi meErrorCode.con1('MIXIN_DECLARES_CONSTRUCTOR', 105, "The class '{0}' cannot be u sed as a mixin because it declares a constructor");
1226 1256
1227 /** 1257 /**
1228 * 9.1 Mixin Application: It is a compile-time error if the with clause of a m ixin application 1258 * 9.1 Mixin Application: It is a compile-time error if the with clause of a m ixin application
1229 * <i>C</i> includes a deferred type expression. 1259 * <i>C</i> includes a deferred type expression.
1230 * 1260 *
1231 * @param typeName the name of the type that cannot be extended 1261 * @param typeName the name of the type that cannot be extended
1232 * @see #EXTENDS_DEFERRED_CLASS 1262 * @see #EXTENDS_DEFERRED_CLASS
1233 * @see #IMPLEMENTS_DEFERRED_CLASS 1263 * @see #IMPLEMENTS_DEFERRED_CLASS
1234 */ 1264 */
1235 static const CompileTimeErrorCode MIXIN_DEFERRED_CLASS = const CompileTimeErro rCode.con1('MIXIN_DEFERRED_CLASS', 101, "This class cannot mixin the deferred cl ass '{0}'"); 1265 static const CompileTimeErrorCode MIXIN_DEFERRED_CLASS = const CompileTimeErro rCode.con1('MIXIN_DEFERRED_CLASS', 106, "This class cannot mixin the deferred cl ass '{0}'");
1236 1266
1237 /** 1267 /**
1238 * 9 Mixins: It is a compile-time error if a mixin is derived from a class who se superclass is not 1268 * 9 Mixins: It is a compile-time error if a mixin is derived from a class who se superclass is not
1239 * Object. 1269 * Object.
1240 * 1270 *
1241 * @param typeName the name of the mixin that is invalid 1271 * @param typeName the name of the mixin that is invalid
1242 */ 1272 */
1243 static const CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = const Compi leTimeErrorCode.con1('MIXIN_INHERITS_FROM_NOT_OBJECT', 102, "The class '{0}' can not be used as a mixin because it extends a class other than Object"); 1273 static const CompileTimeErrorCode MIXIN_INHERITS_FROM_NOT_OBJECT = const Compi leTimeErrorCode.con1('MIXIN_INHERITS_FROM_NOT_OBJECT', 107, "The class '{0}' can not be used as a mixin because it extends a class other than Object");
1244 1274
1245 /** 1275 /**
1246 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null. 1276 * 12.2 Null: It is a compile-time error for a class to attempt to extend or i mplement Null.
1247 * 1277 *
1248 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int. 1278 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement int.
1249 * 1279 *
1250 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double. 1280 * 12.3 Numbers: It is a compile-time error for a class to attempt to extend o r implement double.
1251 * 1281 *
1252 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to 1282 * 12.3 Numbers: It is a compile-time error for any type other than the types int and double to
1253 * attempt to extend or implement num. 1283 * attempt to extend or implement num.
1254 * 1284 *
1255 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool. 1285 * 12.4 Booleans: It is a compile-time error for a class to attempt to extend or implement bool.
1256 * 1286 *
1257 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String. 1287 * 12.5 Strings: It is a compile-time error for a class to attempt to extend o r implement String.
1258 * 1288 *
1259 * @param typeName the name of the type that cannot be extended 1289 * @param typeName the name of the type that cannot be extended
1260 * @see #IMPLEMENTS_DISALLOWED_CLASS 1290 * @see #IMPLEMENTS_DISALLOWED_CLASS
1261 */ 1291 */
1262 static const CompileTimeErrorCode MIXIN_OF_DISALLOWED_CLASS = const CompileTim eErrorCode.con1('MIXIN_OF_DISALLOWED_CLASS', 103, "Classes cannot mixin '{0}'"); 1292 static const CompileTimeErrorCode MIXIN_OF_DISALLOWED_CLASS = const CompileTim eErrorCode.con1('MIXIN_OF_DISALLOWED_CLASS', 108, "Classes cannot mixin '{0}'");
1263 1293
1264 /** 1294 /**
1265 * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum. 1295 * Enum proposal: It is a compile-time error to subclass, mix-in or implement an enum.
1266 */ 1296 */
1267 static const CompileTimeErrorCode MIXIN_OF_ENUM = const CompileTimeErrorCode.c on1('MIXIN_OF_ENUM', 104, "Classes cannot mixin an enum"); 1297 static const CompileTimeErrorCode MIXIN_OF_ENUM = const CompileTimeErrorCode.c on1('MIXIN_OF_ENUM', 109, "Classes cannot mixin an enum");
1268 1298
1269 /** 1299 /**
1270 * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not deno te a class or mixin 1300 * 9.1 Mixin Application: It is a compile-time error if <i>M</i> does not deno te a class or mixin
1271 * available in the immediately enclosing scope. 1301 * available in the immediately enclosing scope.
1272 */ 1302 */
1273 static const CompileTimeErrorCode MIXIN_OF_NON_CLASS = const CompileTimeErrorC ode.con1('MIXIN_OF_NON_CLASS', 105, "Classes can only mixin other classes"); 1303 static const CompileTimeErrorCode MIXIN_OF_NON_CLASS = const CompileTimeErrorC ode.con1('MIXIN_OF_NON_CLASS', 110, "Classes can only mixin other classes");
1274 1304
1275 /** 1305 /**
1276 * 9 Mixins: It is a compile-time error if a declared or derived mixin refers to super. 1306 * 9 Mixins: It is a compile-time error if a declared or derived mixin refers to super.
1277 */ 1307 */
1278 static const CompileTimeErrorCode MIXIN_REFERENCES_SUPER = const CompileTimeEr rorCode.con1('MIXIN_REFERENCES_SUPER', 106, "The class '{0}' cannot be used as a mixin because it references 'super'"); 1308 static const CompileTimeErrorCode MIXIN_REFERENCES_SUPER = const CompileTimeEr rorCode.con1('MIXIN_REFERENCES_SUPER', 111, "The class '{0}' cannot be used as a mixin because it references 'super'");
1279 1309
1280 /** 1310 /**
1281 * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not deno te a class available 1311 * 9.1 Mixin Application: It is a compile-time error if <i>S</i> does not deno te a class available
1282 * in the immediately enclosing scope. 1312 * in the immediately enclosing scope.
1283 */ 1313 */
1284 static const CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = const Comp ileTimeErrorCode.con1('MIXIN_WITH_NON_CLASS_SUPERCLASS', 107, "Mixin can only be applied to class"); 1314 static const CompileTimeErrorCode MIXIN_WITH_NON_CLASS_SUPERCLASS = const Comp ileTimeErrorCode.con1('MIXIN_WITH_NON_CLASS_SUPERCLASS', 112, "Mixin can only be applied to class");
1285 1315
1286 /** 1316 /**
1287 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its 1317 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
1288 * only action is to invoke another generative constructor. 1318 * only action is to invoke another generative constructor.
1289 */ 1319 */
1290 static const CompileTimeErrorCode MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS = const CompileTimeErrorCode.con1('MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS ', 108, "Constructor may have at most one 'this' redirection"); 1320 static const CompileTimeErrorCode MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS = const CompileTimeErrorCode.con1('MULTIPLE_REDIRECTING_CONSTRUCTOR_INVOCATIONS ', 113, "Constructor may have at most one 'this' redirection");
1291 1321
1292 /** 1322 /**
1293 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Th en <i>k</i> may 1323 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. Th en <i>k</i> may
1294 * include at most one superinitializer in its initializer list or a compile t ime error occurs. 1324 * include at most one superinitializer in its initializer list or a compile t ime error occurs.
1295 */ 1325 */
1296 static const CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = const CompileT imeErrorCode.con1('MULTIPLE_SUPER_INITIALIZERS', 109, "Constructor may have at m ost one 'super' initializer"); 1326 static const CompileTimeErrorCode MULTIPLE_SUPER_INITIALIZERS = const CompileT imeErrorCode.con1('MULTIPLE_SUPER_INITIALIZERS', 114, "Constructor may have at m ost one 'super' initializer");
1297 1327
1298 /** 1328 /**
1299 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the 1329 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the
1300 * character @, followed by a constant expression that must be either a refere nce to a 1330 * character @, followed by a constant expression that must be either a refere nce to a
1301 * compile-time constant variable, or a call to a constant constructor. 1331 * compile-time constant variable, or a call to a constant constructor.
1302 */ 1332 */
1303 static const CompileTimeErrorCode NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS = const CompileTimeErrorCode.con1('NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS', 110, "Annotatio n creation must have arguments"); 1333 static const CompileTimeErrorCode NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS = const CompileTimeErrorCode.con1('NO_ANNOTATION_CONSTRUCTOR_ARGUMENTS', 115, "Annotatio n creation must have arguments");
1304 1334
1305 /** 1335 /**
1306 * 7.6.1 Generative Constructors: If no superinitializer is provided, an impli cit superinitializer 1336 * 7.6.1 Generative Constructors: If no superinitializer is provided, an impli cit superinitializer
1307 * of the form <b>super</b>() is added at the end of <i>k</i>'s initializer li st, unless the 1337 * of the form <b>super</b>() is added at the end of <i>k</i>'s initializer li st, unless the
1308 * enclosing class is class <i>Object</i>. 1338 * enclosing class is class <i>Object</i>.
1309 * 1339 *
1310 * 7.6.1 Generative constructors. It is a compile-time error if class <i>S</i> does not declare a 1340 * 7.6.1 Generative constructors. It is a compile-time error if class <i>S</i> does not declare a
1311 * generative constructor named <i>S</i> (respectively <i>S.id</i>) 1341 * generative constructor named <i>S</i> (respectively <i>S.id</i>)
1312 */ 1342 */
1313 static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT = cons t CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT', 111, "The c lass '{0}' does not have a default constructor"); 1343 static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT = cons t CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT', 116, "The c lass '{0}' does not have a default constructor");
1314 1344
1315 /** 1345 /**
1316 * 7.6 Constructors: Iff no constructor is specified for a class <i>C</i>, it implicitly has a 1346 * 7.6 Constructors: Iff no constructor is specified for a class <i>C</i>, it implicitly has a
1317 * default constructor C() : <b>super<b>() {}, unless <i>C</i> is class <i>Obj ect</i>. 1347 * default constructor C() : <b>super<b>() {}, unless <i>C</i> is class <i>Obj ect</i>.
1318 * 1348 *
1319 * 7.6.1 Generative constructors. It is a compile-time error if class <i>S</i> does not declare a 1349 * 7.6.1 Generative constructors. It is a compile-time error if class <i>S</i> does not declare a
1320 * generative constructor named <i>S</i> (respectively <i>S.id</i>) 1350 * generative constructor named <i>S</i> (respectively <i>S.id</i>)
1321 */ 1351 */
1322 static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT = cons t CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT', 112, "The c lass '{0}' does not have a default constructor"); 1352 static const CompileTimeErrorCode NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT = cons t CompileTimeErrorCode.con1('NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT', 117, "The c lass '{0}' does not have a default constructor");
1323 1353
1324 /** 1354 /**
1325 * 13.2 Expression Statements: It is a compile-time error if a non-constant ma p literal that has 1355 * 13.2 Expression Statements: It is a compile-time error if a non-constant ma p literal that has
1326 * no explicit type arguments appears in a place where a statement is expected . 1356 * no explicit type arguments appears in a place where a statement is expected .
1327 */ 1357 */
1328 static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = cons t CompileTimeErrorCode.con1('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 113, "A non -constant map literal without type arguments cannot be used as an expression sta tement"); 1358 static const CompileTimeErrorCode NON_CONST_MAP_AS_EXPRESSION_STATEMENT = cons t CompileTimeErrorCode.con1('NON_CONST_MAP_AS_EXPRESSION_STATEMENT', 118, "A non -constant map literal without type arguments cannot be used as an expression sta tement");
1329 1359
1330 /** 1360 /**
1331 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub >11</sub> &hellip; 1361 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub >11</sub> &hellip;
1332 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> &hellip; label<sub>n1 </sub> &hellip; 1362 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> &hellip; label<sub>n1 </sub> &hellip;
1333 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s ub>}</i> or the form 1363 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s ub>}</i> or the form
1334 * <i>switch (e) { label<sub>11</sub> &hellip; label<sub>1j1</sub> case e<sub> 1</sub>: 1364 * <i>switch (e) { label<sub>11</sub> &hellip; label<sub>1j1</sub> case e<sub> 1</sub>:
1335 * s<sub>1</sub> &hellip; label<sub>n1</sub> &hellip; label<sub>njn</sub> case e<sub>n</sub>: 1365 * s<sub>1</sub> &hellip; label<sub>n1</sub> &hellip; label<sub>njn</sub> case e<sub>n</sub>:
1336 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub> k</sub></i> are not 1366 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub> k</sub></i> are not
1337 * compile-time constants, for all <i>1 &lt;= k &lt;= n</i>. 1367 * compile-time constants, for all <i>1 &lt;= k &lt;= n</i>.
1338 */ 1368 */
1339 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const Compile TimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 114, "Case expressions must b e constant"); 1369 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION = const Compile TimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION', 119, "Case expressions must b e constant");
1340 1370
1341 /** 1371 /**
1342 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub >11</sub> &hellip; 1372 * 13.9 Switch: Given a switch statement of the form <i>switch (e) { label<sub >11</sub> &hellip;
1343 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> &hellip; label<sub>n1 </sub> &hellip; 1373 * label<sub>1j1</sub> case e<sub>1</sub>: s<sub>1</sub> &hellip; label<sub>n1 </sub> &hellip;
1344 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s ub>}</i> or the form 1374 * label<sub>njn</sub> case e<sub>n</sub>: s<sub>n</sub> default: s<sub>n+1</s ub>}</i> or the form
1345 * <i>switch (e) { label<sub>11</sub> &hellip; label<sub>1j1</sub> case e<sub> 1</sub>: 1375 * <i>switch (e) { label<sub>11</sub> &hellip; label<sub>1j1</sub> case e<sub> 1</sub>:
1346 * s<sub>1</sub> &hellip; label<sub>n1</sub> &hellip; label<sub>njn</sub> case e<sub>n</sub>: 1376 * s<sub>1</sub> &hellip; label<sub>n1</sub> &hellip; label<sub>njn</sub> case e<sub>n</sub>:
1347 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub> k</sub></i> are not 1377 * s<sub>n</sub>}</i>, it is a compile-time error if the expressions <i>e<sub> k</sub></i> are not
1348 * compile-time constants, for all <i>1 &lt;= k &lt;= n</i>. 1378 * compile-time constants, for all <i>1 &lt;= k &lt;= n</i>.
1349 * 1379 *
1350 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1380 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1351 * deferred prefix. 1381 * deferred prefix.
1352 */ 1382 */
1353 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_L IBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFE RRED_LIBRARY', 115, "Constant values from a deferred library cannot be used as a case expression"); 1383 static const CompileTimeErrorCode NON_CONSTANT_CASE_EXPRESSION_FROM_DEFERRED_L IBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_CASE_EXPRESSION_FROM_DEFE RRED_LIBRARY', 120, "Constant values from a deferred library cannot be used as a case expression");
1354 1384
1355 /** 1385 /**
1356 * 6.2.2 Optional Formals: It is a compile-time error if the default value of an optional 1386 * 6.2.2 Optional Formals: It is a compile-time error if the default value of an optional
1357 * parameter is not a compile-time constant. 1387 * parameter is not a compile-time constant.
1358 */ 1388 */
1359 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTi meErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 116, "Default values of an option al parameter must be constant"); 1389 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE = const CompileTi meErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE', 121, "Default values of an option al parameter must be constant");
1360 1390
1361 /** 1391 /**
1362 * 6.2.2 Optional Formals: It is a compile-time error if the default value of an optional 1392 * 6.2.2 Optional Formals: It is a compile-time error if the default value of an optional
1363 * parameter is not a compile-time constant. 1393 * parameter is not a compile-time constant.
1364 * 1394 *
1365 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1395 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1366 * deferred prefix. 1396 * deferred prefix.
1367 */ 1397 */
1368 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIB RARY = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED _LIBRARY', 117, "Constant values from a deferred library cannot be used as a def ault parameter value"); 1398 static const CompileTimeErrorCode NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED_LIB RARY = const CompileTimeErrorCode.con1('NON_CONSTANT_DEFAULT_VALUE_FROM_DEFERRED _LIBRARY', 122, "Constant values from a deferred library cannot be used as a def ault parameter value");
1369 1399
1370 /** 1400 /**
1371 * 12.6 Lists: It is a compile time error if an element of a constant list lit eral is not a 1401 * 12.6 Lists: It is a compile time error if an element of a constant list lit eral is not a
1372 * compile-time constant. 1402 * compile-time constant.
1373 */ 1403 */
1374 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTim eErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 118, "'const' lists must have all c onstant values"); 1404 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT = const CompileTim eErrorCode.con1('NON_CONSTANT_LIST_ELEMENT', 123, "'const' lists must have all c onstant values");
1375 1405
1376 /** 1406 /**
1377 * 12.6 Lists: It is a compile time error if an element of a constant list lit eral is not a 1407 * 12.6 Lists: It is a compile time error if an element of a constant list lit eral is not a
1378 * compile-time constant. 1408 * compile-time constant.
1379 * 1409 *
1380 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1410 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1381 * deferred prefix. 1411 * deferred prefix.
1382 */ 1412 */
1383 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBR ARY = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_L IBRARY', 119, "Constant values from a deferred library cannot be used as values in a 'const' list"); 1413 static const CompileTimeErrorCode NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_LIBR ARY = const CompileTimeErrorCode.con1('NON_CONSTANT_LIST_ELEMENT_FROM_DEFERRED_L IBRARY', 124, "Constant values from a deferred library cannot be used as values in a 'const' list");
1384 1414
1385 /** 1415 /**
1386 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map 1416 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map
1387 * literal is not a compile-time constant. 1417 * literal is not a compile-time constant.
1388 */ 1418 */
1389 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErro rCode.con1('NON_CONSTANT_MAP_KEY', 120, "The keys in a map must be constant"); 1419 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY = const CompileTimeErro rCode.con1('NON_CONSTANT_MAP_KEY', 125, "The keys in a map must be constant");
1390 1420
1391 /** 1421 /**
1392 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map 1422 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map
1393 * literal is not a compile-time constant. 1423 * literal is not a compile-time constant.
1394 * 1424 *
1395 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1425 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1396 * deferred prefix. 1426 * deferred prefix.
1397 */ 1427 */
1398 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', 1 21, "Constant values from a deferred library cannot be used as keys in a map"); 1428 static const CompileTimeErrorCode NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_KEY_FROM_DEFERRED_LIBRARY', 1 26, "Constant values from a deferred library cannot be used as keys in a map");
1399 1429
1400 /** 1430 /**
1401 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map 1431 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map
1402 * literal is not a compile-time constant. 1432 * literal is not a compile-time constant.
1403 */ 1433 */
1404 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeEr rorCode.con1('NON_CONSTANT_MAP_VALUE', 122, "The values in a 'const' map must be constant"); 1434 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE = const CompileTimeEr rorCode.con1('NON_CONSTANT_MAP_VALUE', 127, "The values in a 'const' map must be constant");
1405 1435
1406 /** 1436 /**
1407 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map 1437 * 12.7 Maps: It is a compile time error if either a key or a value of an entr y in a constant map
1408 * literal is not a compile-time constant. 1438 * literal is not a compile-time constant.
1409 * 1439 *
1410 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1440 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1411 * deferred prefix. 1441 * deferred prefix.
1412 */ 1442 */
1413 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY ', 123, "Constant values from a deferred library cannot be used as values in a ' const' map"); 1443 static const CompileTimeErrorCode NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_MAP_VALUE_FROM_DEFERRED_LIBRARY ', 128, "Constant values from a deferred library cannot be used as values in a ' const' map");
1414 1444
1415 /** 1445 /**
1416 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the 1446 * 11 Metadata: Metadata consists of a series of annotations, each of which be gin with the
1417 * character @, followed by a constant expression that must be either a refere nce to a 1447 * character @, followed by a constant expression that must be either a refere nce to a
1418 * compile-time constant variable, or a call to a constant constructor. 1448 * compile-time constant variable, or a call to a constant constructor.
1419 * 1449 *
1420 * "From deferred library" case is covered by 1450 * "From deferred library" case is covered by
1421 * [CompileTimeErrorCode#INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY]. 1451 * [CompileTimeErrorCode#INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY].
1422 */ 1452 */
1423 static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 124, "Annotatio n creation can use only 'const' constructor"); 1453 static const CompileTimeErrorCode NON_CONSTANT_ANNOTATION_CONSTRUCTOR = const CompileTimeErrorCode.con1('NON_CONSTANT_ANNOTATION_CONSTRUCTOR', 129, "Annotatio n creation can use only 'const' constructor");
1424 1454
1425 /** 1455 /**
1426 * 7.6.3 Constant Constructors: Any expression that appears within the initial izer list of a 1456 * 7.6.3 Constant Constructors: Any expression that appears within the initial izer list of a
1427 * constant constructor must be a potentially constant expression, or a compil e-time error occurs. 1457 * constant constructor must be a potentially constant expression, or a compil e-time error occurs.
1428 */ 1458 */
1429 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const Co mpileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 125, "Initializer e xpressions in constant constructors must be constants"); 1459 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER = const Co mpileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER', 130, "Initializer e xpressions in constant constructors must be constants");
1430 1460
1431 /** 1461 /**
1432 * 7.6.3 Constant Constructors: Any expression that appears within the initial izer list of a 1462 * 7.6.3 Constant Constructors: Any expression that appears within the initial izer list of a
1433 * constant constructor must be a potentially constant expression, or a compil e-time error occurs. 1463 * constant constructor must be a potentially constant expression, or a compil e-time error occurs.
1434 * 1464 *
1435 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a 1465 * 12.1 Constants: A qualified reference to a static constant variable that is not qualified by a
1436 * deferred prefix. 1466 * deferred prefix.
1437 */ 1467 */
1438 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFER RED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER _FROM_DEFERRED_LIBRARY', 126, "Constant values from a deferred library cannot be used as constant initializers"); 1468 static const CompileTimeErrorCode NON_CONSTANT_VALUE_IN_INITIALIZER_FROM_DEFER RED_LIBRARY = const CompileTimeErrorCode.con1('NON_CONSTANT_VALUE_IN_INITIALIZER _FROM_DEFERRED_LIBRARY', 131, "Constant values from a deferred library cannot be used as constant initializers");
1439 1469
1440 /** 1470 /**
1441 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m > n</i>. 1471 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i> or if <i>m > n</i>.
1442 * 1472 *
1443 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 1473 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
1444 * uncaught exception being thrown. 1474 * uncaught exception being thrown.
1445 * 1475 *
1446 * @param requiredCount the expected number of required arguments 1476 * @param requiredCount the expected number of required arguments
1447 * @param argumentCount the actual number of positional arguments given 1477 * @param argumentCount the actual number of positional arguments given
1448 */ 1478 */
1449 static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const Compil eTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 127, "{0} required argument (s) expected, but {1} found"); 1479 static const CompileTimeErrorCode NOT_ENOUGH_REQUIRED_ARGUMENTS = const Compil eTimeErrorCode.con1('NOT_ENOUGH_REQUIRED_ARGUMENTS', 132, "{0} required argument (s) expected, but {1} found");
1450 1480
1451 /** 1481 /**
1452 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears 1482 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears
1453 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is 1483 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is
1454 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i> 1484 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i>
1455 * (respectively <i>S.id</i>) 1485 * (respectively <i>S.id</i>)
1456 */ 1486 */
1457 static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTi meErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 128, "The generative constructor '{0}' expected, but factory found"); 1487 static const CompileTimeErrorCode NON_GENERATIVE_CONSTRUCTOR = const CompileTi meErrorCode.con1('NON_GENERATIVE_CONSTRUCTOR', 133, "The generative constructor '{0}' expected, but factory found");
1458 1488
1459 /** 1489 /**
1460 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f or class Object. 1490 * 7.9 Superclasses: It is a compile-time error to specify an extends clause f or class Object.
1461 */ 1491 */
1462 static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const C ompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 129, ""); 1492 static const CompileTimeErrorCode OBJECT_CANNOT_EXTEND_ANOTHER_CLASS = const C ompileTimeErrorCode.con1('OBJECT_CANNOT_EXTEND_ANOTHER_CLASS', 134, "");
1463 1493
1464 /** 1494 /**
1465 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete r in an operator. 1495 * 7.1.1 Operators: It is a compile-time error to declare an optional paramete r in an operator.
1466 */ 1496 */
1467 static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const Compi leTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 130, "Optional parameters are not allowed when defining an operator"); 1497 static const CompileTimeErrorCode OPTIONAL_PARAMETER_IN_OPERATOR = const Compi leTimeErrorCode.con1('OPTIONAL_PARAMETER_IN_OPERATOR', 135, "Optional parameters are not allowed when defining an operator");
1468 1498
1469 /** 1499 /**
1470 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 1500 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
1471 * declaration. 1501 * declaration.
1472 * 1502 *
1473 * @param uri the uri pointing to a non-library declaration 1503 * @param uri the uri pointing to a non-library declaration
1474 */ 1504 */
1475 static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCod e.con1('PART_OF_NON_PART', 131, "The included part '{0}' must have a part-of dir ective"); 1505 static const CompileTimeErrorCode PART_OF_NON_PART = const CompileTimeErrorCod e.con1('PART_OF_NON_PART', 136, "The included part '{0}' must have a part-of dir ective");
1476 1506
1477 /** 1507 /**
1478 * 14.1 Imports: It is a compile-time error if the current library declares a top-level member 1508 * 14.1 Imports: It is a compile-time error if the current library declares a top-level member
1479 * named <i>p</i>. 1509 * named <i>p</i>.
1480 */ 1510 */
1481 static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = cons t CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 132, "The n ame '{0}' is already used as an import prefix and cannot be used to name a top-l evel element"); 1511 static const CompileTimeErrorCode PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER = cons t CompileTimeErrorCode.con1('PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER', 137, "The n ame '{0}' is already used as an import prefix and cannot be used to name a top-l evel element");
1482 1512
1483 /** 1513 /**
1484 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o ptional parameter 1514 * 6.2.2 Optional Formals: It is a compile-time error if the name of a named o ptional parameter
1485 * begins with an '_' character. 1515 * begins with an '_' character.
1486 */ 1516 */
1487 static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTi meErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 133, "Named optional parameters c annot start with an underscore"); 1517 static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = const CompileTi meErrorCode.con1('PRIVATE_OPTIONAL_PARAMETER', 138, "Named optional parameters c annot start with an underscore");
1488 1518
1489 /** 1519 /**
1490 * 12.1 Constants: It is a compile-time error if the value of a compile-time c onstant expression 1520 * 12.1 Constants: It is a compile-time error if the value of a compile-time c onstant expression
1491 * depends on itself. 1521 * depends on itself.
1492 */ 1522 */
1493 static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const Comp ileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 134, ""); 1523 static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = const Comp ileTimeErrorCode.con1('RECURSIVE_COMPILE_TIME_CONSTANT', 139, "");
1494 1524
1495 /** 1525 /**
1496 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its 1526 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
1497 * only action is to invoke another generative constructor. 1527 * only action is to invoke another generative constructor.
1498 * 1528 *
1499 * TODO(scheglov) review this later, there are no explicit "it is a compile-ti me error" in 1529 * TODO(scheglov) review this later, there are no explicit "it is a compile-ti me error" in
1500 * specification. But it was added to the co19 and there is same error for fac tories. 1530 * specification. But it was added to the co19 and there is same error for fac tories.
1501 * 1531 *
1502 * https://code.google.com/p/dart/issues/detail?id=954 1532 * https://code.google.com/p/dart/issues/detail?id=954
1503 */ 1533 */
1504 static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const Compi leTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 135, "Cycle in redirectin g generative constructors"); 1534 static const CompileTimeErrorCode RECURSIVE_CONSTRUCTOR_REDIRECT = const Compi leTimeErrorCode.con1('RECURSIVE_CONSTRUCTOR_REDIRECT', 140, "Cycle in redirectin g generative constructors");
1505 1535
1506 /** 1536 /**
1507 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr uctor redirects to 1537 * 7.6.2 Factories: It is a compile-time error if a redirecting factory constr uctor redirects to
1508 * itself, either directly or indirectly via a sequence of redirections. 1538 * itself, either directly or indirectly via a sequence of redirections.
1509 */ 1539 */
1510 static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTi meErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 136, "Cycle in redirecting factor y constructors"); 1540 static const CompileTimeErrorCode RECURSIVE_FACTORY_REDIRECT = const CompileTi meErrorCode.con1('RECURSIVE_FACTORY_REDIRECT', 141, "Cycle in redirecting factor y constructors");
1511 1541
1512 /** 1542 /**
1513 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a 1543 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a
1514 * superinterface of itself. 1544 * superinterface of itself.
1515 * 1545 *
1516 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself. 1546 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
1517 * 1547 *
1518 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself. 1548 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself.
1519 * 1549 *
1520 * @param className the name of the class that implements itself recursively 1550 * @param className the name of the class that implements itself recursively
1521 * @param strImplementsPath a string representation of the implements loop 1551 * @param strImplementsPath a string representation of the implements loop
1522 */ 1552 */
1523 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const Comp ileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 137, "'{0}' cannot be a superinterface of itself: {1}"); 1553 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE = const Comp ileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE', 142, "'{0}' cannot be a superinterface of itself: {1}");
1524 1554
1525 /** 1555 /**
1526 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a 1556 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a
1527 * superinterface of itself. 1557 * superinterface of itself.
1528 * 1558 *
1529 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself. 1559 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
1530 * 1560 *
1531 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself. 1561 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself.
1532 * 1562 *
1533 * @param className the name of the class that implements itself recursively 1563 * @param className the name of the class that implements itself recursively
1534 */ 1564 */
1535 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EX TENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CA SE_EXTENDS', 138, "'{0}' cannot extend itself"); 1565 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EX TENDS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CA SE_EXTENDS', 143, "'{0}' cannot extend itself");
1536 1566
1537 /** 1567 /**
1538 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a 1568 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a
1539 * superinterface of itself. 1569 * superinterface of itself.
1540 * 1570 *
1541 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself. 1571 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
1542 * 1572 *
1543 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself. 1573 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself.
1544 * 1574 *
1545 * @param className the name of the class that implements itself recursively 1575 * @param className the name of the class that implements itself recursively
1546 */ 1576 */
1547 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM PLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE _CASE_IMPLEMENTS', 139, "'{0}' cannot implement itself"); 1577 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM PLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE _CASE_IMPLEMENTS', 144, "'{0}' cannot implement itself");
1548 1578
1549 /** 1579 /**
1550 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a 1580 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a
1551 * superinterface of itself. 1581 * superinterface of itself.
1552 * 1582 *
1553 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself. 1583 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
1554 * 1584 *
1555 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself. 1585 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself.
1556 * 1586 *
1557 * @param className the name of the class that implements itself recursively 1587 * @param className the name of the class that implements itself recursively
1558 */ 1588 */
1559 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WI TH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_ WITH', 140, "'{0}' cannot use itself as a mixin"); 1589 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WI TH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_ WITH', 145, "'{0}' cannot use itself as a mixin");
1560 1590
1561 /** 1591 /**
1562 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 1592 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
1563 * <i>k'</i> is not a constant constructor. 1593 * <i>k'</i> is not a constant constructor.
1564 */ 1594 */
1565 static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const Comp ileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 141, "The constructor ' {0}' could not be found in '{1}'"); 1595 static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const Comp ileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 146, "The constructor ' {0}' could not be found in '{1}'");
1566 1596
1567 /** 1597 /**
1568 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 1598 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
1569 * <i>k'</i> is not a constant constructor. 1599 * <i>k'</i> is not a constant constructor.
1570 */ 1600 */
1571 static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErr orCode.con1('REDIRECT_TO_NON_CLASS', 142, "The name '{0}' is not a type and cann ot be used in a redirected constructor"); 1601 static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErr orCode.con1('REDIRECT_TO_NON_CLASS', 147, "The name '{0}' is not a type and cann ot be used in a redirected constructor");
1572 1602
1573 /** 1603 /**
1574 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 1604 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
1575 * <i>k'</i> is not a constant constructor. 1605 * <i>k'</i> is not a constant constructor.
1576 */ 1606 */
1577 static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const Co mpileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 143, "Constant fact ory constructor cannot delegate to a non-constant constructor"); 1607 static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const Co mpileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 148, "Constant fact ory constructor cannot delegate to a non-constant constructor");
1578 1608
1579 /** 1609 /**
1580 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which 1610 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which
1581 * case its only action is to invoke another generative constructor. 1611 * case its only action is to invoke another generative constructor.
1582 */ 1612 */
1583 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 1 44, "The constructor '{0}' could not be found in '{1}'"); 1613 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 1 49, "The constructor '{0}' could not be found in '{1}'");
1584 1614
1585 /** 1615 /**
1586 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which 1616 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which
1587 * case its only action is to invoke another generative constructor. 1617 * case its only action is to invoke another generative constructor.
1588 */ 1618 */
1589 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTR UCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_C ONSTRUCTOR', 145, "Generative constructor cannot redirect to a factory construct or"); 1619 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTR UCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_C ONSTRUCTOR', 150, "Generative constructor cannot redirect to a factory construct or");
1590 1620
1591 /** 1621 /**
1592 * 5 Variables: A local variable may only be referenced at a source code locat ion that is after 1622 * 5 Variables: A local variable may only be referenced at a source code locat ion that is after
1593 * its initializer, if any, is complete, or a compile-time error occurs. 1623 * its initializer, if any, is complete, or a compile-time error occurs.
1594 */ 1624 */
1595 static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const Compil eTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 146, "Local variables canno t be referenced before they are declared"); 1625 static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const Compil eTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 151, "Local variables canno t be referenced before they are declared");
1596 1626
1597 /** 1627 /**
1598 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i> rethrow;</i> is not 1628 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i> rethrow;</i> is not
1599 * enclosed within a on-catch clause. 1629 * enclosed within a on-catch clause.
1600 */ 1630 */
1601 static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErr orCode.con1('RETHROW_OUTSIDE_CATCH', 147, "rethrow must be inside of a catch cla use"); 1631 static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErr orCode.con1('RETHROW_OUTSIDE_CATCH', 152, "rethrow must be inside of a catch cla use");
1602 1632
1603 /** 1633 /**
1604 * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i> 1634 * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i>
1605 * appears in a generative constructor. 1635 * appears in a generative constructor.
1606 */ 1636 */
1607 static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const Com pileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 148, "Constructors ca nnot return a value"); 1637 static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const Com pileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 153, "Constructors ca nnot return a value");
1638
1639 /**
1640 * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i>
1641 * appears in a generator function.
1642 */
1643 static const CompileTimeErrorCode RETURN_IN_GENERATOR = const CompileTimeError Code.con1('RETURN_IN_GENERATOR', 154, "Cannot return a value from a generator fu nction (one marked with either 'async*' or 'sync*')");
1608 1644
1609 /** 1645 /**
1610 * 14.1 Imports: It is a compile-time error if a prefix used in a deferred imp ort is used in 1646 * 14.1 Imports: It is a compile-time error if a prefix used in a deferred imp ort is used in
1611 * another import clause. 1647 * another import clause.
1612 */ 1648 */
1613 static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeEr rorCode.con1('SHARED_DEFERRED_PREFIX', 149, "The prefix of a deferred import can not be used in other import directives"); 1649 static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeEr rorCode.con1('SHARED_DEFERRED_PREFIX', 155, "The prefix of a deferred import can not be used in other import directives");
1614 1650
1615 /** 1651 /**
1616 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form 1652 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form
1617 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip; 1653 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip;
1618 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe r method invocation 1654 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe r method invocation
1619 * occurs in a top-level function or variable initializer, in an instance vari able initializer or 1655 * occurs in a top-level function or variable initializer, in an instance vari able initializer or
1620 * initializer list, in class Object, in a factory constructor, or in a static method or variable 1656 * initializer list, in class Object, in a factory constructor, or in a static method or variable
1621 * initializer. 1657 * initializer.
1622 */ 1658 */
1623 static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTime ErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 150, "Invalid context for 'super' inv ocation"); 1659 static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTime ErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 156, "Invalid context for 'super' inv ocation");
1624 1660
1625 /** 1661 /**
1626 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its 1662 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
1627 * only action is to invoke another generative constructor. 1663 * only action is to invoke another generative constructor.
1628 */ 1664 */
1629 static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const Com pileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 151, "The redirecting constructor cannot have a 'super' initializer"); 1665 static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const Com pileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 157, "The redirecting constructor cannot have a 'super' initializer");
1630 1666
1631 /** 1667 /**
1632 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 1668 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
1633 * error if a generative constructor of class Object includes a superinitializ er. 1669 * error if a generative constructor of class Object includes a superinitializ er.
1634 */ 1670 */
1635 static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileT imeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 152, ""); 1671 static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileT imeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 158, "");
1636 1672
1637 /** 1673 /**
1638 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a 1674 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a
1639 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object 1675 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object
1640 * expression are not subtypes of the bounds of the corresponding formal type parameters of 1676 * expression are not subtypes of the bounds of the corresponding formal type parameters of
1641 * <i>G</i>. 1677 * <i>G</i>.
1642 * 1678 *
1643 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if T is mal-bounded a 1679 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if T is mal-bounded a
1644 * dynamic error occurs. 1680 * dynamic error occurs.
1645 * 1681 *
1646 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time constant would raise 1682 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time constant would raise
1647 * an exception. 1683 * an exception.
1648 * 1684 *
1649 * @param boundedTypeName the name of the type used in the instance creation t hat should be 1685 * @param boundedTypeName the name of the type used in the instance creation t hat should be
1650 * limited by the bound as specified in the class declaration 1686 * limited by the bound as specified in the class declaration
1651 * @param boundingTypeName the name of the bounding type 1687 * @param boundingTypeName the name of the bounding type
1652 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS 1688 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS
1653 */ 1689 */
1654 static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const Co mpileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 153, "'{0}' does no t extend '{1}'"); 1690 static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const Co mpileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 159, "'{0}' does no t extend '{1}'");
1655 1691
1656 /** 1692 /**
1657 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano ther typedef, is a 1693 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano ther typedef, is a
1658 * compile time error. 1694 * compile time error.
1659 */ 1695 */
1660 static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const C ompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 154, "Type alias cannot reference itself directly or recursively via another typedef"); 1696 static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const C ompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 160, "Type alias cannot reference itself directly or recursively via another typedef");
1661 1697
1662 /** 1698 /**
1663 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current 1699 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current
1664 * scope, optionally followed by type arguments. 1700 * scope, optionally followed by type arguments.
1665 */ 1701 */
1666 static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode .con1('UNDEFINED_CLASS', 155, "Undefined class '{0}'"); 1702 static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode .con1('UNDEFINED_CLASS', 161, "Undefined class '{0}'");
1667 1703
1668 /** 1704 /**
1669 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears 1705 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears
1670 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is 1706 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is
1671 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i> 1707 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i>
1672 * (respectively <i>S.id</i>) 1708 * (respectively <i>S.id</i>)
1673 */ 1709 */
1674 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 156, "The cla ss '{0}' does not have a generative constructor '{1}'"); 1710 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 162, "The cla ss '{0}' does not have a generative constructor '{1}'");
1675 1711
1676 /** 1712 /**
1677 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears 1713 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears
1678 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is 1714 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is
1679 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i> 1715 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i>
1680 * (respectively <i>S.id</i>) 1716 * (respectively <i>S.id</i>)
1681 */ 1717 */
1682 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT ', 157, "The class '{0}' does not have a default generative constructor"); 1718 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT ', 163, "The class '{0}' does not have a default generative constructor");
1683 1719
1684 /** 1720 /**
1685 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 1721 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
1686 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 1722 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
1687 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 1723 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
1688 * 1724 *
1689 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 1725 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
1690 * uncaught exception being thrown. 1726 * uncaught exception being thrown.
1691 * 1727 *
1692 * @param name the name of the requested named parameter 1728 * @param name the name of the requested named parameter
1693 */ 1729 */
1694 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 158, "The named parameter '{0}' is not defined"); 1730 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 164, "The named parameter '{0}' is not defined");
1695 1731
1696 /** 1732 /**
1697 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 1733 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
1698 * not a library declaration. 1734 * not a library declaration.
1699 * 1735 *
1700 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is 1736 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is
1701 * not a library declaration. 1737 * not a library declaration.
1702 * 1738 *
1703 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 1739 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
1704 * declaration. 1740 * declaration.
1705 * 1741 *
1706 * @param uri the URI pointing to a non-existent file 1742 * @param uri the URI pointing to a non-existent file
1707 * @see #INVALID_URI 1743 * @see #INVALID_URI
1708 */ 1744 */
1709 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC ode.con1('URI_DOES_NOT_EXIST', 159, "Target of URI does not exist: '{0}'"); 1745 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC ode.con1('URI_DOES_NOT_EXIST', 165, "Target of URI does not exist: '{0}'");
1710 1746
1711 /** 1747 /**
1712 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if 1748 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if
1713 * <i>x</i> involves string interpolation. 1749 * <i>x</i> involves string interpolation.
1714 * 1750 *
1715 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if 1751 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if
1716 * <i>s</i> involves string interpolation. 1752 * <i>s</i> involves string interpolation.
1717 * 1753 *
1718 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is 1754 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is
1719 * not a compile-time constant, or if <i>x</i> involves string interpolation. 1755 * not a compile-time constant, or if <i>x</i> involves string interpolation.
1720 */ 1756 */
1721 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr rorCode.con1('URI_WITH_INTERPOLATION', 160, "URIs cannot use string interpolatio n"); 1757 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr rorCode.con1('URI_WITH_INTERPOLATION', 166, "URIs cannot use string interpolatio n");
1722 1758
1723 /** 1759 /**
1724 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is 1760 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is
1725 * not 2. It is a compile time error if the arity of a user-declared operator with one of the 1761 * not 2. It is a compile time error if the arity of a user-declared operator with one of the
1726 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1. 1762 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1.
1727 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a 1763 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a
1728 * compile time error if the arity of the user-declared operator ~ is not 0. 1764 * compile time error if the arity of the user-declared operator ~ is not 0.
1729 * 1765 *
1730 * @param operatorName the name of the declared operator 1766 * @param operatorName the name of the declared operator
1731 * @param expectedNumberOfParameters the number of parameters expected 1767 * @param expectedNumberOfParameters the number of parameters expected
1732 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration 1768 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration
1733 */ 1769 */
1734 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 161, "O perator '{0}' should declare exactly {1} parameter(s), but {2} found"); 1770 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 167, "O perator '{0}' should declare exactly {1} parameter(s), but {2} found");
1735 1771
1736 /** 1772 /**
1737 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar ed operator - is not 1773 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar ed operator - is not
1738 * 0 or 1. 1774 * 0 or 1.
1739 * 1775 *
1740 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration 1776 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration
1741 */ 1777 */
1742 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN US', 162, "Operator '-' should declare 0 or 1 parameter, but {0} found"); 1778 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN US', 168, "Operator '-' should declare 0 or 1 parameter, but {0} found");
1743 1779
1744 /** 1780 /**
1745 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include 1781 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include
1746 * exactly one required formal parameter <i>p</i>. 1782 * exactly one required formal parameter <i>p</i>.
1747 */ 1783 */
1748 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 163, "Sette rs should declare exactly one required parameter"); 1784 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 169, "Sette rs should declare exactly one required parameter");
1785
1786 /**
1787 * ?? Yield: It is a compile-time error if a yield statement appears in a func tion that is not a
1788 * generator function.
1789 */
1790 static const CompileTimeErrorCode YIELD_EACH_IN_NON_GENERATOR = const CompileT imeErrorCode.con1('YIELD_EACH_IN_NON_GENERATOR', 170, "Yield-each statements mus t be in a generator function (one marked with either 'async*' or 'sync*')");
1791
1792 /**
1793 * ?? Yield: It is a compile-time error if a yield statement appears in a func tion that is not a
1794 * generator function.
1795 */
1796 static const CompileTimeErrorCode YIELD_IN_NON_GENERATOR = const CompileTimeEr rorCode.con1('YIELD_IN_NON_GENERATOR', 171, "Yield statements must be in a gener ator function (one marked with either 'async*' or 'sync*')");
1749 1797
1750 static const List<CompileTimeErrorCode> values = const [ 1798 static const List<CompileTimeErrorCode> values = const [
1751 ACCESS_PRIVATE_ENUM_FIELD, 1799 ACCESS_PRIVATE_ENUM_FIELD,
1752 AMBIGUOUS_EXPORT, 1800 AMBIGUOUS_EXPORT,
1753 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, 1801 ARGUMENT_DEFINITION_TEST_NON_PARAMETER,
1802 ASYNC_FOR_IN_WRONG_CONTEXT,
1803 AWAIT_IN_WRONG_CONTEXT,
1754 BUILT_IN_IDENTIFIER_AS_TYPE, 1804 BUILT_IN_IDENTIFIER_AS_TYPE,
1755 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, 1805 BUILT_IN_IDENTIFIER_AS_TYPE_NAME,
1756 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, 1806 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME,
1757 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, 1807 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME,
1758 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, 1808 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS,
1759 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, 1809 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION,
1760 CONFLICTING_GETTER_AND_METHOD, 1810 CONFLICTING_GETTER_AND_METHOD,
1761 CONFLICTING_METHOD_AND_GETTER, 1811 CONFLICTING_METHOD_AND_GETTER,
1762 CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD, 1812 CONFLICTING_CONSTRUCTOR_NAME_AND_FIELD,
1763 CONFLICTING_CONSTRUCTOR_NAME_AND_METHOD, 1813 CONFLICTING_CONSTRUCTOR_NAME_AND_METHOD,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1824 INCONSISTENT_CASE_EXPRESSION_TYPES, 1874 INCONSISTENT_CASE_EXPRESSION_TYPES,
1825 INITIALIZER_FOR_NON_EXISTANT_FIELD, 1875 INITIALIZER_FOR_NON_EXISTANT_FIELD,
1826 INITIALIZER_FOR_STATIC_FIELD, 1876 INITIALIZER_FOR_STATIC_FIELD,
1827 INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD, 1877 INITIALIZING_FORMAL_FOR_NON_EXISTANT_FIELD,
1828 INITIALIZING_FORMAL_FOR_STATIC_FIELD, 1878 INITIALIZING_FORMAL_FOR_STATIC_FIELD,
1829 INSTANCE_MEMBER_ACCESS_FROM_FACTORY, 1879 INSTANCE_MEMBER_ACCESS_FROM_FACTORY,
1830 INSTANCE_MEMBER_ACCESS_FROM_STATIC, 1880 INSTANCE_MEMBER_ACCESS_FROM_STATIC,
1831 INSTANTIATE_ENUM, 1881 INSTANTIATE_ENUM,
1832 INVALID_ANNOTATION, 1882 INVALID_ANNOTATION,
1833 INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY, 1883 INVALID_ANNOTATION_FROM_DEFERRED_LIBRARY,
1884 INVALID_IDENTIFIER_IN_ASYNC,
1885 INVALID_MODIFIER_ON_CONSTRUCTOR,
1886 INVALID_MODIFIER_ON_SETTER,
1834 INVALID_CONSTANT, 1887 INVALID_CONSTANT,
1835 INVALID_CONSTRUCTOR_NAME, 1888 INVALID_CONSTRUCTOR_NAME,
1836 INVALID_FACTORY_NAME_NOT_A_CLASS, 1889 INVALID_FACTORY_NAME_NOT_A_CLASS,
1837 INVALID_REFERENCE_TO_THIS, 1890 INVALID_REFERENCE_TO_THIS,
1838 INVALID_TYPE_ARGUMENT_IN_CONST_LIST, 1891 INVALID_TYPE_ARGUMENT_IN_CONST_LIST,
1839 INVALID_TYPE_ARGUMENT_IN_CONST_MAP, 1892 INVALID_TYPE_ARGUMENT_IN_CONST_MAP,
1840 INVALID_URI, 1893 INVALID_URI,
1841 LABEL_IN_OUTER_SCOPE, 1894 LABEL_IN_OUTER_SCOPE,
1842 LABEL_UNDEFINED, 1895 LABEL_UNDEFINED,
1843 LIST_ELEMENT_TYPE_NOT_ASSIGNABLE, 1896 LIST_ELEMENT_TYPE_NOT_ASSIGNABLE,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, 1943 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS,
1891 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH, 1944 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH,
1892 REDIRECT_TO_MISSING_CONSTRUCTOR, 1945 REDIRECT_TO_MISSING_CONSTRUCTOR,
1893 REDIRECT_TO_NON_CLASS, 1946 REDIRECT_TO_NON_CLASS,
1894 REDIRECT_TO_NON_CONST_CONSTRUCTOR, 1947 REDIRECT_TO_NON_CONST_CONSTRUCTOR,
1895 REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR, 1948 REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR,
1896 REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR, 1949 REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR,
1897 REFERENCED_BEFORE_DECLARATION, 1950 REFERENCED_BEFORE_DECLARATION,
1898 RETHROW_OUTSIDE_CATCH, 1951 RETHROW_OUTSIDE_CATCH,
1899 RETURN_IN_GENERATIVE_CONSTRUCTOR, 1952 RETURN_IN_GENERATIVE_CONSTRUCTOR,
1953 RETURN_IN_GENERATOR,
1900 SHARED_DEFERRED_PREFIX, 1954 SHARED_DEFERRED_PREFIX,
1901 SUPER_IN_INVALID_CONTEXT, 1955 SUPER_IN_INVALID_CONTEXT,
1902 SUPER_IN_REDIRECTING_CONSTRUCTOR, 1956 SUPER_IN_REDIRECTING_CONSTRUCTOR,
1903 SUPER_INITIALIZER_IN_OBJECT, 1957 SUPER_INITIALIZER_IN_OBJECT,
1904 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, 1958 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS,
1905 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, 1959 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF,
1906 UNDEFINED_CLASS, 1960 UNDEFINED_CLASS,
1907 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, 1961 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER,
1908 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT, 1962 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT,
1909 UNDEFINED_NAMED_PARAMETER, 1963 UNDEFINED_NAMED_PARAMETER,
1910 URI_DOES_NOT_EXIST, 1964 URI_DOES_NOT_EXIST,
1911 URI_WITH_INTERPOLATION, 1965 URI_WITH_INTERPOLATION,
1912 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR, 1966 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR,
1913 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS, 1967 WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS,
1914 WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER]; 1968 WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER,
1969 YIELD_EACH_IN_NON_GENERATOR,
1970 YIELD_IN_NON_GENERATOR];
1915 1971
1916 /** 1972 /**
1917 * The template used to create the message to be displayed for this error. 1973 * The template used to create the message to be displayed for this error.
1918 */ 1974 */
1919 final String message; 1975 final String message;
1920 1976
1921 /** 1977 /**
1922 * The template used to create the correction to be displayed for this error, or `null` if 1978 * The template used to create the correction to be displayed for this error, or `null` if
1923 * there is no correction information for this error. 1979 * there is no correction information for this error.
1924 */ 1980 */
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after
4113 4169
4114 @override 4170 @override
4115 String get message => "{0}"; 4171 String get message => "{0}";
4116 4172
4117 @override 4173 @override
4118 ErrorType get type => ErrorType.TODO; 4174 ErrorType get type => ErrorType.TODO;
4119 4175
4120 @override 4176 @override
4121 String get uniqueName => "${runtimeType.toString()}.${name}"; 4177 String get uniqueName => "${runtimeType.toString()}.${name}";
4122 } 4178 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698