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

Side by Side Diff: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java

Issue 10913068: Old catch syntax is now an error (issue 4905) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/co19/co19-compiler.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 package com.google.dart.compiler.parser; 5 package com.google.dart.compiler.parser;
6 6
7 import com.google.dart.compiler.ErrorCode; 7 import com.google.dart.compiler.ErrorCode;
8 import com.google.dart.compiler.ErrorSeverity; 8 import com.google.dart.compiler.ErrorSeverity;
9 import com.google.dart.compiler.SubSystem; 9 import com.google.dart.compiler.SubSystem;
10 10
(...skipping 13 matching lines...) Expand all
24 BUILT_IN_IDENTIFIER_AS_TYPE_VARIABLE_NAME("Built-in identifier can not be used as type variable name"), 24 BUILT_IN_IDENTIFIER_AS_TYPE_VARIABLE_NAME("Built-in identifier can not be used as type variable name"),
25 CANNOT_MIX_OPTIONAL_AND_NAMED_PARAMETERS("Cannot mix both optional and named p arameters in the same function"), 25 CANNOT_MIX_OPTIONAL_AND_NAMED_PARAMETERS("Cannot mix both optional and named p arameters in the same function"),
26 CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."), 26 CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
27 CONTINUE_IN_CASE_MUST_HAVE_LABEL("'continue' in case statement must have a lab el as a target."), 27 CONTINUE_IN_CASE_MUST_HAVE_LABEL("'continue' in case statement must have a lab el as a target."),
28 CONTINUE_OUTSIDE_OF_LOOP("'continue' used outside of loop or case statement"), 28 CONTINUE_OUTSIDE_OF_LOOP("'continue' used outside of loop or case statement"),
29 DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_CLOSURE( 29 DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_CLOSURE(
30 "Default values cannot be specified in closure parameter"), 30 "Default values cannot be specified in closure parameter"),
31 DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_TYPEDEF( 31 DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_TYPEDEF(
32 "Default values cannot be specified in closure type definition"), 32 "Default values cannot be specified in closure type definition"),
33 DEFAULT_POSITIONAL_PARAMETER("Positional parameters cannot have default values "), 33 DEFAULT_POSITIONAL_PARAMETER("Positional parameters cannot have default values "),
34 DEPRECATED_CATCH(ErrorSeverity.WARNING, "This style of catch clause has been d eprecated and will " 34 DEPRECATED_CATCH("This style of catch clause has been deprecated. Please use t he 'on' <type> " +
35 + "soon be disallowed. Please use 'on' <type> 'catch' '(' <identifier> (', ' <identifier>)? ')' form."), 35 "'catch' '(' <identifier> (',' <identifier>)? ')' form."),
36 DEPRECATED_GETTER(ErrorSeverity.WARNING, "The presence of parentheses afer the name of the getter " 36 DEPRECATED_GETTER(ErrorSeverity.WARNING, "The presence of parentheses afer the name of the getter "
37 + "has been deprecated and will soon be disallowed. Please remove the pare ntheses."), 37 + "has been deprecated and will soon be disallowed. Please remove the pare ntheses."),
38 DEPRECATED_USE_OF_FACTORY_KEYWORD("Deprecated use of the 'factory' keyword: us e 'default' instead"), 38 DEPRECATED_USE_OF_FACTORY_KEYWORD("Deprecated use of the 'factory' keyword: us e 'default' instead"),
39 DEPRECATED_RESOURCE_DIRECTIVE("The #resource directive has been deprecated and will soon be disallowed"), 39 DEPRECATED_RESOURCE_DIRECTIVE("The #resource directive has been deprecated and will soon be disallowed"),
40 DIRECTIVE_OUT_OF_ORDER("Directive out of order"), 40 DIRECTIVE_OUT_OF_ORDER("Directive out of order"),
41 DISALLOWED_ABSTRACT_KEYWORD("Abstract keyword not allowed here"), 41 DISALLOWED_ABSTRACT_KEYWORD("Abstract keyword not allowed here"),
42 // TODO(zundel): error message needs JUnit test (unreachable code?) 42 // TODO(zundel): error message needs JUnit test (unreachable code?)
43 DISALLOWED_FACTORY_KEYWORD("Factory keyword not allowed here"), 43 DISALLOWED_FACTORY_KEYWORD("Factory keyword not allowed here"),
44 DISALLOWED_STATIC_KEYWORD("Static keyword not allowed here"), 44 DISALLOWED_STATIC_KEYWORD("Static keyword not allowed here"),
45 EXPECTED_ARRAY_OR_MAP_LITERAL("Expected array or map literal"), 45 EXPECTED_ARRAY_OR_MAP_LITERAL("Expected array or map literal"),
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 @Override 165 @Override
166 public SubSystem getSubSystem() { 166 public SubSystem getSubSystem() {
167 return SubSystem.PARSER; 167 return SubSystem.PARSER;
168 } 168 }
169 169
170 @Override 170 @Override
171 public boolean needsRecompilation() { 171 public boolean needsRecompilation() {
172 return true; 172 return true;
173 } 173 }
174 } 174 }
OLDNEW
« no previous file with comments | « no previous file | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698