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

Unified Diff: pkg/compiler/lib/src/js_model/closure_visitors.dart

Issue 2991903002: Add Closure call method to created closure class (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
Index: pkg/compiler/lib/src/js_model/closure_visitors.dart
diff --git a/pkg/compiler/lib/src/js_model/closure_visitors.dart b/pkg/compiler/lib/src/js_model/closure_visitors.dart
index 87c07916720f85e7e2a6eadd738656131f75681f..d5e291b10098c7d615295ecf0268fa994d9a02c3 100644
--- a/pkg/compiler/lib/src/js_model/closure_visitors.dart
+++ b/pkg/compiler/lib/src/js_model/closure_visitors.dart
@@ -25,8 +25,8 @@ class CapturedScopeBuilder extends ir.Visitor {
/// A map of the nodes that we have flagged as necessary to generate closure
/// classes for in a later stage. We map that node to information ascertained
/// about variable usage in the surrounding scope.
- Map<ir.TreeNode /* ir.Field | ir.FunctionNode */, KernelScopeInfo>
- get _closuresToGenerate => _model.closuresToGenerate;
+ Map<ir.FunctionNode, KernelScopeInfo> get _closuresToGenerate =>
+ _model.closuresToGenerate;
/// The local variables that have been declared in the current scope.
List<ir.VariableDeclaration> _scopeVariables;

Powered by Google App Engine
This is Rietveld 408576698