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

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

Issue 2939043002: Remove unnecessary contexts in closure conversion (Closed)
Patch Set: Small comment edit 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 | pkg/kernel/lib/transformations/closure/info.dart » ('j') | 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 93c0d71036e24a27404856632a8833845dabb9e1..e1865f7fd6d90a6c04a8e0dbeba37456490f612f 100644
--- a/pkg/kernel/lib/transformations/closure/converter.dart
+++ b/pkg/kernel/lib/transformations/closure/converter.dart
@@ -414,7 +414,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();
+ node.canonicalName?.unbind();
addGetterForwarder(oldName, node);
} else if (node.kind == ProcedureKind.Method) {
addTearOffMethod(tearOffName, node);
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/closure/info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698