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

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

Issue 10983089: Issue 3968. Report error if cycle in redirecting factory constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: compiler/java/com/google/dart/compiler/resolver/ConstructorElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ConstructorElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/ConstructorElementImplementation.java
index 227f7dbd763fd55e9e08cb0a146e63a5f375ef6a..227daaee45ff7ac58e1387a1ee2d0d5830ac25b2 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ConstructorElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ConstructorElementImplementation.java
@@ -15,6 +15,7 @@ class ConstructorElementImplementation extends MethodElementImplementation
private final ClassElement constructorType;
private final String rawName;
private ConstructorElement defaultConstructor;
+ private ConstructorElement redirectingFactoryConstructor;
private ConstructorElementImplementation(DartMethodDefinition node,
String name,
@@ -75,6 +76,15 @@ class ConstructorElementImplementation extends MethodElementImplementation
this.defaultConstructor = defaultConstructor;
}
+ @Override
+ public ConstructorElement getRedirectingFactoryConstructor() {
+ return redirectingFactoryConstructor;
+ }
+
+ public void setRedirectingFactoryConstructor(ConstructorElement redirectingFactoryConstructor) {
+ this.redirectingFactoryConstructor = redirectingFactoryConstructor;
+ }
+
public static ConstructorElementImplementation fromMethodNode(DartMethodDefinition node,
String name,
ClassElement declaringClass,

Powered by Google App Engine
This is Rietveld 408576698