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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 2125823002: Handle redirects to unresolved redirects (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698