| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticTypeWarningCode.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticTypeWarningCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticTypeWarningCode.java
|
| index 04e847ea55b82018e7d6fff73cdf32e803250f3a..6d2705f7bd53528f4b32fc2048d4c5dd766e6ba2 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticTypeWarningCode.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/StaticTypeWarningCode.java
|
| @@ -83,13 +83,6 @@ public enum StaticTypeWarningCode implements ErrorCode {
|
| INVALID_ASSIGNMENT("A value of type '%s' cannot be assigned to a variable of type '%s'"),
|
|
|
| /**
|
| - * 12.14.4 Function Expression Invocation: A function expression invocation <i>i</i> has the form
|
| - * <i>e<sub>f</sub>(a<sub>1</sub>, … a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</sub>,
|
| - * …, x<sub>n+k</sub>: a<sub>n+k</sub>)</i>, where <i>e<sub>f</sub></i> is an expression.
|
| - * <p>
|
| - * It is a static type warning if the static type <i>F</i> of <i>e<sub>f</sub></i> may not be
|
| - * assigned to a function type.
|
| - * <p>
|
| * 12.15.1 Ordinary Invocation: An ordinary method invocation <i>i</i> has the form
|
| * <i>o.m(a<sub>1</sub>, …, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</sub>, …
|
| * x<sub>n+k</sub>: a<sub>n+k</sub>)</i>.
|
| @@ -112,6 +105,16 @@ public enum StaticTypeWarningCode implements ErrorCode {
|
| INVOCATION_OF_NON_FUNCTION("'%s' is not a method"),
|
|
|
| /**
|
| + * 12.14.4 Function Expression Invocation: A function expression invocation <i>i</i> has the form
|
| + * <i>e<sub>f</sub>(a<sub>1</sub>, … a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</sub>,
|
| + * …, x<sub>n+k</sub>: a<sub>n+k</sub>)</i>, where <i>e<sub>f</sub></i> is an expression.
|
| + * <p>
|
| + * It is a static type warning if the static type <i>F</i> of <i>e<sub>f</sub></i> may not be
|
| + * assigned to a function type.
|
| + */
|
| + INVOCATION_OF_NON_FUNCTION_EXPRESSION("Cannot invoke a non-function"),
|
| +
|
| + /**
|
| * 12.19 Conditional: It is a static type warning if the type of <i>e<sub>1</sub></i> may not be
|
| * assigned to bool.
|
| * <p>
|
|
|