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

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

Issue 294903015: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.error; 8 library engine.error;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo de { 387 class CompileTimeErrorCode extends Enum<CompileTimeErrorCode> implements ErrorCo de {
388 /** 388 /**
389 * 14.2 Exports: It is a compile-time error if a name <i>N</i> is re-exported by a library 389 * 14.2 Exports: It is a compile-time error if a name <i>N</i> is re-exported by a library
390 * <i>L</i> and <i>N</i> is introduced into the export namespace of <i>L</i> b y more than one 390 * <i>L</i> and <i>N</i> is introduced into the export namespace of <i>L</i> b y more than one
391 * export, unless each all exports refer to same declaration for the name N. 391 * export, unless each all exports refer to same declaration for the name N.
392 * 392 *
393 * @param ambiguousElementName the name of the ambiguous element 393 * @param ambiguousElementName the name of the ambiguous element
394 * @param firstLibraryName the name of the first library that the type is foun d 394 * @param firstLibraryName the name of the first library that the type is foun d
395 * @param secondLibraryName the name of the second library that the type is fo und 395 * @param secondLibraryName the name of the second library that the type is fo und
396 */ 396 */
397 static const CompileTimeErrorCode AMBIGUOUS_EXPORT = const CompileTimeErrorCod e.con1('AMBIGUOUS_EXPORT', 0, "The element '%s' is defined in the libraries '%s' and '%s'"); 397 static const CompileTimeErrorCode AMBIGUOUS_EXPORT = const CompileTimeErrorCod e.con1('AMBIGUOUS_EXPORT', 0, "The name '%s' is defined in the libraries '%s' an d '%s'");
398 398
399 /** 399 /**
400 * 12.33 Argument Definition Test: It is a compile time error if <i>v</i> does not denote a formal 400 * 12.33 Argument Definition Test: It is a compile time error if <i>v</i> does not denote a formal
401 * parameter. 401 * parameter.
402 * 402 *
403 * @param the name of the identifier in the argument definition test that is n ot a parameter 403 * @param the name of the identifier in the argument definition test that is n ot a parameter
404 */ 404 */
405 static const CompileTimeErrorCode ARGUMENT_DEFINITION_TEST_NON_PARAMETER = con st CompileTimeErrorCode.con1('ARGUMENT_DEFINITION_TEST_NON_PARAMETER', 1, "'%s' is not a parameter"); 405 static const CompileTimeErrorCode ARGUMENT_DEFINITION_TEST_NON_PARAMETER = con st CompileTimeErrorCode.con1('ARGUMENT_DEFINITION_TEST_NON_PARAMETER', 1, "'%s' is not a parameter");
406 406
407 /** 407 /**
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 * 1484 *
1485 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself. 1485 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
1486 * 1486 *
1487 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself. 1487 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself.
1488 * 1488 *
1489 * @param className the name of the class that implements itself recursively 1489 * @param className the name of the class that implements itself recursively
1490 */ 1490 */
1491 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM PLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE _CASE_IMPLEMENTS', 131, "'%s' cannot implement itself"); 1491 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM PLEMENTS = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE _CASE_IMPLEMENTS', 131, "'%s' cannot implement itself");
1492 1492
1493 /** 1493 /**
1494 * 7.10 Superinterfaces: It is a compile-time error if the interface of a clas s <i>C</i> is a
1495 * superinterface of itself.
1496 *
1497 * 8.1 Superinterfaces: It is a compile-time error if an interface is a superi nterface of itself.
1498 *
1499 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super class of itself.
1500 *
1501 * @param className the name of the class that implements itself recursively
1502 */
1503 static const CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WI TH = const CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_ WITH', 132, "'%s' cannot use itself as a mixin");
1504
1505 /**
1494 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 1506 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
1495 * <i>k'</i> is not a constant constructor. 1507 * <i>k'</i> is not a constant constructor.
1496 */ 1508 */
1497 static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const Comp ileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 132, "The constructor ' %s' could not be found in '%s'"); 1509 static const CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = const Comp ileTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 133, "The constructor ' %s' could not be found in '%s'");
1498 1510
1499 /** 1511 /**
1500 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 1512 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
1501 * <i>k'</i> is not a constant constructor. 1513 * <i>k'</i> is not a constant constructor.
1502 */ 1514 */
1503 static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErr orCode.con1('REDIRECT_TO_NON_CLASS', 133, "The name '%s' is not a type and canno t be used in a redirected constructor"); 1515 static const CompileTimeErrorCode REDIRECT_TO_NON_CLASS = const CompileTimeErr orCode.con1('REDIRECT_TO_NON_CLASS', 134, "The name '%s' is not a type and canno t be used in a redirected constructor");
1504 1516
1505 /** 1517 /**
1506 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but 1518 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th e const modifier but
1507 * <i>k'</i> is not a constant constructor. 1519 * <i>k'</i> is not a constant constructor.
1508 */ 1520 */
1509 static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const Co mpileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 134, "Constant fact ory constructor cannot delegate to a non-constant constructor"); 1521 static const CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = const Co mpileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 135, "Constant fact ory constructor cannot delegate to a non-constant constructor");
1510 1522
1511 /** 1523 /**
1512 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which 1524 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which
1513 * case its only action is to invoke another generative constructor. 1525 * case its only action is to invoke another generative constructor.
1514 */ 1526 */
1515 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 1 35, "The constructor '%s' could not be found in '%s'"); 1527 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR', 1 36, "The constructor '%s' could not be found in '%s'");
1516 1528
1517 /** 1529 /**
1518 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which 1530 * 7.6.1 Generative constructors: A generative constructor may be <i>redirecti ng</i>, in which
1519 * case its only action is to invoke another generative constructor. 1531 * case its only action is to invoke another generative constructor.
1520 */ 1532 */
1521 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTR UCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_C ONSTRUCTOR', 136, "Generative constructor cannot redirect to a factory construct or"); 1533 static const CompileTimeErrorCode REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTR UCTOR = const CompileTimeErrorCode.con1('REDIRECT_GENERATIVE_TO_NON_GENERATIVE_C ONSTRUCTOR', 137, "Generative constructor cannot redirect to a factory construct or");
1522 1534
1523 /** 1535 /**
1524 * 5 Variables: A local variable may only be referenced at a source code locat ion that is after 1536 * 5 Variables: A local variable may only be referenced at a source code locat ion that is after
1525 * its initializer, if any, is complete, or a compile-time error occurs. 1537 * its initializer, if any, is complete, or a compile-time error occurs.
1526 */ 1538 */
1527 static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const Compil eTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 137, "Local variables canno t be referenced before they are declared"); 1539 static const CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = const Compil eTimeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 138, "Local variables canno t be referenced before they are declared");
1528 1540
1529 /** 1541 /**
1530 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i> rethrow;</i> is not 1542 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i> rethrow;</i> is not
1531 * enclosed within a on-catch clause. 1543 * enclosed within a on-catch clause.
1532 */ 1544 */
1533 static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErr orCode.con1('RETHROW_OUTSIDE_CATCH', 138, "rethrow must be inside of a catch cla use"); 1545 static const CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = const CompileTimeErr orCode.con1('RETHROW_OUTSIDE_CATCH', 139, "rethrow must be inside of a catch cla use");
1534 1546
1535 /** 1547 /**
1536 * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i> 1548 * 13.12 Return: It is a compile-time error if a return statement of the form <i>return e;</i>
1537 * appears in a generative constructor. 1549 * appears in a generative constructor.
1538 */ 1550 */
1539 static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const Com pileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 139, "Constructors ca nnot return a value"); 1551 static const CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = const Com pileTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 140, "Constructors ca nnot return a value");
1540 1552
1541 /** 1553 /**
1542 * 14.1 Imports: It is a compile-time error if a prefix used in a deferred imp ort is used in 1554 * 14.1 Imports: It is a compile-time error if a prefix used in a deferred imp ort is used in
1543 * another import clause. 1555 * another import clause.
1544 */ 1556 */
1545 static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeEr rorCode.con1('SHARED_DEFERRED_PREFIX', 140, "The prefix of a deferred import can not be used in other import directives"); 1557 static const CompileTimeErrorCode SHARED_DEFERRED_PREFIX = const CompileTimeEr rorCode.con1('SHARED_DEFERRED_PREFIX', 141, "The prefix of a deferred import can not be used in other import directives");
1546 1558
1547 /** 1559 /**
1548 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form 1560 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form
1549 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip; 1561 * <i>super.m(a<sub>1</sub>, &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n +1</sub>, &hellip;
1550 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe r method invocation 1562 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe r method invocation
1551 * occurs in a top-level function or variable initializer, in an instance vari able initializer or 1563 * occurs in a top-level function or variable initializer, in an instance vari able initializer or
1552 * initializer list, in class Object, in a factory constructor, or in a static method or variable 1564 * initializer list, in class Object, in a factory constructor, or in a static method or variable
1553 * initializer. 1565 * initializer.
1554 */ 1566 */
1555 static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTime ErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 141, "Invalid context for 'super' inv ocation"); 1567 static const CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = const CompileTime ErrorCode.con1('SUPER_IN_INVALID_CONTEXT', 142, "Invalid context for 'super' inv ocation");
1556 1568
1557 /** 1569 /**
1558 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its 1570 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, in which case its
1559 * only action is to invoke another generative constructor. 1571 * only action is to invoke another generative constructor.
1560 */ 1572 */
1561 static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const Com pileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 142, "The redirecting constructor cannot have a 'super' initializer"); 1573 static const CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = const Com pileTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 143, "The redirecting constructor cannot have a 'super' initializer");
1562 1574
1563 /** 1575 /**
1564 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time 1576 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It is a compile-time
1565 * error if a generative constructor of class Object includes a superinitializ er. 1577 * error if a generative constructor of class Object includes a superinitializ er.
1566 */ 1578 */
1567 static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileT imeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 143, ""); 1579 static const CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = const CompileT imeErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 144, "");
1568 1580
1569 /** 1581 /**
1570 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a 1582 * 12.11 Instance Creation: It is a static type warning if any of the type arg uments to a
1571 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object 1583 * constructor of a generic type <i>G</i> invoked by a new expression or a con stant object
1572 * expression are not subtypes of the bounds of the corresponding formal type parameters of 1584 * expression are not subtypes of the bounds of the corresponding formal type parameters of
1573 * <i>G</i>. 1585 * <i>G</i>.
1574 * 1586 *
1575 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if T is mal-bounded a 1587 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if T is mal-bounded a
1576 * dynamic error occurs. 1588 * dynamic error occurs.
1577 * 1589 *
1578 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time constant would raise 1590 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time constant would raise
1579 * an exception. 1591 * an exception.
1580 * 1592 *
1581 * @param boundedTypeName the name of the type used in the instance creation t hat should be 1593 * @param boundedTypeName the name of the type used in the instance creation t hat should be
1582 * limited by the bound as specified in the class declaration 1594 * limited by the bound as specified in the class declaration
1583 * @param boundingTypeName the name of the bounding type 1595 * @param boundingTypeName the name of the bounding type
1584 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS 1596 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS
1585 */ 1597 */
1586 static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const Co mpileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 144, "'%s' does not extend '%s'"); 1598 static const CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = const Co mpileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 145, "'%s' does not extend '%s'");
1587 1599
1588 /** 1600 /**
1589 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano ther typedef, is a 1601 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano ther typedef, is a
1590 * compile time error. 1602 * compile time error.
1591 */ 1603 */
1592 static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const C ompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 145, "Type alias cannot reference itself directly or recursively via another typedef"); 1604 static const CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = const C ompileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 146, "Type alias cannot reference itself directly or recursively via another typedef");
1593 1605
1594 /** 1606 /**
1595 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current 1607 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access ible in the current
1596 * scope, optionally followed by type arguments. 1608 * scope, optionally followed by type arguments.
1597 */ 1609 */
1598 static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode .con1('UNDEFINED_CLASS', 146, "Undefined class '%s'"); 1610 static const CompileTimeErrorCode UNDEFINED_CLASS = const CompileTimeErrorCode .con1('UNDEFINED_CLASS', 147, "Undefined class '%s'");
1599 1611
1600 /** 1612 /**
1601 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears 1613 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears
1602 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is 1614 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is
1603 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i> 1615 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i>
1604 * (respectively <i>S.id</i>) 1616 * (respectively <i>S.id</i>)
1605 */ 1617 */
1606 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 147, "The cla ss '%s' does not have a generative constructor '%s'"); 1618 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 148, "The cla ss '%s' does not have a generative constructor '%s'");
1607 1619
1608 /** 1620 /**
1609 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears 1621 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super initializer appears
1610 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is 1622 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ e constructor. It is
1611 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i> 1623 * a compile-time error if class <i>S</i> does not declare a generative constr uctor named <i>S</i>
1612 * (respectively <i>S.id</i>) 1624 * (respectively <i>S.id</i>)
1613 */ 1625 */
1614 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT ', 148, "The class '%s' does not have a default generative constructor"); 1626 static const CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT = const CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT ', 149, "The class '%s' does not have a default generative constructor");
1615 1627
1616 /** 1628 /**
1617 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>, 1629 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>, <i>1<=i<=l</i>,
1618 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ... 1630 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i > ...
1619 * <i>p<sub>n+k</sub></i>} or a static warning occurs. 1631 * <i>p<sub>n+k</sub></i>} or a static warning occurs.
1620 * 1632 *
1621 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an 1633 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec t results in an
1622 * uncaught exception being thrown. 1634 * uncaught exception being thrown.
1623 * 1635 *
1624 * @param name the name of the requested named parameter 1636 * @param name the name of the requested named parameter
1625 */ 1637 */
1626 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 149, "The named parameter '%s' is n ot defined"); 1638 static const CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = const CompileTim eErrorCode.con1('UNDEFINED_NAMED_PARAMETER', 150, "The named parameter '%s' is n ot defined");
1627 1639
1628 /** 1640 /**
1629 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is 1641 * 14.2 Exports: It is a compile-time error if the compilation unit found at t he specified URI is
1630 * not a library declaration. 1642 * not a library declaration.
1631 * 1643 *
1632 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is 1644 * 14.1 Imports: It is a compile-time error if the compilation unit found at t he specified URI is
1633 * not a library declaration. 1645 * not a library declaration.
1634 * 1646 *
1635 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part 1647 * 14.3 Parts: It is a compile time error if the contents of the URI are not a valid part
1636 * declaration. 1648 * declaration.
1637 * 1649 *
1638 * @param uri the URI pointing to a non-existent file 1650 * @param uri the URI pointing to a non-existent file
1639 * @see #INVALID_URI 1651 * @see #INVALID_URI
1640 */ 1652 */
1641 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC ode.con1('URI_DOES_NOT_EXIST', 150, "Target of URI does not exist: '%s'"); 1653 static const CompileTimeErrorCode URI_DOES_NOT_EXIST = const CompileTimeErrorC ode.con1('URI_DOES_NOT_EXIST', 151, "Target of URI does not exist: '%s'");
1642 1654
1643 /** 1655 /**
1644 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if 1656 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time constant, or if
1645 * <i>x</i> involves string interpolation. 1657 * <i>x</i> involves string interpolation.
1646 * 1658 *
1647 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if 1659 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co nstant, or if
1648 * <i>s</i> involves string interpolation. 1660 * <i>s</i> involves string interpolation.
1649 * 1661 *
1650 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is 1662 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d escribes a URI is
1651 * not a compile-time constant, or if <i>x</i> involves string interpolation. 1663 * not a compile-time constant, or if <i>x</i> involves string interpolation.
1652 */ 1664 */
1653 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr rorCode.con1('URI_WITH_INTERPOLATION', 151, "URIs cannot use string interpolatio n"); 1665 static const CompileTimeErrorCode URI_WITH_INTERPOLATION = const CompileTimeEr rorCode.con1('URI_WITH_INTERPOLATION', 152, "URIs cannot use string interpolatio n");
1654 1666
1655 /** 1667 /**
1656 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is 1668 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar ed operator []= is
1657 * not 2. It is a compile time error if the arity of a user-declared operator with one of the 1669 * not 2. It is a compile time error if the arity of a user-declared operator with one of the
1658 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1. 1670 * names: &lt;, &gt;, &lt;=, &gt;=, ==, +, /, ~/, *, %, |, ^, &, &lt;&lt;, &gt ;&gt;, [] is not 1.
1659 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a 1671 * It is a compile time error if the arity of the user-declared operator - is not 0 or 1. It is a
1660 * compile time error if the arity of the user-declared operator ~ is not 0. 1672 * compile time error if the arity of the user-declared operator ~ is not 0.
1661 * 1673 *
1662 * @param operatorName the name of the declared operator 1674 * @param operatorName the name of the declared operator
1663 * @param expectedNumberOfParameters the number of parameters expected 1675 * @param expectedNumberOfParameters the number of parameters expected
1664 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration 1676 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration
1665 */ 1677 */
1666 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 152, "O perator '%s' should declare exactly %d parameter(s), but %d found"); 1678 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = co nst CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 153, "O perator '%s' should declare exactly %d parameter(s), but %d found");
1667 1679
1668 /** 1680 /**
1669 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar ed operator - is not 1681 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar ed operator - is not
1670 * 0 or 1. 1682 * 0 or 1.
1671 * 1683 *
1672 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration 1684 * @param actualNumberOfParameters the number of parameters found in the opera tor declaration
1673 */ 1685 */
1674 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN US', 153, "Operator '-' should declare 0 or 1 parameter, but %d found"); 1686 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU S = const CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MIN US', 154, "Operator '-' should declare 0 or 1 parameter, but %d found");
1675 1687
1676 /** 1688 /**
1677 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include 1689 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list does not include
1678 * exactly one required formal parameter <i>p</i>. 1690 * exactly one required formal parameter <i>p</i>.
1679 */ 1691 */
1680 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 154, "Sette rs should declare exactly one required parameter"); 1692 static const CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = cons t CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 155, "Sette rs should declare exactly one required parameter");
1681 1693
1682 static const List<CompileTimeErrorCode> values = const [ 1694 static const List<CompileTimeErrorCode> values = const [
1683 AMBIGUOUS_EXPORT, 1695 AMBIGUOUS_EXPORT,
1684 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, 1696 ARGUMENT_DEFINITION_TEST_NON_PARAMETER,
1685 BUILT_IN_IDENTIFIER_AS_TYPE, 1697 BUILT_IN_IDENTIFIER_AS_TYPE,
1686 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, 1698 BUILT_IN_IDENTIFIER_AS_TYPE_NAME,
1687 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, 1699 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME,
1688 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, 1700 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME,
1689 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, 1701 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS,
1690 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, 1702 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 OPTIONAL_PARAMETER_IN_OPERATOR, 1817 OPTIONAL_PARAMETER_IN_OPERATOR,
1806 PART_OF_NON_PART, 1818 PART_OF_NON_PART,
1807 PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, 1819 PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER,
1808 PRIVATE_OPTIONAL_PARAMETER, 1820 PRIVATE_OPTIONAL_PARAMETER,
1809 RECURSIVE_COMPILE_TIME_CONSTANT, 1821 RECURSIVE_COMPILE_TIME_CONSTANT,
1810 RECURSIVE_CONSTRUCTOR_REDIRECT, 1822 RECURSIVE_CONSTRUCTOR_REDIRECT,
1811 RECURSIVE_FACTORY_REDIRECT, 1823 RECURSIVE_FACTORY_REDIRECT,
1812 RECURSIVE_INTERFACE_INHERITANCE, 1824 RECURSIVE_INTERFACE_INHERITANCE,
1813 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, 1825 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS,
1814 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, 1826 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS,
1827 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_WITH,
1815 REDIRECT_TO_MISSING_CONSTRUCTOR, 1828 REDIRECT_TO_MISSING_CONSTRUCTOR,
1816 REDIRECT_TO_NON_CLASS, 1829 REDIRECT_TO_NON_CLASS,
1817 REDIRECT_TO_NON_CONST_CONSTRUCTOR, 1830 REDIRECT_TO_NON_CONST_CONSTRUCTOR,
1818 REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR, 1831 REDIRECT_GENERATIVE_TO_MISSING_CONSTRUCTOR,
1819 REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR, 1832 REDIRECT_GENERATIVE_TO_NON_GENERATIVE_CONSTRUCTOR,
1820 REFERENCED_BEFORE_DECLARATION, 1833 REFERENCED_BEFORE_DECLARATION,
1821 RETHROW_OUTSIDE_CATCH, 1834 RETHROW_OUTSIDE_CATCH,
1822 RETURN_IN_GENERATIVE_CONSTRUCTOR, 1835 RETURN_IN_GENERATIVE_CONSTRUCTOR,
1823 SHARED_DEFERRED_PREFIX, 1836 SHARED_DEFERRED_PREFIX,
1824 SUPER_IN_INVALID_CONTEXT, 1837 SUPER_IN_INVALID_CONTEXT,
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2973 * * A static warning occurs. 2986 * * A static warning occurs.
2974 * * If <i>N</i> is referenced as a function, getter or setter, a <i>NoSuchMet hodError</i> is 2987 * * If <i>N</i> is referenced as a function, getter or setter, a <i>NoSuchMet hodError</i> is
2975 * raised. 2988 * raised.
2976 * * If <i>N</i> is referenced as a type, it is treated as a malformed type. 2989 * * If <i>N</i> is referenced as a type, it is treated as a malformed type.
2977 * </ol> 2990 * </ol>
2978 * 2991 *
2979 * @param ambiguousTypeName the name of the ambiguous type 2992 * @param ambiguousTypeName the name of the ambiguous type
2980 * @param firstLibraryName the name of the first library that the type is foun d 2993 * @param firstLibraryName the name of the first library that the type is foun d
2981 * @param secondLibraryName the name of the second library that the type is fo und 2994 * @param secondLibraryName the name of the second library that the type is fo und
2982 */ 2995 */
2983 static const StaticWarningCode AMBIGUOUS_IMPORT = const StaticWarningCode.con1 ('AMBIGUOUS_IMPORT', 0, "The type '%s' is defined in the libraries '%s' and '%s' "); 2996 static const StaticWarningCode AMBIGUOUS_IMPORT = const StaticWarningCode.con1 ('AMBIGUOUS_IMPORT', 0, "The name '%s' is defined in the libraries %s");
2984 2997
2985 /** 2998 /**
2986 * 12.11.1 New: It is a static warning if the static type of <i>a<sub>i</sub>, 1 &lt;= i &lt;= n+ 2999 * 12.11.1 New: It is a static warning if the static type of <i>a<sub>i</sub>, 1 &lt;= i &lt;= n+
2987 * k</i> may not be assigned to the type of the corresponding formal parameter of the constructor 3000 * k</i> may not be assigned to the type of the corresponding formal parameter of the constructor
2988 * <i>T.id</i> (respectively <i>T</i>). 3001 * <i>T.id</i> (respectively <i>T</i>).
2989 * 3002 *
2990 * 12.11.2 Const: It is a static warning if the static type of <i>a<sub>i</sub >, 1 &lt;= i &lt;= 3003 * 12.11.2 Const: It is a static warning if the static type of <i>a<sub>i</sub >, 1 &lt;= i &lt;=
2991 * n+ k</i> may not be assigned to the type of the corresponding formal parame ter of the 3004 * n+ k</i> may not be assigned to the type of the corresponding formal parame ter of the
2992 * constructor <i>T.id</i> (respectively <i>T</i>). 3005 * constructor <i>T.id</i> (respectively <i>T</i>).
2993 * 3006 *
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
3919 3932
3920 @override 3933 @override
3921 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 3934 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
3922 3935
3923 @override 3936 @override
3924 String get message => "%s"; 3937 String get message => "%s";
3925 3938
3926 @override 3939 @override
3927 ErrorType get type => ErrorType.TODO; 3940 ErrorType get type => ErrorType.TODO;
3928 } 3941 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/java_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698