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

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

Issue 9284029: Issue 1229. Report error for using unary plus operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
Index: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
index c60bf7e702382fa5dd076959a8ae639bd7b57dda..93482d41c0b41473b411df8b62a4b75b6cfc0af4 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -68,6 +68,7 @@ public enum ParserErrorCode implements ErrorCode {
LOCAL_CANNOT_BE_STATIC("Local function can not 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_UNARY_PLUS_OPERATOR("No unary plus operator in Dart"),
NON_FINAL_STATIC_MEMBER_IN_INTERFACE("Non-final static members are not allowed in interfaces"),
OPERATOR_CANNOT_BE_STATIC("Operators cannot be static"),
POSITIONAL_AFTER_NAMED_ARGUMENT("Positional argument after named argument"),

Powered by Google App Engine
This is Rietveld 408576698