Index: pkg/compiler/lib/src/elements/modelx.dart |
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart |
index 691e6d7149ba1535eff77457c9fcdb820dac2abc..b47936705dbcfcc5c626bf94fc614aa0446c7506 100644 |
--- a/pkg/compiler/lib/src/elements/modelx.dart |
+++ b/pkg/compiler/lib/src/elements/modelx.dart |
@@ -312,6 +312,9 @@ class ErroneousConstructorElementX extends ErroneousElementX |
bool get isRedirectingGenerative => false; |
@override |
+ bool isRedirectingGenerativeInternal; |
+ |
+ @override |
void set isRedirectingGenerative(_) { |
throw new UnsupportedError("isRedirectingGenerative"); |
} |
@@ -2222,7 +2225,7 @@ abstract class ConstantConstructorMixin implements ConstructorElement { |
abstract class ConstructorElementX extends FunctionElementX |
with ConstantConstructorMixin, ConstructorElementCommon |
implements ConstructorElement { |
- bool isRedirectingGenerative = false; |
+ bool isRedirectingGenerativeInternal = false; |
ConstructorElementX( |
String name, ElementKind kind, Modifiers modifiers, Element enclosing) |
@@ -2233,6 +2236,11 @@ abstract class ConstructorElementX extends FunctionElementX |
ConstructorElementX get patch => super.patch; |
+ bool get isRedirectingGenerative { |
+ if (isPatched) return patch.isRedirectingGenerative; |
+ return isRedirectingGenerativeInternal; |
+ } |
+ |
bool get isRedirectingFactory => immediateRedirectionTarget != null; |
// TODO(johnniwinther): This should also return true for cyclic redirecting |