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

Unified Diff: pkg/compiler/lib/src/ssa/locals_handler.dart

Issue 2941033002: Finish strong mode cleaning of dart2js. (Closed)
Patch Set: 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
Index: pkg/compiler/lib/src/ssa/locals_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/locals_handler.dart b/pkg/compiler/lib/src/ssa/locals_handler.dart
index d1c433b499243b95238e6e85dc6216e7e45a7a46..dd6ce4f634da3f33307ec3d24ccc32aea3a26488 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -154,8 +154,9 @@ class LocalsHandler {
directLocals[closureInfo.context] = box;
// Make sure that accesses to the boxed locals go into the box. We also
// need to make sure that parameters are copied into the box if necessary.
- closureInfo.forEachCapturedVariable(
- (LocalVariableElement from, BoxFieldElement to) {
+ closureInfo.forEachCapturedVariable((_from, _to) {
+ LocalVariableElement from = _from;
+ BoxFieldElement to = _to;
// The [from] can only be a parameter for function-scopes and not
// loop scopes.
if (from.isRegularParameter && !forGenerativeConstructorBody) {

Powered by Google App Engine
This is Rietveld 408576698