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

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

Issue 14811004: Improve error recovery when using 'var' as a type (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
===================================================================
--- editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java (revision 22253)
+++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/ParserErrorCode.java (working copy)
@@ -51,6 +51,7 @@
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_TYPE_NAME("Expected a type name"),
EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE("Export directives must preceed part directives"),
EXTERNAL_AFTER_CONST("The modifier 'external' should be before the modifier 'const'"),
EXTERNAL_AFTER_FACTORY("The modifier 'external' should be before the modifier 'factory'"),
@@ -150,6 +151,7 @@
WRONG_SEPARATOR_FOR_POSITIONAL_PARAMETER(
"The default value of a positional parameter should be preceeded by '='"),
WRONG_TERMINATOR_FOR_PARAMETER_GROUP("Expected '%s' to close parameter group"),
+ VAR_AS_TYPE_NAME("The keyword 'var' cannot be used as a type name"),
VAR_CLASS("Classes cannot be declared to be 'var'"),
VAR_RETURN_TYPE("The return type cannot be 'var'"),
VAR_TYPEDEF("Type aliases cannot be declared to be 'var'"),

Powered by Google App Engine
This is Rietveld 408576698