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

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

Issue 17581003: Report NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT as CTEC. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweaks Created 7 years, 6 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 f92b8c78155b6f35f1876cbadd246a8b4b1cb864..c51f07ac72a9963737278b8d82766c3d9a26c646 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
@@ -769,6 +769,25 @@ public enum CompileTimeErrorCode implements ErrorCode {
"The type '%s' is declared with %d type parameters, but %d type arguments were given"),
/**
+ * 7.6.1 Generative Constructors: If no superinitializer is provided, an implicit superinitializer
+ * of the form <b>super</b>() is added at the end of <i>k</i>'s initializer list, unless the
+ * enclosing class is class <i>Object</i>.
+ * <p>
+ * 7.6.1 Generative constructors. It is a compile-time error if class <i>S</i> does not declare a
+ * generative constructor named <i>S</i> (respectively <i>S.id</i>)
+ */
+ NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT("The class '%s' does not have a default constructor"),
+
+ /**
+ * 7.6 Constructors: Iff no constructor is specified for a class <i>C</i>, it implicitly has a
+ * default constructor C() : <b>super<b>() {}, unless <i>C</i> is class <i>Object</i>.
+ * <p>
+ * 7.6.1 Generative constructors. It is a compile-time error if class <i>S</i> does not declare a
+ * generative constructor named <i>S</i> (respectively <i>S.id</i>)
+ */
+ NO_DEFAULT_SUPER_CONSTRUCTOR_IMPLICIT("The class '%s' does not have a default constructor"),
+
+ /**
* 13.2 Expression Statements: It is a compile-time error if a non-constant map literal that has
* no explicit type arguments appears in a place where a statement is expected.
*/

Powered by Google App Engine
This is Rietveld 408576698