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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 2468273003: Fix kernel/visitor_test (Closed)
Patch Set: Fix impact_test after changes. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698