Index: pkg/compiler/lib/src/resolution/members.dart |
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart |
index b12218b4d36c3fb4beef0174e23c25706a35707f..1824418408bd9ce10d9b94875c2db9656ec95caa 100644 |
--- a/pkg/compiler/lib/src/resolution/members.dart |
+++ b/pkg/compiler/lib/src/resolution/members.dart |
@@ -3608,11 +3608,8 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> { |
ConstructorResult result = |
resolveRedirectingFactory(node, inConstContext: isConstConstructor); |
ConstructorElement redirectionTarget = result.element; |
- constructor.immediateRedirectionTarget = redirectionTarget; |
- |
- if (result.isDeferred) { |
- constructor.redirectionDeferredPrefix = result.prefix; |
- } |
+ constructor.setImmediateRedirectionTarget( |
+ redirectionTarget, result.isDeferred ? result.prefix : null); |
registry.setRedirectingTargetConstructor(node, redirectionTarget); |
switch (result.kind) { |