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

Unified Diff: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java

Issue 10541018: Fix for issue 1399 (and minor error message clean-up) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserContext.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
===================================================================
--- compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (revision 8308)
+++ compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (working copy)
@@ -16,17 +16,17 @@
*/
public enum ParserErrorCode implements ErrorCode {
ABSTRACT_MEMBER_IN_INTERFACE("Abstract members are not allowed in interfaces"),
- ABSTRACT_METHOD_WITH_BODY("Abstract method can not have a body"),
+ ABSTRACT_METHOD_WITH_BODY("Abstract method cannot have a body"),
ABSTRACT_TOP_LEVEL_ELEMENT("Only class can be abstract top-level element"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT(
- "Default values can not be specified in abstract method"),
+ "Default values cannot be specified in abstract method"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_CLOSURE(
- "Default values can not be specified in closure parameter"),
+ "Default values cannot be specified in closure parameter"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_INTERFACE(
- "Default values can not be specified in signature of an interface method"),
+ "Default values cannot be specified in signature of an interface method"),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_TYPEDEF(
- "Default values can not be specified in closure type definition"),
+ "Default values cannot be specified in closure type definition"),
DEFAULT_POSITIONAL_PARAMETER("Positional parameters cannot have default values"),
DEPRECATED_USE_OF_FACTORY_KEYWORD("Deprecated use of the 'factory' keyword: use 'default' instead"),
DIRECTIVE_OUT_OF_ORDER("Directive out of order"),
@@ -67,30 +67,31 @@
ILLEGAL_ASSIGNMENT_TO_NON_ASSIGNABLE("Illegal assignment to non-assignable expression"),
ILLEGAL_NUMBER_OF_PARAMETERS("Illegal number of parameters"),
INCOMPLETE_STRING_LITERAL("Incomplete string literal"),
- INTERFACE_METHOD_WITH_BODY("Interface method can not have a body"),
+ INTERFACE_METHOD_WITH_BODY("Interface method cannot have a body"),
INVALID_FIELD_DECLARATION("Wrong syntax for field declaration"),
INVALID_IDENTIFIER("The token '%s' cannot be used as an identifier"),
INVALID_OPERATOR_CHAINING("Cannot chain '%s'"),
- LOCAL_CANNOT_BE_STATIC("Local function can not be static"),
+ LOCAL_CANNOT_BE_STATIC("Local function cannot be static"),
MISSING_FUNCTION_NAME("a function name is required for a declaration"),
NAMED_PARAMETER_NOT_ALLOWED("Named parameter is not allowed for operator or setter method"),
+ NO_SPACE_AFTER_PLUS("Cannot have space between plus and numeric literal"),
NO_UNARY_PLUS_OPERATOR("No unary plus operator in Dart"),
NON_FINAL_STATIC_MEMBER_IN_INTERFACE("Non-final static members are not allowed in interfaces"),
ONLY_ONE_LIBRARY_DIRECTIVE("Only one library directive may be declared in a file"),
OPERATOR_CANNOT_BE_STATIC("Operators cannot be static"),
OPERATOR_IS_NOT_USER_DEFINABLE("Operator is not user definable"),
POSITIONAL_AFTER_NAMED_ARGUMENT("Positional argument after named argument"),
- REDIRECTING_CONSTRUCTOR_PARAM("Redirecting constructor can not have initializers"),
- REDIRECTING_CONSTRUCTOR_ITSELF("Redirecting constructor can not have initializers"),
+ REDIRECTING_CONSTRUCTOR_PARAM("Redirecting constructor cannot have initializers"),
+ REDIRECTING_CONSTRUCTOR_ITSELF("Redirecting constructor cannot have initializers"),
REDIRECTING_CONSTRUCTOR_MULTIPLE("Multiple redirecting constructor invocations"),
- REDIRECTING_CONSTRUCTOR_OTHER("Redirecting constructor can not have initializers"),
+ REDIRECTING_CONSTRUCTOR_OTHER("Redirecting constructor cannot have initializers"),
SUPER_CONSTRUCTOR_MULTIPLE("'super' must be called only once in the initialization list"),
SUPER_CANNOT_BE_USED_AS_THE_SECOND_OPERAND(
"'super' cannot be used as the second operand in a binary expression."),
SUPER_IS_NOT_VALID_AS_A_BOOLEAN_OPERAND("'super' is not valid as a boolean operand"),
SUPER_IS_NOT_VALID_ALONE_OR_AS_A_BOOLEAN_OPERAND(
"'super' is not valid alone or as a boolean operand"),
- TOP_LEVEL_CANNOT_BE_STATIC("Top-level field or method can not be static"),
+ TOP_LEVEL_CANNOT_BE_STATIC("Top-level field or method cannot be static"),
UNEXPECTED_TOKEN("Unexpected token '%s'"),
UNEXPECTED_TOKEN_IN_STRING_INTERPOLATION("Unexpected token in string interpolation: %s"),
UNEXPECTED_TYPE_ARGUMENT("unexpected type argument"),
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserContext.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698