| 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 {@code ErrorSeverity} represent the severity of
an {@link ErrorCode}. | 9 * Instances of the enumeration {@code ErrorSeverity} represent the severity of
an {@link ErrorCode}. |
| 10 * @coverage dart.engine.error | 10 * @coverage dart.engine.error |
| (...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 | 1906 |
| 1907 /** | 1907 /** |
| 1908 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form | 1908 * 12.15.4 Super Invocation: A super method invocation <i>i</i> has the form |
| 1909 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … | 1909 * <i>super.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n
+1</sub>, … |
| 1910 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. If <i>S.m</i> exists, it is a static
warning if the type | 1910 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. If <i>S.m</i> exists, it is a static
warning if the type |
| 1911 * <i>F</i> of <i>S.m</i> may not be assigned to a function type. | 1911 * <i>F</i> of <i>S.m</i> may not be assigned to a function type. |
| 1912 */ | 1912 */ |
| 1913 static final StaticWarningCode INVOCATION_OF_NON_FUNCTION = new StaticWarningC
ode('INVOCATION_OF_NON_FUNCTION', 34, ""); | 1913 static final StaticWarningCode INVOCATION_OF_NON_FUNCTION = new StaticWarningC
ode('INVOCATION_OF_NON_FUNCTION', 34, ""); |
| 1914 | 1914 |
| 1915 /** | 1915 /** |
| 1916 * 15.1 Static Types: A type <i>T</i> is malformed iff: <li><i>T</i> has the f
orm <i>id</i> or the | |
| 1917 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively | |
| 1918 * <i>prefix.id</i>) does not denote a type.</li> <li><i>T</i> denotes a type
variable in the | |
| 1919 * enclosing lexical scope, but occurs in the signature or body of a static me
mber.</li> <li> | |
| 1920 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, | |
| 1921 * and <i>G</i> is malformed.</li></ul> | |
| 1922 * <p> | |
| 1923 * Any use of a malformed type gives rise to a static warning. | |
| 1924 */ | |
| 1925 static final StaticWarningCode MALFORMED_TYPE = new StaticWarningCode('MALFORM
ED_TYPE', 35, ""); | |
| 1926 | |
| 1927 /** | |
| 1928 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type | 1916 * 7.3 Setters: It is a static warning if a class has a setter named <i>v=</i>
with argument type |
| 1929 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be | 1917 * <i>T</i> and a getter named <i>v</i> with return type <i>S</i>, and <i>T</i
> may not be |
| 1930 * assigned to <i>S</i>. | 1918 * assigned to <i>S</i>. |
| 1931 */ | 1919 */ |
| 1932 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static
WarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 36, "The parameter type for se
tter '%s' is %s which is not assignable to its getter (of type %s)"); | 1920 static final StaticWarningCode MISMATCHED_GETTER_AND_SETTER_TYPES = new Static
WarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 35, "The parameter type for se
tter '%s' is %s which is not assignable to its getter (of type %s)"); |
| 1933 | 1921 |
| 1934 /** | 1922 /** |
| 1935 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst
ract class and | 1923 * 12.11.1 New: It is a static warning if <i>q</i> is a constructor of an abst
ract class and |
| 1936 * <i>q</i> is not a factory constructor. | 1924 * <i>q</i> is not a factory constructor. |
| 1937 */ | 1925 */ |
| 1938 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode
('NEW_WITH_ABSTRACT_CLASS', 37, "Abstract classes cannot be created with a 'new'
expression"); | 1926 static final StaticWarningCode NEW_WITH_ABSTRACT_CLASS = new StaticWarningCode
('NEW_WITH_ABSTRACT_CLASS', 36, "Abstract classes cannot be created with a 'new'
expression"); |
| 1939 | 1927 |
| 1940 /** | 1928 /** |
| 1941 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i
n the current scope, | 1929 * 12.11.1 New: It is a static warning if <i>T</i> is not a class accessible i
n the current scope, |
| 1942 * optionally followed by type arguments. | 1930 * optionally followed by type arguments. |
| 1943 * @param name the name of the non-type element | 1931 * @param name the name of the non-type element |
| 1944 */ | 1932 */ |
| 1945 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode('NEW_
WITH_NON_TYPE', 38, "The name '%s' is not a class"); | 1933 static final StaticWarningCode NEW_WITH_NON_TYPE = new StaticWarningCode('NEW_
WITH_NON_TYPE', 37, "The name '%s' is not a class"); |
| 1946 | 1934 |
| 1947 /** | 1935 /** |
| 1948 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: | 1936 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: |
| 1949 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, | 1937 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, |
| 1950 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a | 1938 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a |
| 1951 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. | 1939 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. |
| 1952 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: | 1940 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: |
| 1953 * a<sub>n+1</sub>, … x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta
tic warning if the | 1941 * a<sub>n+1</sub>, … x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta
tic warning if the |
| 1954 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. | 1942 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. |
| 1955 */ | 1943 */ |
| 1956 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = new StaticWarn
ingCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', 39, "The class '%s' does not have a co
nstructor '%s'"); | 1944 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR = new StaticWarn
ingCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', 38, "The class '%s' does not have a co
nstructor '%s'"); |
| 1957 | 1945 |
| 1958 /** | 1946 /** |
| 1959 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: | 1947 * 12.11.1 New: If <i>T</i> is a class or parameterized type accessible in the
current scope then: |
| 1960 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, | 1948 * 1. If <i>e</i> is of the form <i>new T.id(a<sub>1</sub>, …, a<sub>n<
/sub>, |
| 1961 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a | 1949 * x<sub>n+1</sub>: a<sub>n+1</sub>, …, x<sub>n+k</sub>: a<sub>n+k</sub
>)</i> it is a |
| 1962 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. | 1950 * static warning if <i>T.id</i> is not the name of a constructor declared by
the type <i>T</i>. |
| 1963 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: | 1951 * If <i>e</i> of the form <i>new T(a<sub>1</sub>, …, a<sub>n</sub>, x<
sub>n+1</sub>: |
| 1964 * a<sub>n+1</sub>, … x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta
tic warning if the | 1952 * a<sub>n+1</sub>, … x<sub>n+k</sub>: a<sub>n+kM/sub>)</i> it is a sta
tic warning if the |
| 1965 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. | 1953 * type <i>T</i> does not declare a constructor with the same name as the decl
aration of <i>T</i>. |
| 1966 */ | 1954 */ |
| 1967 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = new St
aticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 40, "The class '%s' do
es not have a default constructor"); | 1955 static final StaticWarningCode NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT = new St
aticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 39, "The class '%s' do
es not have a default constructor"); |
| 1968 | 1956 |
| 1969 /** | 1957 /** |
| 1970 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 1958 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 1971 * abstract method. | 1959 * abstract method. |
| 1972 * <p> | 1960 * <p> |
| 1973 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class | 1961 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class |
| 1974 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a | 1962 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a |
| 1975 * corresponding instance member <i>m</i>. | 1963 * corresponding instance member <i>m</i>. |
| 1976 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first | 1964 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first |
| 1977 * member | 1965 * member |
| 1978 * @param enclosingClass enclosing class of the first missing member | 1966 * @param enclosingClass enclosing class of the first missing member |
| 1979 * @param name first member name | 1967 * @param name first member name |
| 1980 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second | 1968 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second |
| 1981 * member | 1969 * member |
| 1982 * @param enclosingClass enclosing class of the second missing member | 1970 * @param enclosingClass enclosing class of the second missing member |
| 1983 * @param name second member name | 1971 * @param name second member name |
| 1984 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the third | 1972 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the third |
| 1985 * member | 1973 * member |
| 1986 * @param enclosingClass enclosing class of the third missing member | 1974 * @param enclosingClass enclosing class of the third missing member |
| 1987 * @param name third member name | 1975 * @param name third member name |
| 1988 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the fourth | 1976 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the fourth |
| 1989 * member | 1977 * member |
| 1990 * @param enclosingClass enclosing class of the fourth missing member | 1978 * @param enclosingClass enclosing class of the fourth missing member |
| 1991 * @param name fourth member name | 1979 * @param name fourth member name |
| 1992 * @param additionalCount the number of additional missing members that aren't
listed | 1980 * @param additionalCount the number of additional missing members that aren't
listed |
| 1993 */ | 1981 */ |
| 1994 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV
E_PLUS = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE
_PLUS', 41, "Missing inherited members: %s'%s.%s', %s'%s.%s', %s'%s.%s', %s'%s.%
s' and %d more"); | 1982 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIV
E_PLUS = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE
_PLUS', 40, "Missing inherited members: %s'%s.%s', %s'%s.%s', %s'%s.%s', %s'%s.%
s' and %d more"); |
| 1995 | 1983 |
| 1996 /** | 1984 /** |
| 1997 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 1985 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 1998 * abstract method. | 1986 * abstract method. |
| 1999 * <p> | 1987 * <p> |
| 2000 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class | 1988 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class |
| 2001 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a | 1989 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a |
| 2002 * corresponding instance member <i>m</i>. | 1990 * corresponding instance member <i>m</i>. |
| 2003 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first | 1991 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first |
| 2004 * member | 1992 * member |
| 2005 * @param enclosingClass enclosing class of the first missing member | 1993 * @param enclosingClass enclosing class of the first missing member |
| 2006 * @param name first member name | 1994 * @param name first member name |
| 2007 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second | 1995 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second |
| 2008 * member | 1996 * member |
| 2009 * @param enclosingClass enclosing class of the second missing member | 1997 * @param enclosingClass enclosing class of the second missing member |
| 2010 * @param name second member name | 1998 * @param name second member name |
| 2011 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the third | 1999 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the third |
| 2012 * member | 2000 * member |
| 2013 * @param enclosingClass enclosing class of the third missing member | 2001 * @param enclosingClass enclosing class of the third missing member |
| 2014 * @param name third member name | 2002 * @param name third member name |
| 2015 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the fourth | 2003 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the fourth |
| 2016 * member | 2004 * member |
| 2017 * @param enclosingClass enclosing class of the fourth missing member | 2005 * @param enclosingClass enclosing class of the fourth missing member |
| 2018 * @param name fourth member name | 2006 * @param name fourth member name |
| 2019 */ | 2007 */ |
| 2020 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU
R = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 42
, "Missing inherited members: %s'%s.%s', %s'%s.%s', %s'%s.%s' and %s'%s.%s'"); | 2008 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOU
R = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 41
, "Missing inherited members: %s'%s.%s', %s'%s.%s', %s'%s.%s' and %s'%s.%s'"); |
| 2021 | 2009 |
| 2022 /** | 2010 /** |
| 2023 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2011 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 2024 * abstract method. | 2012 * abstract method. |
| 2025 * <p> | 2013 * <p> |
| 2026 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class | 2014 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class |
| 2027 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a | 2015 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a |
| 2028 * corresponding instance member <i>m</i>. | 2016 * corresponding instance member <i>m</i>. |
| 2029 * @param getterSetterOrMethod a string containing either "get ", "set " or "" | 2017 * @param getterSetterOrMethod a string containing either "get ", "set " or "" |
| 2030 * @param enclosingClass enclosing class of the missing member | 2018 * @param enclosingClass enclosing class of the missing member |
| 2031 * @param name member name | 2019 * @param name member name |
| 2032 */ | 2020 */ |
| 2033 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
= new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 43,
"Missing inherited member %s'%s.%s'"); | 2021 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE
= new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 42,
"Missing inherited member %s'%s.%s'"); |
| 2034 | 2022 |
| 2035 /** | 2023 /** |
| 2036 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2024 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 2037 * abstract method. | 2025 * abstract method. |
| 2038 * <p> | 2026 * <p> |
| 2039 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class | 2027 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class |
| 2040 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a | 2028 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a |
| 2041 * corresponding instance member <i>m</i>. | 2029 * corresponding instance member <i>m</i>. |
| 2042 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first | 2030 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first |
| 2043 * member | 2031 * member |
| 2044 * @param enclosingClass enclosing class of the first missing member | 2032 * @param enclosingClass enclosing class of the first missing member |
| 2045 * @param name first member name | 2033 * @param name first member name |
| 2046 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second | 2034 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second |
| 2047 * member | 2035 * member |
| 2048 * @param enclosingClass enclosing class of the second missing member | 2036 * @param enclosingClass enclosing class of the second missing member |
| 2049 * @param name second member name | 2037 * @param name second member name |
| 2050 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the third | 2038 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the third |
| 2051 * member | 2039 * member |
| 2052 * @param enclosingClass enclosing class of the third missing member | 2040 * @param enclosingClass enclosing class of the third missing member |
| 2053 * @param name third member name | 2041 * @param name third member name |
| 2054 */ | 2042 */ |
| 2055 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE',
44, "Missing inherited members: %s'%s.%s', %s'%s.%s' and %s'%s.%s'"); | 2043 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THR
EE = new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE',
43, "Missing inherited members: %s'%s.%s', %s'%s.%s' and %s'%s.%s'"); |
| 2056 | 2044 |
| 2057 /** | 2045 /** |
| 2058 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an | 2046 * 7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract
class inherits an |
| 2059 * abstract method. | 2047 * abstract method. |
| 2060 * <p> | 2048 * <p> |
| 2061 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class | 2049 * 7.10 Superinterfaces: It is a static warning if the implicit interface of a
non-abstract class |
| 2062 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a | 2050 * <i>C</i> includes an instance member <i>m</i> and <i>C</i> does not declare
or inherit a |
| 2063 * corresponding instance member <i>m</i>. | 2051 * corresponding instance member <i>m</i>. |
| 2064 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first | 2052 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the first |
| 2065 * member | 2053 * member |
| 2066 * @param enclosingClass enclosing class of the first missing member | 2054 * @param enclosingClass enclosing class of the first missing member |
| 2067 * @param name first member name | 2055 * @param name first member name |
| 2068 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second | 2056 * @param getterSetterOrMethod a string containing either "get ", "set " or ""
for the second |
| 2069 * member | 2057 * member |
| 2070 * @param enclosingClass enclosing class of the second missing member | 2058 * @param enclosingClass enclosing class of the second missing member |
| 2071 * @param name second member name | 2059 * @param name second member name |
| 2072 */ | 2060 */ |
| 2073 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
= new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 45,
"Missing inherited members: %s'%s.%s' and %s'%s.%s'"); | 2061 static final StaticWarningCode NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO
= new StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 44,
"Missing inherited members: %s'%s.%s' and %s'%s.%s'"); |
| 2074 | 2062 |
| 2075 /** | 2063 /** |
| 2076 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s
ub>2</sub>) s</i> or | 2064 * 13.11 Try: An on-catch clause of the form <i>on T catch (p<sub>1</sub>, p<s
ub>2</sub>) s</i> or |
| 2077 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty
pe of <i>T</i>. It | 2065 * <i>on T s</i> matches an object <i>o</i> if the type of <i>o</i> is a subty
pe of <i>T</i>. It |
| 2078 * is a static warning if <i>T</i> does not denote a type available in the lex
ical scope of the | 2066 * is a static warning if <i>T</i> does not denote a type available in the lex
ical scope of the |
| 2079 * catch clause. | 2067 * catch clause. |
| 2080 * @param name the name of the non-type element | 2068 * @param name the name of the non-type element |
| 2081 */ | 2069 */ |
| 2082 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod
e('NON_TYPE_IN_CATCH_CLAUSE', 46, "The name '%s' is not a type and cannot be use
d in an on-catch clause"); | 2070 static final StaticWarningCode NON_TYPE_IN_CATCH_CLAUSE = new StaticWarningCod
e('NON_TYPE_IN_CATCH_CLAUSE', 45, "The name '%s' is not a type and cannot be use
d in an on-catch clause"); |
| 2083 | 2071 |
| 2084 /** | 2072 /** |
| 2085 * 7.1.1 Operators: It is a static warning if the return type of the user-decl
ared operator \[\]= is | 2073 * 7.1.1 Operators: It is a static warning if the return type of the user-decl
ared operator \[\]= is |
| 2086 * explicitly declared and not void. | 2074 * explicitly declared and not void. |
| 2087 */ | 2075 */ |
| 2088 static final StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = new StaticWarnin
gCode('NON_VOID_RETURN_FOR_OPERATOR', 47, "The return type of the operator []= m
ust be 'void'"); | 2076 static final StaticWarningCode NON_VOID_RETURN_FOR_OPERATOR = new StaticWarnin
gCode('NON_VOID_RETURN_FOR_OPERATOR', 46, "The return type of the operator []= m
ust be 'void'"); |
| 2089 | 2077 |
| 2090 /** | 2078 /** |
| 2091 * 7.3 Setters: It is a static warning if a setter declares a return type othe
r than void. | 2079 * 7.3 Setters: It is a static warning if a setter declares a return type othe
r than void. |
| 2092 */ | 2080 */ |
| 2093 static final StaticWarningCode NON_VOID_RETURN_FOR_SETTER = new StaticWarningC
ode('NON_VOID_RETURN_FOR_SETTER', 48, "The return type of the setter must be 'vo
id'"); | 2081 static final StaticWarningCode NON_VOID_RETURN_FOR_SETTER = new StaticWarningC
ode('NON_VOID_RETURN_FOR_SETTER', 47, "The return type of the setter must be 'vo
id'"); |
| 2082 |
| 2083 /** |
| 2084 * 15.1 Static Types: A type <i>T</i> is malformed iff: <li><i>T</i> has the f
orm <i>id</i> or the |
| 2085 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively |
| 2086 * <i>prefix.id</i>) does not denote a type.</li> <li><i>T</i> denotes a type
variable in the |
| 2087 * enclosing lexical scope, but occurs in the signature or body of a static me
mber.</li> <li> |
| 2088 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, |
| 2089 * and <i>G</i> is malformed.</li></ul> |
| 2090 * <p> |
| 2091 * Any use of a malformed type gives rise to a static warning. |
| 2092 * @param nonTypeName the name that is not a type |
| 2093 */ |
| 2094 static final StaticWarningCode NOT_A_TYPE = new StaticWarningCode('NOT_A_TYPE'
, 48, "%s is not a type"); |
| 2094 | 2095 |
| 2095 /** | 2096 /** |
| 2096 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i>
or if <i>m > n</i>. | 2097 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < h</i>
or if <i>m > n</i>. |
| 2097 * @param requiredCount the expected number of required arguments | 2098 * @param requiredCount the expected number of required arguments |
| 2098 * @param argumentCount the actual number of positional arguments given | 2099 * @param argumentCount the actual number of positional arguments given |
| 2099 */ | 2100 */ |
| 2100 static final StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = new StaticWarni
ngCode('NOT_ENOUGH_REQUIRED_ARGUMENTS', 49, "%d required argument(s) expected, b
ut %d found"); | 2101 static final StaticWarningCode NOT_ENOUGH_REQUIRED_ARGUMENTS = new StaticWarni
ngCode('NOT_ENOUGH_REQUIRED_ARGUMENTS', 49, "%d required argument(s) expected, b
ut %d found"); |
| 2101 | 2102 |
| 2102 /** | 2103 /** |
| 2103 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p<
/i> names a library | 2104 * 14.3 Parts: It is a static warning if the referenced part declaration <i>p<
/i> names a library |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2160 */ | 2161 */ |
| 2161 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa
rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 57, "Type '%s' of the switch expre
ssion is not assignable to the type '%s' of case expressions"); | 2162 static final StaticWarningCode SWITCH_EXPRESSION_NOT_ASSIGNABLE = new StaticWa
rningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 57, "Type '%s' of the switch expre
ssion is not assignable to the type '%s' of case expressions"); |
| 2162 | 2163 |
| 2163 /** | 2164 /** |
| 2164 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
available in the | 2165 * 12.31 Type Test: It is a static warning if <i>T</i> does not denote a type
available in the |
| 2165 * current lexical scope. | 2166 * current lexical scope. |
| 2166 */ | 2167 */ |
| 2167 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode('TYP
E_TEST_NON_TYPE', 58, "The name '%s' is not a type and cannot be used in an 'is'
expression"); | 2168 static final StaticWarningCode TYPE_TEST_NON_TYPE = new StaticWarningCode('TYP
E_TEST_NON_TYPE', 58, "The name '%s' is not a type and cannot be used in an 'is'
expression"); |
| 2168 | 2169 |
| 2169 /** | 2170 /** |
| 2171 * 15.1 Static Types: A type <i>T</i> is malformed iff: <li><i>T</i> has the f
orm <i>id</i> or the |
| 2172 * form <i>prefix.id</i>, and in the enclosing lexical scope, the name <i>id</
i> (respectively |
| 2173 * <i>prefix.id</i>) does not denote a type.</li> <li><i>T</i> denotes a type
variable in the |
| 2174 * enclosing lexical scope, but occurs in the signature or body of a static me
mber.</li> <li> |
| 2175 * <i>T</i> is a parameterized type of the form <i>G<S<sub>1</sub>, .., S<s
ub>n</sub>></i>, |
| 2176 * and <i>G</i> is malformed.</li></ul> |
| 2177 * <p> |
| 2178 * Any use of a malformed type gives rise to a static warning. |
| 2179 */ |
| 2180 static final StaticWarningCode TYPE_VARIABLE_IN_STATIC_SCOPE = new StaticWarni
ngCode('TYPE_VARIABLE_IN_STATIC_SCOPE', 59, ""); |
| 2181 |
| 2182 /** |
| 2170 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form | 2183 * 12.15.3 Static Invocation: A static method invocation <i>i</i> has the form |
| 2171 * <i>C.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</
sub>, … | 2184 * <i>C.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</
sub>, … |
| 2172 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d
oes not denote a | 2185 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>. It is a static warning if <i>C</i> d
oes not denote a |
| 2173 * class in the current scope. | 2186 * class in the current scope. |
| 2174 */ | 2187 */ |
| 2175 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI
NED_CLASS', 59, "Undefined class '%s'"); | 2188 static final StaticWarningCode UNDEFINED_CLASS = new StaticWarningCode('UNDEFI
NED_CLASS', 60, "Undefined class '%s'"); |
| 2176 | 2189 |
| 2177 /** | 2190 /** |
| 2178 * Same as {@link #UNDEFINED_CLASS}, but to catch using "boolean" instead of "
bool". | 2191 * Same as {@link #UNDEFINED_CLASS}, but to catch using "boolean" instead of "
bool". |
| 2179 */ | 2192 */ |
| 2180 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode
('UNDEFINED_CLASS_BOOLEAN', 60, "Undefined class 'boolean'; did you mean 'bool'?
"); | 2193 static final StaticWarningCode UNDEFINED_CLASS_BOOLEAN = new StaticWarningCode
('UNDEFINED_CLASS_BOOLEAN', 61, "Undefined class 'boolean'; did you mean 'bool'?
"); |
| 2181 | 2194 |
| 2182 /** | 2195 /** |
| 2183 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</
i> in the enclosing | 2196 * 12.17 Getter Invocation: It is a static warning if there is no class <i>C</
i> in the enclosing |
| 2184 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e
xplicitly, a getter | 2197 * lexical scope of <i>i</i>, or if <i>C</i> does not declare, implicitly or e
xplicitly, a getter |
| 2185 * named <i>m</i>. | 2198 * named <i>m</i>. |
| 2186 * @param getterName the name of the getter | 2199 * @param getterName the name of the getter |
| 2187 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for | 2200 * @param enclosingType the name of the enclosing type where the getter is bei
ng looked for |
| 2188 */ | 2201 */ |
| 2189 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF
INED_GETTER', 61, "There is no such getter '%s' in '%s'"); | 2202 static final StaticWarningCode UNDEFINED_GETTER = new StaticWarningCode('UNDEF
INED_GETTER', 62, "There is no such getter '%s' in '%s'"); |
| 2190 | 2203 |
| 2191 /** | 2204 /** |
| 2192 * 12.30 Identifier Reference: It is as static warning if an identifier expres
sion of the form | 2205 * 12.30 Identifier Reference: It is as static warning if an identifier expres
sion of the form |
| 2193 * <i>id</i> occurs inside a top level or static function (be it function, met
hod, getter, or | 2206 * <i>id</i> occurs inside a top level or static function (be it function, met
hod, getter, or |
| 2194 * setter) or variable initializer and there is no declaration <i>d</i> with n
ame <i>id</i> in the | 2207 * setter) or variable initializer and there is no declaration <i>d</i> with n
ame <i>id</i> in the |
| 2195 * lexical scope enclosing the expression. | 2208 * lexical scope enclosing the expression. |
| 2196 */ | 2209 */ |
| 2197 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U
NDEFINED_IDENTIFIER', 62, "Undefined name '%s'"); | 2210 static final StaticWarningCode UNDEFINED_IDENTIFIER = new StaticWarningCode('U
NDEFINED_IDENTIFIER', 63, "Undefined name '%s'"); |
| 2198 | 2211 |
| 2199 /** | 2212 /** |
| 2200 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, | 2213 * 12.14.2 Binding Actuals to Formals: Furthermore, each <i>q<sub>i</sub></i>,
<i>1<=i<=l</i>, |
| 2201 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... | 2214 * must have a corresponding named parameter in the set {<i>p<sub>n+1</sub></i
> ... |
| 2202 * <i>p<sub>n+k</sub></i>} or a static warning occurs. | 2215 * <i>p<sub>n+k</sub></i>} or a static warning occurs. |
| 2203 * @param name the name of the requested named parameter | 2216 * @param name the name of the requested named parameter |
| 2204 */ | 2217 */ |
| 2205 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo
de('UNDEFINED_NAMED_PARAMETER', 63, "The named parameter '%s' is not defined"); | 2218 static final StaticWarningCode UNDEFINED_NAMED_PARAMETER = new StaticWarningCo
de('UNDEFINED_NAMED_PARAMETER', 64, "The named parameter '%s' is not defined"); |
| 2206 | 2219 |
| 2207 /** | 2220 /** |
| 2208 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs | 2221 * 12.18 Assignment: It is as static warning if an assignment of the form <i>v
= e</i> occurs |
| 2209 * inside a top level or static function (be it function, method, getter, or s
etter) or variable | 2222 * inside a top level or static function (be it function, method, getter, or s
etter) or variable |
| 2210 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the
lexical scope | 2223 * initializer and there is no declaration <i>d</i> with name <i>v=</i> in the
lexical scope |
| 2211 * enclosing the assignment. | 2224 * enclosing the assignment. |
| 2212 * <p> | 2225 * <p> |
| 2213 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t
he enclosing lexical | 2226 * 12.18 Assignment: It is a static warning if there is no class <i>C</i> in t
he enclosing lexical |
| 2214 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp
licitly, a setter | 2227 * scope of the assignment, or if <i>C</i> does not declare, implicitly or exp
licitly, a setter |
| 2215 * <i>v=</i>. | 2228 * <i>v=</i>. |
| 2216 * @param setterName the name of the getter | 2229 * @param setterName the name of the getter |
| 2217 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for | 2230 * @param enclosingType the name of the enclosing type where the setter is bei
ng looked for |
| 2218 */ | 2231 */ |
| 2219 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF
INED_SETTER', 64, "There is no such setter '%s' in '%s'"); | 2232 static final StaticWarningCode UNDEFINED_SETTER = new StaticWarningCode('UNDEF
INED_SETTER', 65, "There is no such setter '%s' in '%s'"); |
| 2220 | 2233 |
| 2221 /** | 2234 /** |
| 2222 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method | 2235 * 12.15.3 Static Invocation: It is a static warning if <i>C</i> does not decl
are a static method |
| 2223 * or getter <i>m</i>. | 2236 * or getter <i>m</i>. |
| 2224 * @param methodName the name of the method | 2237 * @param methodName the name of the method |
| 2225 * @param enclosingType the name of the enclosing type where the method is bei
ng looked for | 2238 * @param enclosingType the name of the enclosing type where the method is bei
ng looked for |
| 2226 */ | 2239 */ |
| 2227 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW
arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 65, "There is no such static met
hod '%s' in '%s'"); | 2240 static final StaticWarningCode UNDEFINED_STATIC_METHOD_OR_GETTER = new StaticW
arningCode('UNDEFINED_STATIC_METHOD_OR_GETTER', 66, "There is no such static met
hod '%s' in '%s'"); |
| 2228 static final List<StaticWarningCode> values = [AMBIGUOUS_IMPORT, ARGUMENT_TYPE
_NOT_ASSIGNABLE, ASSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYP
E, COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_V
ISIBLE, COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_I
DENTIFIER, COMMENT_REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBE
R, CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTE
R_AND_SUPERCLASS_MEMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICT
ING_STATIC_SETTER_AND_INSTANCE_MEMBER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_
MAP, EXPORT_DUPLICATED_LIBRARY_NAME, EXTRA_POSITIONAL_ARGUMENTS, FIELD_INITIALIZ
ER_NOT_ASSIGNABLE, FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, FINAL_NOT_INITIALIZ
ED, IMPORT_DUPLICATED_LIBRARY_NAME, INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_M
ETHOD, INCORRECT_NUMBER_OF_ARGUMENTS, INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCL
ASS_STATIC, INVALID_FACTORY_NAME, INVALID_GETTER_OVERRIDE_RETURN_TYPE, INVALID_M
ETHOD_OVERRIDE_NAMED_PARAM_TYPE, INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, INVA
LID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_RETURN_TYPE, IN
VALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES, INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TY
PE, INVOCATION_OF_NON_FUNCTION, MALFORMED_TYPE, MISMATCHED_GETTER_AND_SETTER_TYP
ES, NEW_WITH_ABSTRACT_CLASS, NEW_WITH_NON_TYPE, NEW_WITH_UNDEFINED_CONSTRUCTOR,
NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEM
BER_FIVE_PLUS, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, NON_ABSTRACT_CL
ASS_INHERITS_ABSTRACT_MEMBER_ONE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TH
REE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, NON_TYPE_IN_CATCH_CLAUSE,
NON_VOID_RETURN_FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, NOT_ENOUGH_REQUIRED_AR
GUMENTS, PART_OF_DIFFERENT_LIBRARY, REDIRECT_TO_INVALID_FUNCTION_TYPE, REDIRECT_
TO_INVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR, REDIRECT_TO_NON_CLASS,
RETURN_WITHOUT_VALUE, STATIC_ACCESS_TO_INSTANCE_MEMBER, SWITCH_EXPRESSION_NOT_AS
SIGNABLE, TYPE_TEST_NON_TYPE, UNDEFINED_CLASS, UNDEFINED_CLASS_BOOLEAN, UNDEFINE
D_GETTER, UNDEFINED_IDENTIFIER, UNDEFINED_NAMED_PARAMETER, UNDEFINED_SETTER, UND
EFINED_STATIC_METHOD_OR_GETTER]; | 2241 static final List<StaticWarningCode> values = [AMBIGUOUS_IMPORT, ARGUMENT_TYPE
_NOT_ASSIGNABLE, ASSIGNMENT_TO_FINAL, CASE_BLOCK_NOT_TERMINATED, CAST_TO_NON_TYP
E, COMMENT_REFERENCE_CONSTRUCTOR_NOT_VISIBLE, COMMENT_REFERENCE_IDENTIFIER_NOT_V
ISIBLE, COMMENT_REFERENCE_UNDECLARED_CONSTRUCTOR, COMMENT_REFERENCE_UNDECLARED_I
DENTIFIER, COMMENT_REFERENCE_URI_NOT_LIBRARY, CONCRETE_CLASS_WITH_ABSTRACT_MEMBE
R, CONFLICTING_INSTANCE_GETTER_AND_SUPERCLASS_MEMBER, CONFLICTING_INSTANCE_SETTE
R_AND_SUPERCLASS_MEMBER, CONFLICTING_STATIC_GETTER_AND_INSTANCE_SETTER, CONFLICT
ING_STATIC_SETTER_AND_INSTANCE_MEMBER, CONST_WITH_ABSTRACT_CLASS, EQUAL_KEYS_IN_
MAP, EXPORT_DUPLICATED_LIBRARY_NAME, EXTRA_POSITIONAL_ARGUMENTS, FIELD_INITIALIZ
ER_NOT_ASSIGNABLE, FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE, FINAL_NOT_INITIALIZ
ED, IMPORT_DUPLICATED_LIBRARY_NAME, INCONSISTENT_METHOD_INHERITANCE_GETTER_AND_M
ETHOD, INCORRECT_NUMBER_OF_ARGUMENTS, INSTANCE_METHOD_NAME_COLLIDES_WITH_SUPERCL
ASS_STATIC, INVALID_FACTORY_NAME, INVALID_GETTER_OVERRIDE_RETURN_TYPE, INVALID_M
ETHOD_OVERRIDE_NAMED_PARAM_TYPE, INVALID_METHOD_OVERRIDE_NORMAL_PARAM_TYPE, INVA
LID_METHOD_OVERRIDE_OPTIONAL_PARAM_TYPE, INVALID_METHOD_OVERRIDE_RETURN_TYPE, IN
VALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES, INVALID_SETTER_OVERRIDE_NORMAL_PARAM_TY
PE, INVOCATION_OF_NON_FUNCTION, MISMATCHED_GETTER_AND_SETTER_TYPES, NEW_WITH_ABS
TRACT_CLASS, NEW_WITH_NON_TYPE, NEW_WITH_UNDEFINED_CONSTRUCTOR, NEW_WITH_UNDEFIN
ED_CONSTRUCTOR_DEFAULT, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS, N
ON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR, NON_ABSTRACT_CLASS_INHERITS_ABS
TRACT_MEMBER_ONE, NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE, NON_ABSTRAC
T_CLASS_INHERITS_ABSTRACT_MEMBER_TWO, NON_TYPE_IN_CATCH_CLAUSE, NON_VOID_RETURN_
FOR_OPERATOR, NON_VOID_RETURN_FOR_SETTER, NOT_A_TYPE, NOT_ENOUGH_REQUIRED_ARGUME
NTS, PART_OF_DIFFERENT_LIBRARY, REDIRECT_TO_INVALID_FUNCTION_TYPE, REDIRECT_TO_I
NVALID_RETURN_TYPE, REDIRECT_TO_MISSING_CONSTRUCTOR, REDIRECT_TO_NON_CLASS, RETU
RN_WITHOUT_VALUE, STATIC_ACCESS_TO_INSTANCE_MEMBER, SWITCH_EXPRESSION_NOT_ASSIGN
ABLE, TYPE_TEST_NON_TYPE, TYPE_VARIABLE_IN_STATIC_SCOPE, UNDEFINED_CLASS, UNDEFI
NED_CLASS_BOOLEAN, UNDEFINED_GETTER, UNDEFINED_IDENTIFIER, UNDEFINED_NAMED_PARAM
ETER, UNDEFINED_SETTER, UNDEFINED_STATIC_METHOD_OR_GETTER]; |
| 2229 | 2242 |
| 2230 /// The name of this enum constant, as declared in the enum declaration. | 2243 /// The name of this enum constant, as declared in the enum declaration. |
| 2231 final String name; | 2244 final String name; |
| 2232 | 2245 |
| 2233 /// The position in the enum declaration. | 2246 /// The position in the enum declaration. |
| 2234 final int ordinal; | 2247 final int ordinal; |
| 2235 | 2248 |
| 2236 /** | 2249 /** |
| 2237 * The message template used to create the message to be displayed for this er
ror. | 2250 * The message template used to create the message to be displayed for this er
ror. |
| 2238 */ | 2251 */ |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2550 StaticTypeWarningCode(this.name, this.ordinal, String message) { | 2563 StaticTypeWarningCode(this.name, this.ordinal, String message) { |
| 2551 this._message = message; | 2564 this._message = message; |
| 2552 } | 2565 } |
| 2553 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; | 2566 ErrorSeverity get errorSeverity => ErrorType.STATIC_TYPE_WARNING.severity; |
| 2554 String get message => _message; | 2567 String get message => _message; |
| 2555 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; | 2568 ErrorType get type => ErrorType.STATIC_TYPE_WARNING; |
| 2556 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal; | 2569 int compareTo(StaticTypeWarningCode other) => ordinal - other.ordinal; |
| 2557 int get hashCode => ordinal; | 2570 int get hashCode => ordinal; |
| 2558 String toString() => name; | 2571 String toString() => name; |
| 2559 } | 2572 } |
| OLD | NEW |