| Index: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (revision 11229)
|
| +++ compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (working copy)
|
| @@ -31,8 +31,12 @@
|
| DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_TYPEDEF(
|
| "Default values cannot be specified in closure type definition"),
|
| DEFAULT_POSITIONAL_PARAMETER("Positional parameters cannot have default values"),
|
| + DEPRECATED_CATCH(ErrorSeverity.WARNING, "This style of catch clause has been deprecated and will "
|
| + + "soon be disallowed. Please use 'on' <type> 'catch' '(' <identifier> (',' <identifier>)? ')' form."),
|
| + DEPRECATED_GETTER(ErrorSeverity.WARNING, "The presence of parentheses afer the name of the getter "
|
| + + "has been deprecated and will soon be disallowed. Please remove the parentheses."),
|
| DEPRECATED_USE_OF_FACTORY_KEYWORD("Deprecated use of the 'factory' keyword: use 'default' instead"),
|
| - DEPRECATED_RESOURCE_DIRECTIVE("The #resource directive has been deprecated and will soon be removed"),
|
| + DEPRECATED_RESOURCE_DIRECTIVE("The #resource directive has been deprecated and will soon be disallowed"),
|
| DIRECTIVE_OUT_OF_ORDER("Directive out of order"),
|
| DISALLOWED_ABSTRACT_KEYWORD("Abstract keyword not allowed here"),
|
| // TODO(zundel): error message needs JUnit test (unreachable code?)
|
|
|