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

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

Issue 613673006: Support more checked mode compile time errors in analysis engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 140b1e80e6176b029db7c5a064f06f2768a6ad06..921bfefcccba9f47a8fa954a2c36622ab24e30cb 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
@@ -829,55 +829,6 @@ public enum CompileTimeErrorCode implements ErrorCode {
LABEL_UNDEFINED("Cannot reference undefined label '%s'"),
/**
- * 12.6 Lists: A run-time list literal &lt;<i>E</i>&gt; [<i>e<sub>1</sub></i> ...
- * <i>e<sub>n</sub></i>] is evaluated as follows:
- * <ul>
- * <li>The operator []= is invoked on <i>a</i> with first argument <i>i</i> and second argument
- * <i>o<sub>i+1</sub></i><i>, 1 &lt;= i &lt;= n</i></li>
- * </ul>
- * <p>
- * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
- * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 &lt;= i &lt;=
- * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
- * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<sub>j</sub>, 1 &lt;=
- * j &lt;= m</i>.
- */
- LIST_ELEMENT_TYPE_NOT_ASSIGNABLE("The element type '%s' cannot be assigned to the list type '%s'"),
-
- /**
- * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</sub></i> :
- * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as follows:
- * <ul>
- * <li>The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</sub></i> and second
- * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i></li>
- * </ul>
- * <p>
- * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
- * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 &lt;= i &lt;=
- * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
- * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<sub>j</sub>, 1 &lt;=
- * j &lt;= m</i>.
- */
- MAP_KEY_TYPE_NOT_ASSIGNABLE("The element type '%s' cannot be assigned to the map key type '%s'"),
-
- /**
- * 12.7 Map: A run-time map literal &lt;<i>K</i>, <i>V</i>&gt; [<i>k<sub>1</sub></i> :
- * <i>e<sub>1</sub></i> ... <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i>] is evaluated as follows:
- * <ul>
- * <li>The operator []= is invoked on <i>m</i> with first argument <i>k<sub>i</sub></i> and second
- * argument <i>e<sub>i</sub></i><i>, 1 &lt;= i &lt;= n</i></li>
- * </ul>
- * <p>
- * 12.14.2 Binding Actuals to Formals: Let <i>T<sub>i</sub></i> be the static type of
- * <i>a<sub>i</sub></i>, let <i>S<sub>i</sub></i> be the type of <i>p<sub>i</sub>, 1 &lt;= i &lt;=
- * n+k</i> and let <i>S<sub>q</sub></i> be the type of the named parameter <i>q</i> of <i>f</i>.
- * It is a static warning if <i>T<sub>j</sub></i> may not be assigned to <i>S<sub>j</sub>, 1 &lt;=
- * j &lt;= m</i>.
- */
- MAP_VALUE_TYPE_NOT_ASSIGNABLE(
- "The element type '%s' cannot be assigned to the map value type '%s'"),
-
- /**
* 7 Classes: It is a compile time error if a class <i>C</i> declares a member with the same name
* as <i>C</i>.
*/

Powered by Google App Engine
This is Rietveld 408576698