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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ConstructorElement.java

Issue 8786002: Check that interface constructors and default class constructors are compatible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check that types of constructors parameters are identical Created 9 years 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: compiler/java/com/google/dart/compiler/resolver/ConstructorElement.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ConstructorElement.java b/compiler/java/com/google/dart/compiler/resolver/ConstructorElement.java
index 52ce51356f68ccf168725a92344a033a2b8c124b..2233b8f8aabadbe743047a0d213c5026d79177ab 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ConstructorElement.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ConstructorElement.java
@@ -1,14 +1,22 @@
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
package com.google.dart.compiler.resolver;
public interface ConstructorElement extends MethodElement {
/**
- * Returns the type of the instances created by this constructor. Note
- * that a constructor in a class may be a default implementation of
- * an interface's constructor.
+ * Returns the type of the instances created by this constructor. Note that a constructor in a
+ * class may be a default implementation of an interface's constructor.
*/
ClassElement getConstructorType();
+
+ /**
+ * @return the {@link ConstructorElement} in default factory class, may be <code>null</code>.
+ */
+ ConstructorElement getDefaultConstructor();
+
+ /**
+ * Sets {@link ConstructorElement} in default factory class, may be <code>null</code>.
+ */
+ void setDefaultConstructor(ConstructorElement defaultConstructor);
}

Powered by Google App Engine
This is Rietveld 408576698