| 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.
|
| *
|
|
|