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

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

Issue 11000054: Report error for non-const map literals used as statements (issue 5299) (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.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 13031)
+++ compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java (working copy)
@@ -111,6 +111,7 @@
NO_SPACE_AFTER_PLUS("Cannot have space between plus and numeric literal"),
NO_SOUP_FOR_YOU("Too many errors"),
NO_UNARY_PLUS_OPERATOR("No unary plus operator in Dart"),
+ NON_CONST_MAP_LITERAL_STATEMENT("Map literals appearing as a statement must be 'const'"),
NON_FINAL_STATIC_MEMBER_IN_INTERFACE("Non-final/const static members are not allowed in interfaces"),
ONLY_FACTORIES_CAN_REDIRECT("Only factory constructors can redirect to another constructor"),
ONLY_ONE_LIBRARY_DIRECTIVE("Only one library directive may be declared in a file"),
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698