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

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

Issue 18341022: Report REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR. (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 a763b73c7ce6ecb4f643f120faabfc1aa113171c..6d22324730c0a5a5f48009404ea2e6234a2b8106 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
@@ -144,6 +144,7 @@ public enum ParserErrorCode implements ErrorCode {
POSITIONAL_AFTER_NAMED_ARGUMENT("Positional arguments must occur before named arguments"),
POSITIONAL_PARAMETER_OUTSIDE_GROUP(
"Positional parameters must be enclosed in square brackets ('[' and ']')"),
+ REDIRECTION_IN_NON_FACTORY_CONSTRUCTOR("Only factory constructor can specify '=' redirection."),
STATIC_AFTER_CONST("The modifier 'static' should be before the modifier 'const'"),
STATIC_AFTER_FINAL("The modifier 'static' should be before the modifier 'final'"),
STATIC_AFTER_VAR("The modifier 'static' should be before the modifier 'var'"),

Powered by Google App Engine
This is Rietveld 408576698