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

Unified Diff: pkg/kernel/lib/transformations/closure/converter.dart

Issue 2936203002: Unbind canonical name of getter after renaming it in closure conversion (Closed)
Patch Set: Merge in recent changes in master Created 3 years, 6 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/kernel/lib/transformations/closure/converter.dart
diff --git a/pkg/kernel/lib/transformations/closure/converter.dart b/pkg/kernel/lib/transformations/closure/converter.dart
index b4edd6df9e61333a438ca0c26d84a3f0bd8d9fbf..ecf7efbd8e1c4cf59dfb0a3d6160356678d8f93f 100644
--- a/pkg/kernel/lib/transformations/closure/converter.dart
+++ b/pkg/kernel/lib/transformations/closure/converter.dart
@@ -416,6 +416,7 @@ class ClosureConverter extends Transformer {
// We rename the getter to avoid an indirection in most cases.
Name oldName = node.name;
node.name = tearOffName;
+ node.reference.canonicalName.unbind();
addGetterForwarder(oldName, node);
} else if (node.kind == ProcedureKind.Method) {
addTearOffMethod(tearOffName, node);
« 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