| OLD | NEW |
| 1 // This code was auto-generated, is not intended to be edited, and is subject to | 1 // This code was auto-generated, is not intended to be edited, and is subject to |
| 2 // significant change. Please see the README file for more information. | 2 // significant change. Please see the README file for more information. |
| 3 library engine.error; | 3 library engine.error; |
| 4 import 'java_core.dart'; | 4 import 'java_core.dart'; |
| 5 import 'source.dart'; | 5 import 'source.dart'; |
| 6 import 'ast.dart' show ASTNode; | 6 import 'ast.dart' show ASTNode; |
| 7 import 'scanner.dart' show Token; | 7 import 'scanner.dart' show Token; |
| 8 /** | 8 /** |
| 9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er
rorCode] | 9 * Instances of the enumeration `ErrorSeverity` represent the severity of an [Er
rorCode] |
| 10 * . | 10 * . |
| (...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. | 1727 * 7.9 Superclasses: It is a compile-time error if a class <i>C</i> is a super
class of itself. |
| 1728 * | 1728 * |
| 1729 * @param className the name of the class that implements itself recursively | 1729 * @param className the name of the class that implements itself recursively |
| 1730 */ | 1730 */ |
| 1731 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM
PLEMENTS = new CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_C
ASE_IMPLEMENTS', 118, "'%s' cannot implement itself"); | 1731 static final CompileTimeErrorCode RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IM
PLEMENTS = new CompileTimeErrorCode.con1('RECURSIVE_INTERFACE_INHERITANCE_BASE_C
ASE_IMPLEMENTS', 118, "'%s' cannot implement itself"); |
| 1732 | 1732 |
| 1733 /** | 1733 /** |
| 1734 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 1734 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 1735 * <i>k'</i> is not a constant constructor. | 1735 * <i>k'</i> is not a constant constructor. |
| 1736 */ | 1736 */ |
| 1737 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp
ileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 119, "Constant factor
y constructor cannot delegate to a non-constant constructor"); | 1737 static final CompileTimeErrorCode REDIRECT_TO_MISSING_CONSTRUCTOR = new Compil
eTimeErrorCode.con1('REDIRECT_TO_MISSING_CONSTRUCTOR', 119, "The constructor '%s
' could not be found in '%s'"); |
| 1738 |
| 1739 /** |
| 1740 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 1741 * <i>k'</i> is not a constant constructor. |
| 1742 */ |
| 1743 static final CompileTimeErrorCode REDIRECT_TO_NON_CLASS = new CompileTimeError
Code.con1('REDIRECT_TO_NON_CLASS', 120, "The name '%s' is not a type and cannot
be used in a redirected constructor"); |
| 1744 |
| 1745 /** |
| 1746 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but |
| 1747 * <i>k'</i> is not a constant constructor. |
| 1748 */ |
| 1749 static final CompileTimeErrorCode REDIRECT_TO_NON_CONST_CONSTRUCTOR = new Comp
ileTimeErrorCode.con1('REDIRECT_TO_NON_CONST_CONSTRUCTOR', 121, "Constant factor
y constructor cannot delegate to a non-constant constructor"); |
| 1738 | 1750 |
| 1739 /** | 1751 /** |
| 1740 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name | 1752 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name |
| 1741 * <i>v</i> or the name <i>v=</i>. | 1753 * <i>v</i> or the name <i>v=</i>. |
| 1742 */ | 1754 */ |
| 1743 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE
R = new CompileTimeErrorCode.con1('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER
', 120, "The name '%s' cannot be referenced in the initializer of a variable wit
h the same name"); | 1755 static final CompileTimeErrorCode REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZE
R = new CompileTimeErrorCode.con1('REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER
', 122, "The name '%s' cannot be referenced in the initializer of a variable wit
h the same name"); |
| 1744 | 1756 |
| 1745 /** | 1757 /** |
| 1746 * 5 Variables: A local variable may only be referenced at a source code locat
ion that is after | 1758 * 5 Variables: A local variable may only be referenced at a source code locat
ion that is after |
| 1747 * its initializer, if any, is complete, or a compile-time error occurs. | 1759 * its initializer, if any, is complete, or a compile-time error occurs. |
| 1748 */ | 1760 */ |
| 1749 static final CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = new CompileT
imeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 121, "Local variables cannot
be referenced before they are declared"); | 1761 static final CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = new CompileT
imeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 123, "Local variables cannot
be referenced before they are declared"); |
| 1750 | 1762 |
| 1751 /** | 1763 /** |
| 1752 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>
rethrow;</i> is not | 1764 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>
rethrow;</i> is not |
| 1753 * enclosed within a on-catch clause. | 1765 * enclosed within a on-catch clause. |
| 1754 */ | 1766 */ |
| 1755 static final CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = new CompileTimeError
Code.con1('RETHROW_OUTSIDE_CATCH', 122, "rethrow must be inside of a catch claus
e"); | 1767 static final CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = new CompileTimeError
Code.con1('RETHROW_OUTSIDE_CATCH', 124, "rethrow must be inside of a catch claus
e"); |
| 1756 | 1768 |
| 1757 /** | 1769 /** |
| 1758 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> | 1770 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> |
| 1759 * appears in a generative constructor. | 1771 * appears in a generative constructor. |
| 1760 */ | 1772 */ |
| 1761 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 123, "Constructors cann
ot return a value"); | 1773 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 125, "Constructors cann
ot return a value"); |
| 1762 | 1774 |
| 1763 /** | 1775 /** |
| 1764 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 1776 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
| 1765 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 1777 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
| 1766 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation | 1778 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation |
| 1767 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or | 1779 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or |
| 1768 * initializer list, in class Object, in a factory constructor, or in a static
method or variable | 1780 * initializer list, in class Object, in a factory constructor, or in a static
method or variable |
| 1769 * initializer. | 1781 * initializer. |
| 1770 */ | 1782 */ |
| 1771 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode.con1('SUPER_IN_INVALID_CONTEXT', 124, "Invalid context for 'super' invoc
ation"); | 1783 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode.con1('SUPER_IN_INVALID_CONTEXT', 126, "Invalid context for 'super' invoc
ation"); |
| 1772 | 1784 |
| 1773 /** | 1785 /** |
| 1774 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its | 1786 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its |
| 1775 * only action is to invoke another generative constructor. | 1787 * only action is to invoke another generative constructor. |
| 1776 */ | 1788 */ |
| 1777 static final CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 125, "The redirecting c
onstructor cannot have a 'super' initializer"); | 1789 static final CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 127, "The redirecting c
onstructor cannot have a 'super' initializer"); |
| 1778 | 1790 |
| 1779 /** | 1791 /** |
| 1780 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 1792 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
| 1781 * error if a generative constructor of class Object includes a superinitializ
er. | 1793 * error if a generative constructor of class Object includes a superinitializ
er. |
| 1782 */ | 1794 */ |
| 1783 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 126, ""); | 1795 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 128, ""); |
| 1784 | 1796 |
| 1785 /** | 1797 /** |
| 1786 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a | 1798 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a |
| 1787 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object | 1799 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object |
| 1788 * expression are not subtypes of the bounds of the corresponding formal type
parameters of | 1800 * expression are not subtypes of the bounds of the corresponding formal type
parameters of |
| 1789 * <i>G</i>. | 1801 * <i>G</i>. |
| 1790 * | 1802 * |
| 1791 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a | 1803 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a |
| 1792 * dynamic error occurs. | 1804 * dynamic error occurs. |
| 1793 * | 1805 * |
| 1794 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise | 1806 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise |
| 1795 * an exception. | 1807 * an exception. |
| 1796 * | 1808 * |
| 1797 * @param boundedTypeName the name of the type used in the instance creation t
hat should be | 1809 * @param boundedTypeName the name of the type used in the instance creation t
hat should be |
| 1798 * limited by the bound as specified in the class declaration | 1810 * limited by the bound as specified in the class declaration |
| 1799 * @param boundingTypeName the name of the bounding type | 1811 * @param boundingTypeName the name of the bounding type |
| 1800 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS | 1812 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS |
| 1801 */ | 1813 */ |
| 1802 static final CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Comp
ileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 127, "'%s' does not e
xtend '%s'"); | 1814 static final CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Comp
ileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 129, "'%s' does not e
xtend '%s'"); |
| 1803 | 1815 |
| 1804 /** | 1816 /** |
| 1805 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano
ther typedef, is a | 1817 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano
ther typedef, is a |
| 1806 * compile time error. | 1818 * compile time error. |
| 1807 */ | 1819 */ |
| 1808 static final CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = new Com
pileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 128, "Type alias ca
nnot reference itself directly or recursively via another typedef"); | 1820 static final CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = new Com
pileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 130, "Type alias ca
nnot reference itself directly or recursively via another typedef"); |
| 1809 | 1821 |
| 1810 /** | 1822 /** |
| 1811 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current | 1823 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current |
| 1812 * scope, optionally followed by type arguments. | 1824 * scope, optionally followed by type arguments. |
| 1813 */ | 1825 */ |
| 1814 static final CompileTimeErrorCode UNDEFINED_CLASS = new CompileTimeErrorCode.c
on1('UNDEFINED_CLASS', 129, "Undefined class '%s'"); | 1826 static final CompileTimeErrorCode UNDEFINED_CLASS = new CompileTimeErrorCode.c
on1('UNDEFINED_CLASS', 131, "Undefined class '%s'"); |
| 1815 | 1827 |
| 1816 /** | 1828 /** |
| 1817 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1829 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
| 1818 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1830 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
| 1819 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1831 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
| 1820 * (respectively <i>S.id</i>) | 1832 * (respectively <i>S.id</i>) |
| 1821 */ | 1833 */ |
| 1822 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 130, "The class
'%s' does not have a generative constructor '%s'"); | 1834 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 132, "The class
'%s' does not have a generative constructor '%s'"); |
| 1823 | 1835 |
| 1824 /** | 1836 /** |
| 1825 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1837 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
| 1826 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1838 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
| 1827 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1839 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
| 1828 * (respectively <i>S.id</i>) | 1840 * (respectively <i>S.id</i>) |
| 1829 */ | 1841 */ |
| 1830 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
= new CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT',
131, "The class '%s' does not have a default generative constructor"); | 1842 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
= new CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT',
133, "The class '%s' does not have a default generative constructor"); |
| 1831 | 1843 |
| 1832 /** | 1844 /** |
| 1833 * 12.14.3 Unqualified Invocation: If there exists a lexically visible declara
tion named | 1845 * 12.14.3 Unqualified Invocation: If there exists a lexically visible declara
tion named |
| 1834 * <i>id</i>, let <i>f<sub>id</sub></i> be the innermost such declaration. The
n: [skip]. | 1846 * <i>id</i>, let <i>f<sub>id</sub></i> be the innermost such declaration. The
n: [skip]. |
| 1835 * Otherwise, <i>i</i> is equivalent to <b>this</b>.<i>id</i>(<i>a<sub>1</sub>
</i>; ... | 1847 * Otherwise, <i>i</i> is equivalent to <b>this</b>.<i>id</i>(<i>a<sub>1</sub>
</i>; ... |
| 1836 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>). | 1848 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>). |
| 1837 * | 1849 * |
| 1838 * @param methodName the name of the method that is undefined | 1850 * @param methodName the name of the method that is undefined |
| 1839 */ | 1851 */ |
| 1840 static final CompileTimeErrorCode UNDEFINED_FUNCTION = new CompileTimeErrorCod
e.con1('UNDEFINED_FUNCTION', 132, "The function '%s' is not defined"); | 1852 static final CompileTimeErrorCode UNDEFINED_FUNCTION = new CompileTimeErrorCod
e.con1('UNDEFINED_FUNCTION', 134, "The function '%s' is not defined"); |
| 1841 | 1853 |
| 1842 /** | 1854 /** |
| 1843 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, | 1855 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, |
| 1844 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... | 1856 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... |
| 1845 * <i>p<sub>n+k</sub></i>} or a static warning occurs. | 1857 * <i>p<sub>n+k</sub></i>} or a static warning occurs. |
| 1846 * | 1858 * |
| 1847 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an | 1859 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an |
| 1848 * uncaught exception being thrown. | 1860 * uncaught exception being thrown. |
| 1849 * | 1861 * |
| 1850 * @param name the name of the requested named parameter | 1862 * @param name the name of the requested named parameter |
| 1851 */ | 1863 */ |
| 1852 static final CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = new CompileTimeE
rrorCode.con1('UNDEFINED_NAMED_PARAMETER', 133, "The named parameter '%s' is not
defined"); | 1864 static final CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = new CompileTimeE
rrorCode.con1('UNDEFINED_NAMED_PARAMETER', 135, "The named parameter '%s' is not
defined"); |
| 1853 | 1865 |
| 1854 /** | 1866 /** |
| 1855 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is | 1867 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is |
| 1856 * not a library declaration. | 1868 * not a library declaration. |
| 1857 * | 1869 * |
| 1858 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is | 1870 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is |
| 1859 * not a library declaration. | 1871 * not a library declaration. |
| 1860 * | 1872 * |
| 1861 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part | 1873 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part |
| 1862 * declaration. | 1874 * declaration. |
| 1863 * | 1875 * |
| 1864 * @param uri the URI pointing to a non-existent file | 1876 * @param uri the URI pointing to a non-existent file |
| 1865 * @see #INVALID_URI | 1877 * @see #INVALID_URI |
| 1866 */ | 1878 */ |
| 1867 static final CompileTimeErrorCode URI_DOES_NOT_EXIST = new CompileTimeErrorCod
e.con1('URI_DOES_NOT_EXIST', 134, "Target of URI does not exist: '%s'"); | 1879 static final CompileTimeErrorCode URI_DOES_NOT_EXIST = new CompileTimeErrorCod
e.con1('URI_DOES_NOT_EXIST', 136, "Target of URI does not exist: '%s'"); |
| 1868 | 1880 |
| 1869 /** | 1881 /** |
| 1870 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if | 1882 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if |
| 1871 * <i>x</i> involves string interpolation. | 1883 * <i>x</i> involves string interpolation. |
| 1872 * | 1884 * |
| 1873 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if | 1885 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if |
| 1874 * <i>s</i> involves string interpolation. | 1886 * <i>s</i> involves string interpolation. |
| 1875 * | 1887 * |
| 1876 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is | 1888 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is |
| 1877 * not a compile-time constant, or if <i>x</i> involves string interpolation. | 1889 * not a compile-time constant, or if <i>x</i> involves string interpolation. |
| 1878 */ | 1890 */ |
| 1879 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode.con1('URI_WITH_INTERPOLATION', 135, "URIs cannot use string interpolation"
); | 1891 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode.con1('URI_WITH_INTERPOLATION', 137, "URIs cannot use string interpolation"
); |
| 1880 | 1892 |
| 1881 /** | 1893 /** |
| 1882 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is | 1894 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is |
| 1883 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the | 1895 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the |
| 1884 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. | 1896 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. |
| 1885 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a | 1897 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a |
| 1886 * compile time error if the arity of the user-declared operator ~ is not 0. | 1898 * compile time error if the arity of the user-declared operator ~ is not 0. |
| 1887 * | 1899 * |
| 1888 * @param operatorName the name of the declared operator | 1900 * @param operatorName the name of the declared operator |
| 1889 * @param expectedNumberOfParameters the number of parameters expected | 1901 * @param expectedNumberOfParameters the number of parameters expected |
| 1890 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration | 1902 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration |
| 1891 */ | 1903 */ |
| 1892 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 136, "Ope
rator '%s' should declare exactly %d parameter(s), but %d found"); | 1904 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 138, "Ope
rator '%s' should declare exactly %d parameter(s), but %d found"); |
| 1893 | 1905 |
| 1894 /** | 1906 /** |
| 1895 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar
ed operator - is not | 1907 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar
ed operator - is not |
| 1896 * 0 or 1. | 1908 * 0 or 1. |
| 1897 * | 1909 * |
| 1898 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration | 1910 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration |
| 1899 */ | 1911 */ |
| 1900 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU
S = new CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS
', 137, "Operator '-' should declare 0 or 1 parameter, but %d found"); | 1912 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU
S = new CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS
', 139, "Operator '-' should declare 0 or 1 parameter, but %d found"); |
| 1901 | 1913 |
| 1902 /** | 1914 /** |
| 1903 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list
does not include | 1915 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list
does not include |
| 1904 * exactly one required formal parameter <i>p</i>. | 1916 * exactly one required formal parameter <i>p</i>. |
| 1905 */ | 1917 */ |
| 1906 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 138, "Setters
should declare exactly one required parameter"); | 1918 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 140, "Setters
should declare exactly one required parameter"); |
| 1907 static final List<CompileTimeErrorCode> values = [ | 1919 static final List<CompileTimeErrorCode> values = [ |
| 1908 AMBIGUOUS_EXPORT, | 1920 AMBIGUOUS_EXPORT, |
| 1909 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, | 1921 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, |
| 1910 BUILT_IN_IDENTIFIER_AS_TYPE, | 1922 BUILT_IN_IDENTIFIER_AS_TYPE, |
| 1911 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, | 1923 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, |
| 1912 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, | 1924 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, |
| 1913 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, | 1925 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, |
| 1914 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, | 1926 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, |
| 1915 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, | 1927 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, |
| 1916 CONFLICTING_GETTER_AND_METHOD, | 1928 CONFLICTING_GETTER_AND_METHOD, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2017 OPTIONAL_PARAMETER_IN_OPERATOR, | 2029 OPTIONAL_PARAMETER_IN_OPERATOR, |
| 2018 PART_OF_NON_PART, | 2030 PART_OF_NON_PART, |
| 2019 PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, | 2031 PREFIX_COLLIDES_WITH_TOP_LEVEL_MEMBER, |
| 2020 PRIVATE_OPTIONAL_PARAMETER, | 2032 PRIVATE_OPTIONAL_PARAMETER, |
| 2021 RECURSIVE_COMPILE_TIME_CONSTANT, | 2033 RECURSIVE_COMPILE_TIME_CONSTANT, |
| 2022 RECURSIVE_CONSTRUCTOR_REDIRECT, | 2034 RECURSIVE_CONSTRUCTOR_REDIRECT, |
| 2023 RECURSIVE_FACTORY_REDIRECT, | 2035 RECURSIVE_FACTORY_REDIRECT, |
| 2024 RECURSIVE_INTERFACE_INHERITANCE, | 2036 RECURSIVE_INTERFACE_INHERITANCE, |
| 2025 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, | 2037 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, |
| 2026 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, | 2038 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, |
| 2039 REDIRECT_TO_MISSING_CONSTRUCTOR, |
| 2040 REDIRECT_TO_NON_CLASS, |
| 2027 REDIRECT_TO_NON_CONST_CONSTRUCTOR, | 2041 REDIRECT_TO_NON_CONST_CONSTRUCTOR, |
| 2028 REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER, | 2042 REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER, |
| 2029 REFERENCED_BEFORE_DECLARATION, | 2043 REFERENCED_BEFORE_DECLARATION, |
| 2030 RETHROW_OUTSIDE_CATCH, | 2044 RETHROW_OUTSIDE_CATCH, |
| 2031 RETURN_IN_GENERATIVE_CONSTRUCTOR, | 2045 RETURN_IN_GENERATIVE_CONSTRUCTOR, |
| 2032 SUPER_IN_INVALID_CONTEXT, | 2046 SUPER_IN_INVALID_CONTEXT, |
| 2033 SUPER_IN_REDIRECTING_CONSTRUCTOR, | 2047 SUPER_IN_REDIRECTING_CONSTRUCTOR, |
| 2034 SUPER_INITIALIZER_IN_OBJECT, | 2048 SUPER_INITIALIZER_IN_OBJECT, |
| 2035 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, | 2049 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, |
| 2036 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, | 2050 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, |
| (...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3227 * 12.14.4 Function Expression Invocation: A function expression invocation <i
>i</i> has the form | 3241 * 12.14.4 Function Expression Invocation: A function expression invocation <i
>i</i> has the form |
| 3228 * <i>e<sub>f</sub>(a<sub>1</sub>, … a<sub>n</sub>, x<sub>n+1</sub>: a<
sub>n+1</sub>, | 3242 * <i>e<sub>f</sub>(a<sub>1</sub>, … a<sub>n</sub>, x<sub>n+1</sub>: a<
sub>n+1</sub>, |
| 3229 * …, x<sub>n+k</sub>: a<sub>n+k</sub>)</i>, where <i>e<sub>f</sub></i>
is an expression. | 3243 * …, x<sub>n+k</sub>: a<sub>n+k</sub>)</i>, where <i>e<sub>f</sub></i>
is an expression. |
| 3230 * | 3244 * |
| 3231 * It is a static type warning if the static type <i>F</i> of <i>e<sub>f</sub>
</i> may not be | 3245 * It is a static type warning if the static type <i>F</i> of <i>e<sub>f</sub>
</i> may not be |
| 3232 * assigned to a function type. | 3246 * assigned to a function type. |
| 3233 */ | 3247 */ |
| 3234 static final StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION_EXPRESSION = new
StaticTypeWarningCode.con1('INVOCATION_OF_NON_FUNCTION_EXPRESSION', 7, "Cannot
invoke a non-function"); | 3248 static final StaticTypeWarningCode INVOCATION_OF_NON_FUNCTION_EXPRESSION = new
StaticTypeWarningCode.con1('INVOCATION_OF_NON_FUNCTION_EXPRESSION', 7, "Cannot
invoke a non-function"); |
| 3235 | 3249 |
| 3236 /** | 3250 /** |
| 3237 * 12.19 Conditional: It is a static type warning if the type of <i>e<sub>1</s
ub></i> may not be | 3251 * 12.20 Conditional: It is a static type warning if the type of <i>e<sub>1</s
ub></i> may not be |
| 3238 * assigned to bool. | 3252 * assigned to bool. |
| 3239 * | 3253 * |
| 3240 * 13.5 If: It is a static type warning if the type of the expression <i>b</i>
may not be assigned | 3254 * 13.5 If: It is a static type warning if the type of the expression <i>b</i>
may not be assigned |
| 3241 * to bool. | 3255 * to bool. |
| 3242 * | 3256 * |
| 3243 * 13.7 While: It is a static type warning if the type of <i>e</i> may not be
assigned to bool. | 3257 * 13.7 While: It is a static type warning if the type of <i>e</i> may not be
assigned to bool. |
| 3244 * | 3258 * |
| 3245 * 13.8 Do: It is a static type warning if the type of <i>e</i> cannot be assi
gned to bool. | 3259 * 13.8 Do: It is a static type warning if the type of <i>e</i> cannot be assi
gned to bool. |
| 3246 */ | 3260 */ |
| 3247 static final StaticTypeWarningCode NON_BOOL_CONDITION = new StaticTypeWarningC
ode.con1('NON_BOOL_CONDITION', 8, "Conditions must have a static type of 'bool'"
); | 3261 static final StaticTypeWarningCode NON_BOOL_CONDITION = new StaticTypeWarningC
ode.con1('NON_BOOL_CONDITION', 8, "Conditions must have a static type of 'bool'"
); |
| 3248 | 3262 |
| 3249 /** | 3263 /** |
| 3250 * 13.15 Assert: It is a static type warning if the type of <i>e</i> may not b
e assigned to either | 3264 * 13.15 Assert: It is a static type warning if the type of <i>e</i> may not b
e assigned to either |
| 3251 * bool or () → bool | 3265 * bool or () → bool |
| 3252 */ | 3266 */ |
| 3253 static final StaticTypeWarningCode NON_BOOL_EXPRESSION = new StaticTypeWarning
Code.con1('NON_BOOL_EXPRESSION', 9, "Assertions must be on either a 'bool' or '(
) -> bool'"); | 3267 static final StaticTypeWarningCode NON_BOOL_EXPRESSION = new StaticTypeWarning
Code.con1('NON_BOOL_EXPRESSION', 9, "Assertions must be on either a 'bool' or '(
) -> bool'"); |
| 3254 | 3268 |
| 3255 /** | 3269 /** |
| 3270 * 12.28 Unary Expressions: The expression !<i>e</i> is equivalent to the expr
ession |
| 3271 * <i>e</i>?<b>false<b> : <b>true</b>. |
| 3272 * |
| 3273 * 12.20 Conditional: It is a static type warning if the type of <i>e<sub>1</s
ub></i> may not be |
| 3274 * assigned to bool. |
| 3275 */ |
| 3276 static final StaticTypeWarningCode NON_BOOL_NEGATION_EXPRESSION = new StaticTy
peWarningCode.con1('NON_BOOL_NEGATION_EXPRESSION', 10, "Negation argument must h
ave a static type of 'bool'"); |
| 3277 |
| 3278 /** |
| 3256 * 15.8 Parameterized Types: It is a static type warning if <i>A<sub>i</sub>,
1 <= i <= | 3279 * 15.8 Parameterized Types: It is a static type warning if <i>A<sub>i</sub>,
1 <= i <= |
| 3257 * n</i> does not denote a type in the enclosing lexical scope. | 3280 * n</i> does not denote a type in the enclosing lexical scope. |
| 3258 */ | 3281 */ |
| 3259 static final StaticTypeWarningCode NON_TYPE_AS_TYPE_ARGUMENT = new StaticTypeW
arningCode.con1('NON_TYPE_AS_TYPE_ARGUMENT', 10, "The name '%s' is not a type an
d cannot be used as a parameterized type"); | 3282 static final StaticTypeWarningCode NON_TYPE_AS_TYPE_ARGUMENT = new StaticTypeW
arningCode.con1('NON_TYPE_AS_TYPE_ARGUMENT', 11, "The name '%s' is not a type an
d cannot be used as a parameterized type"); |
| 3260 | 3283 |
| 3261 /** | 3284 /** |
| 3262 * 13.11 Return: It is a static type warning if the type of <i>e</i> may not b
e assigned to the | 3285 * 13.11 Return: It is a static type warning if the type of <i>e</i> may not b
e assigned to the |
| 3263 * declared return type of the immediately enclosing function. | 3286 * declared return type of the immediately enclosing function. |
| 3264 * | 3287 * |
| 3265 * @param actualReturnType the return type as declared in the return statement | 3288 * @param actualReturnType the return type as declared in the return statement |
| 3266 * @param expectedReturnType the expected return type as defined by the method | 3289 * @param expectedReturnType the expected return type as defined by the method |
| 3267 * @param methodName the name of the method | 3290 * @param methodName the name of the method |
| 3268 */ | 3291 */ |
| 3269 static final StaticTypeWarningCode RETURN_OF_INVALID_TYPE = new StaticTypeWarn
ingCode.con1('RETURN_OF_INVALID_TYPE', 11, "The return type '%s' is not a '%s',
as defined by the method '%s'"); | 3292 static final StaticTypeWarningCode RETURN_OF_INVALID_TYPE = new StaticTypeWarn
ingCode.con1('RETURN_OF_INVALID_TYPE', 12, "The return type '%s' is not a '%s',
as defined by the method '%s'"); |
| 3270 | 3293 |
| 3271 /** | 3294 /** |
| 3272 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a | 3295 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a |
| 3273 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object | 3296 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object |
| 3274 * expression are not subtypes of the bounds of the corresponding formal type
parameters of | 3297 * expression are not subtypes of the bounds of the corresponding formal type
parameters of |
| 3275 * <i>G</i>. | 3298 * <i>G</i>. |
| 3276 * | 3299 * |
| 3277 * 15.8 Parameterized Types: If <i>S</i> is the static type of a member <i>m</
i> of <i>G</i>, then | 3300 * 15.8 Parameterized Types: If <i>S</i> is the static type of a member <i>m</
i> of <i>G</i>, then |
| 3278 * the static type of the member <i>m</i> of <i>G<A<sub>1</sub>, … A
<sub>n</sub>></i> | 3301 * the static type of the member <i>m</i> of <i>G<A<sub>1</sub>, … A
<sub>n</sub>></i> |
| 3279 * is <i>[A<sub>1</sub>, …, A<sub>n</sub>/T<sub>1</sub>, …, T<su
b>n</sub>]S</i> | 3302 * is <i>[A<sub>1</sub>, …, A<sub>n</sub>/T<sub>1</sub>, …, T<su
b>n</sub>]S</i> |
| 3280 * where <i>T<sub>1</sub>, … T<sub>n</sub></i> are the formal type para
meters of <i>G</i>. | 3303 * where <i>T<sub>1</sub>, … T<sub>n</sub></i> are the formal type para
meters of <i>G</i>. |
| 3281 * Let <i>B<sub>i</sub></i> be the bounds of <i>T<sub>i</sub>, 1 <= i <=
n</i>. It is a | 3304 * Let <i>B<sub>i</sub></i> be the bounds of <i>T<sub>i</sub>, 1 <= i <=
n</i>. It is a |
| 3282 * static type warning if <i>A<sub>i</sub></i> is not a subtype of <i>[A<sub>1
</sub>, …, | 3305 * static type warning if <i>A<sub>i</sub></i> is not a subtype of <i>[A<sub>1
</sub>, …, |
| 3283 * A<sub>n</sub>/T<sub>1</sub>, …, T<sub>n</sub>]B<sub>i</sub>, 1 <=
i <= n</i>. | 3306 * A<sub>n</sub>/T<sub>1</sub>, …, T<sub>n</sub>]B<sub>i</sub>, 1 <=
i <= n</i>. |
| 3284 * | 3307 * |
| 3285 * 7.6.2 Factories: It is a static type warning if any of the type arguments t
o <i>k'</i> are not | 3308 * 7.6.2 Factories: It is a static type warning if any of the type arguments t
o <i>k'</i> are not |
| 3286 * subtypes of the bounds of the corresponding formal type parameters of type. | 3309 * subtypes of the bounds of the corresponding formal type parameters of type. |
| 3287 * | 3310 * |
| 3288 * @param boundedTypeName the name of the type used in the instance creation t
hat should be | 3311 * @param boundedTypeName the name of the type used in the instance creation t
hat should be |
| 3289 * limited by the bound as specified in the class declaration | 3312 * limited by the bound as specified in the class declaration |
| 3290 * @param boundingTypeName the name of the bounding type | 3313 * @param boundingTypeName the name of the bounding type |
| 3291 * @see #TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND | 3314 * @see #TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND |
| 3292 */ | 3315 */ |
| 3293 static final StaticTypeWarningCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Sta
ticTypeWarningCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 12, "'%s' does not
extend '%s'"); | 3316 static final StaticTypeWarningCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Sta
ticTypeWarningCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 13, "'%s' does not
extend '%s'"); |
| 3294 | 3317 |
| 3295 /** | 3318 /** |
| 3296 * 10 Generics: It is a static type warning if a type parameter is a supertype
of its upper bound. | 3319 * 10 Generics: It is a static type warning if a type parameter is a supertype
of its upper bound. |
| 3297 * | 3320 * |
| 3298 * @param typeParameterName the name of the type parameter | 3321 * @param typeParameterName the name of the type parameter |
| 3299 * @see #TYPE_ARGUMENT_NOT_MATCHING_BOUNDS | 3322 * @see #TYPE_ARGUMENT_NOT_MATCHING_BOUNDS |
| 3300 */ | 3323 */ |
| 3301 static final StaticTypeWarningCode TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND = new
StaticTypeWarningCode.con1('TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND', 13, "'%s' c
annot be a supertype of its upper bound"); | 3324 static final StaticTypeWarningCode TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND = new
StaticTypeWarningCode.con1('TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND', 14, "'%s' c
annot be a supertype of its upper bound"); |
| 3302 | 3325 |
| 3303 /** | 3326 /** |
| 3304 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is
a static type | 3327 * 12.17 Getter Invocation: Let <i>T</i> be the static type of <i>e</i>. It is
a static type |
| 3305 * warning if <i>T</i> does not have a getter named <i>m</i>. | 3328 * warning if <i>T</i> does not have a getter named <i>m</i>. |
| 3306 * | 3329 * |
| 3307 * @param getterName the name of the getter | 3330 * @param getterName the name of the getter |
| 3308 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for | 3331 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for |
| 3309 */ | 3332 */ |
| 3310 static final StaticTypeWarningCode UNDEFINED_GETTER = new StaticTypeWarningCod
e.con1('UNDEFINED_GETTER', 14, "There is no such getter '%s' in '%s'"); | 3333 static final StaticTypeWarningCode UNDEFINED_GETTER = new StaticTypeWarningCod
e.con1('UNDEFINED_GETTER', 15, "There is no such getter '%s' in '%s'"); |
| 3311 | 3334 |
| 3312 /** | 3335 /** |
| 3313 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I
t is a static type | 3336 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I
t is a static type |
| 3314 * warning if <i>T</i> does not have an accessible instance member named <i>m<
/i>. | 3337 * warning if <i>T</i> does not have an accessible instance member named <i>m<
/i>. |
| 3315 * | 3338 * |
| 3316 * @param methodName the name of the method that is undefined | 3339 * @param methodName the name of the method that is undefined |
| 3317 * @param typeName the resolved type name that the method lookup is happening
on | 3340 * @param typeName the resolved type name that the method lookup is happening
on |
| 3318 */ | 3341 */ |
| 3319 static final StaticTypeWarningCode UNDEFINED_METHOD = new StaticTypeWarningCod
e.con1('UNDEFINED_METHOD', 15, "The method '%s' is not defined for the class '%s
'"); | 3342 static final StaticTypeWarningCode UNDEFINED_METHOD = new StaticTypeWarningCod
e.con1('UNDEFINED_METHOD', 16, "The method '%s' is not defined for the class '%s
'"); |
| 3320 | 3343 |
| 3321 /** | 3344 /** |
| 3322 * 12.18 Assignment: Evaluation of an assignment of the form | 3345 * 12.18 Assignment: Evaluation of an assignment of the form |
| 3323 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is equiva
lent to the | 3346 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] = <i>e<sub>3</sub></i> is equiva
lent to the |
| 3324 * evaluation of the expression (a, i, e){a.[]=(i, e); return e;} (<i>e<sub>1<
/sub></i>, | 3347 * evaluation of the expression (a, i, e){a.[]=(i, e); return e;} (<i>e<sub>1<
/sub></i>, |
| 3325 * <i>e<sub>2</sub></i>, <i>e<sub>2</sub></i>). | 3348 * <i>e<sub>2</sub></i>, <i>e<sub>2</sub></i>). |
| 3326 * | 3349 * |
| 3327 * 12.29 Assignable Expressions: An assignable expression of the form | 3350 * 12.29 Assignable Expressions: An assignable expression of the form |
| 3328 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method invocat
ion of the operator | 3351 * <i>e<sub>1</sub></i>[<i>e<sub>2</sub></i>] is evaluated as a method invocat
ion of the operator |
| 3329 * method [] on <i>e<sub>1</sub></i> with argument <i>e<sub>2</sub></i>. | 3352 * method [] on <i>e<sub>1</sub></i> with argument <i>e<sub>2</sub></i>. |
| 3330 * | 3353 * |
| 3331 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I
t is a static type | 3354 * 12.15.1 Ordinary Invocation: Let <i>T</i> be the static type of <i>o</i>. I
t is a static type |
| 3332 * warning if <i>T</i> does not have an accessible instance member named <i>m<
/i>. | 3355 * warning if <i>T</i> does not have an accessible instance member named <i>m<
/i>. |
| 3333 * | 3356 * |
| 3334 * @param operator the name of the operator | 3357 * @param operator the name of the operator |
| 3335 * @param enclosingType the name of the enclosing type where the operator is b
eing looked for | 3358 * @param enclosingType the name of the enclosing type where the operator is b
eing looked for |
| 3336 */ | 3359 */ |
| 3337 static final StaticTypeWarningCode UNDEFINED_OPERATOR = new StaticTypeWarningC
ode.con1('UNDEFINED_OPERATOR', 16, "There is no such operator '%s' in '%s'"); | 3360 static final StaticTypeWarningCode UNDEFINED_OPERATOR = new StaticTypeWarningC
ode.con1('UNDEFINED_OPERATOR', 17, "There is no such operator '%s' in '%s'"); |
| 3338 | 3361 |
| 3339 /** | 3362 /** |
| 3340 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
It is a static type | 3363 * 12.18 Assignment: Let <i>T</i> be the static type of <i>e<sub>1</sub></i>.
It is a static type |
| 3341 * warning if <i>T</i> does not have an accessible instance setter named <i>v=
</i>. | 3364 * warning if <i>T</i> does not have an accessible instance setter named <i>v=
</i>. |
| 3342 * | 3365 * |
| 3343 * @param setterName the name of the setter | 3366 * @param setterName the name of the setter |
| 3344 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for | 3367 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for |
| 3345 * @see #INACCESSIBLE_SETTER | 3368 * @see #INACCESSIBLE_SETTER |
| 3346 */ | 3369 */ |
| 3347 static final StaticTypeWarningCode UNDEFINED_SETTER = new StaticTypeWarningCod
e.con1('UNDEFINED_SETTER', 17, "There is no such setter '%s' in '%s'"); | 3370 static final StaticTypeWarningCode UNDEFINED_SETTER = new StaticTypeWarningCod
e.con1('UNDEFINED_SETTER', 18, "There is no such setter '%s' in '%s'"); |
| 3348 | 3371 |
| 3349 /** | 3372 /** |
| 3350 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 3373 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
| 3351 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 3374 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
| 3352 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static type warning if <i>S<
/i> does not have an | 3375 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static type warning if <i>S<
/i> does not have an |
| 3353 * accessible instance member named <i>m</i>. | 3376 * accessible instance member named <i>m</i>. |
| 3354 * | 3377 * |
| 3355 * @param methodName the name of the method that is undefined | 3378 * @param methodName the name of the method that is undefined |
| 3356 * @param typeName the resolved type name that the method lookup is happening
on | 3379 * @param typeName the resolved type name that the method lookup is happening
on |
| 3357 */ | 3380 */ |
| 3358 static final StaticTypeWarningCode UNDEFINED_SUPER_METHOD = new StaticTypeWarn
ingCode.con1('UNDEFINED_SUPER_METHOD', 18, "There is no such method '%s' in '%s'
"); | 3381 static final StaticTypeWarningCode UNDEFINED_SUPER_METHOD = new StaticTypeWarn
ingCode.con1('UNDEFINED_SUPER_METHOD', 19, "There is no such method '%s' in '%s'
"); |
| 3359 | 3382 |
| 3360 /** | 3383 /** |
| 3361 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n
ot have an | 3384 * 12.15.1 Ordinary Invocation: It is a static type warning if <i>T</i> does n
ot have an |
| 3362 * accessible (3.2) instance member named <i>m</i>. | 3385 * accessible (3.2) instance member named <i>m</i>. |
| 3363 * | 3386 * |
| 3364 * This is a specialization of [INSTANCE_ACCESS_TO_STATIC_MEMBER] that is used
when we are | 3387 * This is a specialization of [INSTANCE_ACCESS_TO_STATIC_MEMBER] that is used
when we are |
| 3365 * able to find the name defined in a supertype. It exists to provide a more i
nformative error | 3388 * able to find the name defined in a supertype. It exists to provide a more i
nformative error |
| 3366 * message. | 3389 * message. |
| 3367 */ | 3390 */ |
| 3368 static final StaticTypeWarningCode UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_M
EMBER = new StaticTypeWarningCode.con1('UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATI
C_MEMBER', 19, "Static members from supertypes must be qualified by the name of
the defining type"); | 3391 static final StaticTypeWarningCode UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_M
EMBER = new StaticTypeWarningCode.con1('UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATI
C_MEMBER', 20, "Static members from supertypes must be qualified by the name of
the defining type"); |
| 3369 | 3392 |
| 3370 /** | 3393 /** |
| 3371 * 15.8 Parameterized Types: It is a static type warning if <i>G</i> is not a
generic type with | 3394 * 15.8 Parameterized Types: It is a static type warning if <i>G</i> is not a
generic type with |
| 3372 * exactly <i>n</i> type parameters. | 3395 * exactly <i>n</i> type parameters. |
| 3373 * | 3396 * |
| 3374 * @param typeName the name of the type being referenced (<i>G</i>) | 3397 * @param typeName the name of the type being referenced (<i>G</i>) |
| 3375 * @param parameterCount the number of type parameters that were declared | 3398 * @param parameterCount the number of type parameters that were declared |
| 3376 * @param argumentCount the number of type arguments provided | 3399 * @param argumentCount the number of type arguments provided |
| 3377 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS | 3400 * @see CompileTimeErrorCode#CONST_WITH_INVALID_TYPE_PARAMETERS |
| 3378 * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS | 3401 * @see CompileTimeErrorCode#NEW_WITH_INVALID_TYPE_PARAMETERS |
| 3379 */ | 3402 */ |
| 3380 static final StaticTypeWarningCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Static
TypeWarningCode.con1('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 20, "The type '%s' is dec
lared with %d type parameters, but %d type arguments were given"); | 3403 static final StaticTypeWarningCode WRONG_NUMBER_OF_TYPE_ARGUMENTS = new Static
TypeWarningCode.con1('WRONG_NUMBER_OF_TYPE_ARGUMENTS', 21, "The type '%s' is dec
lared with %d type parameters, but %d type arguments were given"); |
| 3381 static final List<StaticTypeWarningCode> values = [ | 3404 static final List<StaticTypeWarningCode> values = [ |
| 3382 EXPECTED_ONE_LIST_TYPE_ARGUMENTS, | 3405 EXPECTED_ONE_LIST_TYPE_ARGUMENTS, |
| 3383 EXPECTED_TWO_MAP_TYPE_ARGUMENTS, | 3406 EXPECTED_TWO_MAP_TYPE_ARGUMENTS, |
| 3384 INACCESSIBLE_SETTER, | 3407 INACCESSIBLE_SETTER, |
| 3385 INCONSISTENT_METHOD_INHERITANCE, | 3408 INCONSISTENT_METHOD_INHERITANCE, |
| 3386 INSTANCE_ACCESS_TO_STATIC_MEMBER, | 3409 INSTANCE_ACCESS_TO_STATIC_MEMBER, |
| 3387 INVALID_ASSIGNMENT, | 3410 INVALID_ASSIGNMENT, |
| 3388 INVOCATION_OF_NON_FUNCTION, | 3411 INVOCATION_OF_NON_FUNCTION, |
| 3389 INVOCATION_OF_NON_FUNCTION_EXPRESSION, | 3412 INVOCATION_OF_NON_FUNCTION_EXPRESSION, |
| 3390 NON_BOOL_CONDITION, | 3413 NON_BOOL_CONDITION, |
| 3391 NON_BOOL_EXPRESSION, | 3414 NON_BOOL_EXPRESSION, |
| 3415 NON_BOOL_NEGATION_EXPRESSION, |
| 3392 NON_TYPE_AS_TYPE_ARGUMENT, | 3416 NON_TYPE_AS_TYPE_ARGUMENT, |
| 3393 RETURN_OF_INVALID_TYPE, | 3417 RETURN_OF_INVALID_TYPE, |
| 3394 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, | 3418 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, |
| 3395 TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND, | 3419 TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND, |
| 3396 UNDEFINED_GETTER, | 3420 UNDEFINED_GETTER, |
| 3397 UNDEFINED_METHOD, | 3421 UNDEFINED_METHOD, |
| 3398 UNDEFINED_OPERATOR, | 3422 UNDEFINED_OPERATOR, |
| 3399 UNDEFINED_SETTER, | 3423 UNDEFINED_SETTER, |
| 3400 UNDEFINED_SUPER_METHOD, | 3424 UNDEFINED_SUPER_METHOD, |
| 3401 UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER, | 3425 UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3429 */ | 3453 */ |
| 3430 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co
rrection) : super(name, ordinal) { | 3454 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co
rrection) : super(name, ordinal) { |
| 3431 this._message = message; | 3455 this._message = message; |
| 3432 this.correction6 = correction; | 3456 this.correction6 = correction; |
| 3433 } | 3457 } |
| 3434 String get correction => correction6; | 3458 String get correction => correction6; |
| 3435 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 3459 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
| 3436 String get message => _message; | 3460 String get message => _message; |
| 3437 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 3461 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
| 3438 } | 3462 } |
| OLD | NEW |