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 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 */ | 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"); | 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 | 1744 |
1745 /** | 1745 /** |
1746 * 7.6.2 Factories: It is a compile-time error if <i>k</i> is prefixed with th
e const modifier but | 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. | 1747 * <i>k'</i> is not a constant constructor. |
1748 */ | 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"); | 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"); |
1750 | 1750 |
1751 /** | 1751 /** |
1752 * 13.3 Local Variable Declaration: It is a compile-time error if <i>e</i> ref
ers to the name | |
1753 * <i>v</i> or the name <i>v=</i>. | |
1754 */ | |
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"); | |
1756 | |
1757 /** | |
1758 * 5 Variables: A local variable may only be referenced at a source code locat
ion that is after | 1752 * 5 Variables: A local variable may only be referenced at a source code locat
ion that is after |
1759 * its initializer, if any, is complete, or a compile-time error occurs. | 1753 * its initializer, if any, is complete, or a compile-time error occurs. |
1760 */ | 1754 */ |
1761 static final CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = new CompileT
imeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 123, "Local variables cannot
be referenced before they are declared"); | 1755 static final CompileTimeErrorCode REFERENCED_BEFORE_DECLARATION = new CompileT
imeErrorCode.con1('REFERENCED_BEFORE_DECLARATION', 122, "Local variables cannot
be referenced before they are declared"); |
1762 | 1756 |
1763 /** | 1757 /** |
1764 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>
rethrow;</i> is not | 1758 * 12.8.1 Rethrow: It is a compile-time error if an expression of the form <i>
rethrow;</i> is not |
1765 * enclosed within a on-catch clause. | 1759 * enclosed within a on-catch clause. |
1766 */ | 1760 */ |
1767 static final CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = new CompileTimeError
Code.con1('RETHROW_OUTSIDE_CATCH', 124, "rethrow must be inside of a catch claus
e"); | 1761 static final CompileTimeErrorCode RETHROW_OUTSIDE_CATCH = new CompileTimeError
Code.con1('RETHROW_OUTSIDE_CATCH', 123, "rethrow must be inside of a catch claus
e"); |
1768 | 1762 |
1769 /** | 1763 /** |
1770 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> | 1764 * 13.11 Return: It is a compile-time error if a return statement of the form
<i>return e;</i> |
1771 * appears in a generative constructor. | 1765 * appears in a generative constructor. |
1772 */ | 1766 */ |
1773 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 125, "Constructors cann
ot return a value"); | 1767 static final CompileTimeErrorCode RETURN_IN_GENERATIVE_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('RETURN_IN_GENERATIVE_CONSTRUCTOR', 124, "Constructors cann
ot return a value"); |
1774 | 1768 |
1775 /** | 1769 /** |
1776 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 1770 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
1777 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 1771 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
1778 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation | 1772 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a compile-time error if a supe
r method invocation |
1779 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or | 1773 * occurs in a top-level function or variable initializer, in an instance vari
able initializer or |
1780 * initializer list, in class Object, in a factory constructor, or in a static
method or variable | 1774 * initializer list, in class Object, in a factory constructor, or in a static
method or variable |
1781 * initializer. | 1775 * initializer. |
1782 */ | 1776 */ |
1783 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode.con1('SUPER_IN_INVALID_CONTEXT', 126, "Invalid context for 'super' invoc
ation"); | 1777 static final CompileTimeErrorCode SUPER_IN_INVALID_CONTEXT = new CompileTimeEr
rorCode.con1('SUPER_IN_INVALID_CONTEXT', 125, "Invalid context for 'super' invoc
ation"); |
1784 | 1778 |
1785 /** | 1779 /** |
1786 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its | 1780 * 7.6.1 Generative Constructors: A generative constructor may be redirecting,
in which case its |
1787 * only action is to invoke another generative constructor. | 1781 * only action is to invoke another generative constructor. |
1788 */ | 1782 */ |
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"); | 1783 static final CompileTimeErrorCode SUPER_IN_REDIRECTING_CONSTRUCTOR = new Compi
leTimeErrorCode.con1('SUPER_IN_REDIRECTING_CONSTRUCTOR', 126, "The redirecting c
onstructor cannot have a 'super' initializer"); |
1790 | 1784 |
1791 /** | 1785 /** |
1792 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time | 1786 * 7.6.1 Generative Constructors: Let <i>k</i> be a generative constructor. It
is a compile-time |
1793 * error if a generative constructor of class Object includes a superinitializ
er. | 1787 * error if a generative constructor of class Object includes a superinitializ
er. |
1794 */ | 1788 */ |
1795 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 128, ""); | 1789 static final CompileTimeErrorCode SUPER_INITIALIZER_IN_OBJECT = new CompileTim
eErrorCode.con1('SUPER_INITIALIZER_IN_OBJECT', 127, ""); |
1796 | 1790 |
1797 /** | 1791 /** |
1798 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a | 1792 * 12.11 Instance Creation: It is a static type warning if any of the type arg
uments to a |
1799 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object | 1793 * constructor of a generic type <i>G</i> invoked by a new expression or a con
stant object |
1800 * expression are not subtypes of the bounds of the corresponding formal type
parameters of | 1794 * expression are not subtypes of the bounds of the corresponding formal type
parameters of |
1801 * <i>G</i>. | 1795 * <i>G</i>. |
1802 * | 1796 * |
1803 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a | 1797 * 12.11.1 New: If T is malformed a dynamic error occurs. In checked mode, if
T is mal-bounded a |
1804 * dynamic error occurs. | 1798 * dynamic error occurs. |
1805 * | 1799 * |
1806 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise | 1800 * 12.1 Constants: It is a compile-time error if evaluation of a compile-time
constant would raise |
1807 * an exception. | 1801 * an exception. |
1808 * | 1802 * |
1809 * @param boundedTypeName the name of the type used in the instance creation t
hat should be | 1803 * @param boundedTypeName the name of the type used in the instance creation t
hat should be |
1810 * limited by the bound as specified in the class declaration | 1804 * limited by the bound as specified in the class declaration |
1811 * @param boundingTypeName the name of the bounding type | 1805 * @param boundingTypeName the name of the bounding type |
1812 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS | 1806 * @see StaticTypeWarningCode#TYPE_ARGUMENT_NOT_MATCHING_BOUNDS |
1813 */ | 1807 */ |
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'"); | 1808 static final CompileTimeErrorCode TYPE_ARGUMENT_NOT_MATCHING_BOUNDS = new Comp
ileTimeErrorCode.con1('TYPE_ARGUMENT_NOT_MATCHING_BOUNDS', 128, "'%s' does not e
xtend '%s'"); |
1815 | 1809 |
1816 /** | 1810 /** |
1817 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano
ther typedef, is a | 1811 * 15.3.1 Typedef: Any self reference, either directly, or recursively via ano
ther typedef, is a |
1818 * compile time error. | 1812 * compile time error. |
1819 */ | 1813 */ |
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"); | 1814 static final CompileTimeErrorCode TYPE_ALIAS_CANNOT_REFERENCE_ITSELF = new Com
pileTimeErrorCode.con1('TYPE_ALIAS_CANNOT_REFERENCE_ITSELF', 129, "Type alias ca
nnot reference itself directly or recursively via another typedef"); |
1821 | 1815 |
1822 /** | 1816 /** |
1823 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current | 1817 * 12.11.2 Const: It is a compile-time error if <i>T</i> is not a class access
ible in the current |
1824 * scope, optionally followed by type arguments. | 1818 * scope, optionally followed by type arguments. |
1825 */ | 1819 */ |
1826 static final CompileTimeErrorCode UNDEFINED_CLASS = new CompileTimeErrorCode.c
on1('UNDEFINED_CLASS', 131, "Undefined class '%s'"); | 1820 static final CompileTimeErrorCode UNDEFINED_CLASS = new CompileTimeErrorCode.c
on1('UNDEFINED_CLASS', 130, "Undefined class '%s'"); |
1827 | 1821 |
1828 /** | 1822 /** |
1829 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1823 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
1830 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1824 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
1831 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1825 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
1832 * (respectively <i>S.id</i>) | 1826 * (respectively <i>S.id</i>) |
1833 */ | 1827 */ |
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'"); | 1828 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER = new C
ompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER', 131, "The class
'%s' does not have a generative constructor '%s'"); |
1835 | 1829 |
1836 /** | 1830 /** |
1837 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears | 1831 * 7.6.1 Generative Constructors: Let <i>C</i> be the class in which the super
initializer appears |
1838 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is | 1832 * and let <i>S</i> be the superclass of <i>C</i>. Let <i>k</i> be a generativ
e constructor. It is |
1839 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> | 1833 * a compile-time error if class <i>S</i> does not declare a generative constr
uctor named <i>S</i> |
1840 * (respectively <i>S.id</i>) | 1834 * (respectively <i>S.id</i>) |
1841 */ | 1835 */ |
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"); | 1836 static final CompileTimeErrorCode UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT
= new CompileTimeErrorCode.con1('UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT',
132, "The class '%s' does not have a default generative constructor"); |
1843 | 1837 |
1844 /** | 1838 /** |
1845 * 12.14.3 Unqualified Invocation: If there exists a lexically visible declara
tion named | 1839 * 12.14.3 Unqualified Invocation: If there exists a lexically visible declara
tion named |
1846 * <i>id</i>, let <i>f<sub>id</sub></i> be the innermost such declaration. The
n: [skip]. | 1840 * <i>id</i>, let <i>f<sub>id</sub></i> be the innermost such declaration. The
n: [skip]. |
1847 * Otherwise, <i>i</i> is equivalent to <b>this</b>.<i>id</i>(<i>a<sub>1</sub>
</i>; ... | 1841 * Otherwise, <i>i</i> is equivalent to <b>this</b>.<i>id</i>(<i>a<sub>1</sub>
</i>; ... |
1848 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>). | 1842 * <i>x<sub>n+k</sub></i> : <i>a<sub>n+k</sub></i>). |
1849 * | 1843 * |
1850 * @param methodName the name of the method that is undefined | 1844 * @param methodName the name of the method that is undefined |
1851 */ | 1845 */ |
1852 static final CompileTimeErrorCode UNDEFINED_FUNCTION = new CompileTimeErrorCod
e.con1('UNDEFINED_FUNCTION', 134, "The function '%s' is not defined"); | 1846 static final CompileTimeErrorCode UNDEFINED_FUNCTION = new CompileTimeErrorCod
e.con1('UNDEFINED_FUNCTION', 133, "The function '%s' is not defined"); |
1853 | 1847 |
1854 /** | 1848 /** |
1855 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, | 1849 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, |
1856 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... | 1850 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... |
1857 * <i>p<sub>n+k</sub></i>} or a static warning occurs. | 1851 * <i>p<sub>n+k</sub></i>} or a static warning occurs. |
1858 * | 1852 * |
1859 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an | 1853 * 12.11.2 Const: It is a compile-time error if evaluation of a constant objec
t results in an |
1860 * uncaught exception being thrown. | 1854 * uncaught exception being thrown. |
1861 * | 1855 * |
1862 * @param name the name of the requested named parameter | 1856 * @param name the name of the requested named parameter |
1863 */ | 1857 */ |
1864 static final CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = new CompileTimeE
rrorCode.con1('UNDEFINED_NAMED_PARAMETER', 135, "The named parameter '%s' is not
defined"); | 1858 static final CompileTimeErrorCode UNDEFINED_NAMED_PARAMETER = new CompileTimeE
rrorCode.con1('UNDEFINED_NAMED_PARAMETER', 134, "The named parameter '%s' is not
defined"); |
1865 | 1859 |
1866 /** | 1860 /** |
1867 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is | 1861 * 14.2 Exports: It is a compile-time error if the compilation unit found at t
he specified URI is |
1868 * not a library declaration. | 1862 * not a library declaration. |
1869 * | 1863 * |
1870 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is | 1864 * 14.1 Imports: It is a compile-time error if the compilation unit found at t
he specified URI is |
1871 * not a library declaration. | 1865 * not a library declaration. |
1872 * | 1866 * |
1873 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part | 1867 * 14.3 Parts: It is a compile time error if the contents of the URI are not a
valid part |
1874 * declaration. | 1868 * declaration. |
1875 * | 1869 * |
1876 * @param uri the URI pointing to a non-existent file | 1870 * @param uri the URI pointing to a non-existent file |
1877 * @see #INVALID_URI | 1871 * @see #INVALID_URI |
1878 */ | 1872 */ |
1879 static final CompileTimeErrorCode URI_DOES_NOT_EXIST = new CompileTimeErrorCod
e.con1('URI_DOES_NOT_EXIST', 136, "Target of URI does not exist: '%s'"); | 1873 static final CompileTimeErrorCode URI_DOES_NOT_EXIST = new CompileTimeErrorCod
e.con1('URI_DOES_NOT_EXIST', 135, "Target of URI does not exist: '%s'"); |
1880 | 1874 |
1881 /** | 1875 /** |
1882 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if | 1876 * 14.1 Imports: It is a compile-time error if <i>x</i> is not a compile-time
constant, or if |
1883 * <i>x</i> involves string interpolation. | 1877 * <i>x</i> involves string interpolation. |
1884 * | 1878 * |
1885 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if | 1879 * 14.3 Parts: It is a compile-time error if <i>s</i> is not a compile-time co
nstant, or if |
1886 * <i>s</i> involves string interpolation. | 1880 * <i>s</i> involves string interpolation. |
1887 * | 1881 * |
1888 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is | 1882 * 14.5 URIs: It is a compile-time error if the string literal <i>x</i> that d
escribes a URI is |
1889 * not a compile-time constant, or if <i>x</i> involves string interpolation. | 1883 * not a compile-time constant, or if <i>x</i> involves string interpolation. |
1890 */ | 1884 */ |
1891 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode.con1('URI_WITH_INTERPOLATION', 137, "URIs cannot use string interpolation"
); | 1885 static final CompileTimeErrorCode URI_WITH_INTERPOLATION = new CompileTimeErro
rCode.con1('URI_WITH_INTERPOLATION', 136, "URIs cannot use string interpolation"
); |
1892 | 1886 |
1893 /** | 1887 /** |
1894 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is | 1888 * 7.1.1 Operators: It is a compile-time error if the arity of the user-declar
ed operator []= is |
1895 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the | 1889 * not 2. It is a compile time error if the arity of a user-declared operator
with one of the |
1896 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. | 1890 * names: <, >, <=, >=, ==, +, /, ~/, *, %, |, ^, &, <<, >
;>, [] is not 1. |
1897 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a | 1891 * It is a compile time error if the arity of the user-declared operator - is
not 0 or 1. It is a |
1898 * compile time error if the arity of the user-declared operator ~ is not 0. | 1892 * compile time error if the arity of the user-declared operator ~ is not 0. |
1899 * | 1893 * |
1900 * @param operatorName the name of the declared operator | 1894 * @param operatorName the name of the declared operator |
1901 * @param expectedNumberOfParameters the number of parameters expected | 1895 * @param expectedNumberOfParameters the number of parameters expected |
1902 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration | 1896 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration |
1903 */ | 1897 */ |
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"); | 1898 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR = ne
w CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR', 137, "Ope
rator '%s' should declare exactly %d parameter(s), but %d found"); |
1905 | 1899 |
1906 /** | 1900 /** |
1907 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar
ed operator - is not | 1901 * 7.1.1 Operators: It is a compile time error if the arity of the user-declar
ed operator - is not |
1908 * 0 or 1. | 1902 * 0 or 1. |
1909 * | 1903 * |
1910 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration | 1904 * @param actualNumberOfParameters the number of parameters found in the opera
tor declaration |
1911 */ | 1905 */ |
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"); | 1906 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINU
S = new CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_OPERATOR_MINUS
', 138, "Operator '-' should declare 0 or 1 parameter, but %d found"); |
1913 | 1907 |
1914 /** | 1908 /** |
1915 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list
does not include | 1909 * 7.3 Setters: It is a compile-time error if a setter's formal parameter list
does not include |
1916 * exactly one required formal parameter <i>p</i>. | 1910 * exactly one required formal parameter <i>p</i>. |
1917 */ | 1911 */ |
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"); | 1912 static final CompileTimeErrorCode WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER = new
CompileTimeErrorCode.con1('WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER', 139, "Setters
should declare exactly one required parameter"); |
1919 static final List<CompileTimeErrorCode> values = [ | 1913 static final List<CompileTimeErrorCode> values = [ |
1920 AMBIGUOUS_EXPORT, | 1914 AMBIGUOUS_EXPORT, |
1921 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, | 1915 ARGUMENT_DEFINITION_TEST_NON_PARAMETER, |
1922 BUILT_IN_IDENTIFIER_AS_TYPE, | 1916 BUILT_IN_IDENTIFIER_AS_TYPE, |
1923 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, | 1917 BUILT_IN_IDENTIFIER_AS_TYPE_NAME, |
1924 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, | 1918 BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME, |
1925 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, | 1919 BUILT_IN_IDENTIFIER_AS_TYPE_PARAMETER_NAME, |
1926 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, | 1920 CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS, |
1927 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, | 1921 COMPILE_TIME_CONSTANT_RAISES_EXCEPTION, |
1928 CONFLICTING_GETTER_AND_METHOD, | 1922 CONFLICTING_GETTER_AND_METHOD, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2032 PRIVATE_OPTIONAL_PARAMETER, | 2026 PRIVATE_OPTIONAL_PARAMETER, |
2033 RECURSIVE_COMPILE_TIME_CONSTANT, | 2027 RECURSIVE_COMPILE_TIME_CONSTANT, |
2034 RECURSIVE_CONSTRUCTOR_REDIRECT, | 2028 RECURSIVE_CONSTRUCTOR_REDIRECT, |
2035 RECURSIVE_FACTORY_REDIRECT, | 2029 RECURSIVE_FACTORY_REDIRECT, |
2036 RECURSIVE_INTERFACE_INHERITANCE, | 2030 RECURSIVE_INTERFACE_INHERITANCE, |
2037 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, | 2031 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_EXTENDS, |
2038 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, | 2032 RECURSIVE_INTERFACE_INHERITANCE_BASE_CASE_IMPLEMENTS, |
2039 REDIRECT_TO_MISSING_CONSTRUCTOR, | 2033 REDIRECT_TO_MISSING_CONSTRUCTOR, |
2040 REDIRECT_TO_NON_CLASS, | 2034 REDIRECT_TO_NON_CLASS, |
2041 REDIRECT_TO_NON_CONST_CONSTRUCTOR, | 2035 REDIRECT_TO_NON_CONST_CONSTRUCTOR, |
2042 REFERENCE_TO_DECLARED_VARIABLE_IN_INITIALIZER, | |
2043 REFERENCED_BEFORE_DECLARATION, | 2036 REFERENCED_BEFORE_DECLARATION, |
2044 RETHROW_OUTSIDE_CATCH, | 2037 RETHROW_OUTSIDE_CATCH, |
2045 RETURN_IN_GENERATIVE_CONSTRUCTOR, | 2038 RETURN_IN_GENERATIVE_CONSTRUCTOR, |
2046 SUPER_IN_INVALID_CONTEXT, | 2039 SUPER_IN_INVALID_CONTEXT, |
2047 SUPER_IN_REDIRECTING_CONSTRUCTOR, | 2040 SUPER_IN_REDIRECTING_CONSTRUCTOR, |
2048 SUPER_INITIALIZER_IN_OBJECT, | 2041 SUPER_INITIALIZER_IN_OBJECT, |
2049 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, | 2042 TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, |
2050 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, | 2043 TYPE_ALIAS_CANNOT_REFERENCE_ITSELF, |
2051 UNDEFINED_CLASS, | 2044 UNDEFINED_CLASS, |
2052 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, | 2045 UNDEFINED_CONSTRUCTOR_IN_INITIALIZER, |
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3453 */ | 3446 */ |
3454 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co
rrection) : super(name, ordinal) { | 3447 StaticTypeWarningCode.con2(String name, int ordinal, String message, String co
rrection) : super(name, ordinal) { |
3455 this._message = message; | 3448 this._message = message; |
3456 this.correction6 = correction; | 3449 this.correction6 = correction; |
3457 } | 3450 } |
3458 String get correction => correction6; | 3451 String get correction => correction6; |
3459 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 3452 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
3460 String get message => _message; | 3453 String get message => _message; |
3461 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 3454 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
3462 } | 3455 } |
OLD | NEW |