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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java

Issue 18660007: Report EXPECTED_ONE_LIST_TYPE_ARGUMENTS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
index 6d22324730c0a5a5f48009404ea2e6234a2b8106..28c93a3f5784f69a15b925319bc2555554d44d96 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java
@@ -57,6 +57,8 @@ public enum ParserErrorCode implements ErrorCode {
EXPECTED_LIST_OR_MAP_LITERAL("Expected a list or map literal"),
EXPECTED_STRING_LITERAL("Expected a string literal"),
EXPECTED_TOKEN("Expected to find '%s'"),
+ EXPECTED_ONE_LIST_TYPE_ARGUMENTS(
+ "List literal requires exactly one type arguments or none, but %d found"),
EXPECTED_TWO_MAP_TYPE_ARGUMENTS(
"Map literal requires exactly two type arguments or none, but %d found"),
EXPECTED_TYPE_NAME("Expected a type name"),

Powered by Google App Engine
This is Rietveld 408576698