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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java

Issue 14951006: Report CTEC.FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/error/CompileTimeErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
index 40279f17b0ad1ccc4e933206591b514207df3a53..0dc6cc80701ba6123a57bc39727487b9e2d5381a 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
@@ -346,13 +346,6 @@ public enum CompileTimeErrorCode implements ErrorCode {
"Fields cannot be initialized in both the parameter list and the initializers"),
/**
- * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
- * a function other than a non-redirecting generative constructor.
- */
- FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR(
- "Initializing formal fields can only be used in constructors"),
-
- /**
* 5 Variables: It is a compile-time error if a final instance variable that has been initialized
* at its point of declaration is also initialized in a constructor.
*
@@ -373,6 +366,27 @@ public enum CompileTimeErrorCode implements ErrorCode {
FINAL_INITIALIZED_MULTIPLE_TIMES("'%s' is a final field and so can only be set once"),
/**
+ * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
+ * a function other than a non-redirecting generative constructor.
+ */
+ FIELD_INITIALIZER_FACTORY_CONSTRUCTOR(
+ "Initializing formal fields cannot be used in factory constructors"),
+
+ /**
+ * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
+ * a function other than a non-redirecting generative constructor.
+ */
+ FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR(
+ "Initializing formal fields can only be used in constructors"),
+
+ /**
+ * 7.6.1 Generative Constructors: It is a compile-time error if an initializing formal is used by
+ * a function other than a non-redirecting generative constructor.
+ */
+ FIELD_INITIALIZER_REDIRECTING_CONSTRUCTOR(
+ "Initializing formal fields cannot be used in redirecting constructors"),
+
+ /**
* 5 Variables: It is a compile-time error if a library, static or local variable <i>v</i> is
* final and <i>v</i> is not initialized at its point of declaration.
*

Powered by Google App Engine
This is Rietveld 408576698