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

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

Issue 2984253002: Fix analyzer error in dart2js modelx. We will need to watch for perf regressions. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | 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 f48475e92c392f39b9bdd207b35f9ac437a54ac8..801f0f466b9d58570013f8281abce672f0ebf1a6 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -3572,10 +3572,8 @@ abstract class PatchMixin<E extends Element> implements Element {
assert(this.origin == null, failedAt(this, "Origin element is a patch."));
assert(patch.origin == null, failedAt(patch, "Element is patched twice."));
assert(patch.patch == null, failedAt(patch, "Patch element is patched."));
- // ignore: INVALID_ASSIGNMENT
- this.patch = patch;
- // ignore: INVALID_ASSIGNMENT
- patch.origin = this;
+ this.patch = patch as E;
+ patch.origin = this as E;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698