| Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (revision 27646)
|
| +++ sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart (working copy)
|
| @@ -1665,12 +1665,9 @@
|
| ClosureClassMap closureData =
|
| compiler.closureToClassMapper.computeClosureToClassMapping(
|
| analyzedElement, node, elements);
|
| - ClosureScope scopeData = closureData.capturingScopes[node];
|
| - if (scopeData != null) {
|
| - scopeData.capturedVariableMapping.forEach((variable, field) {
|
| - locals.setCapturedAndBoxed(variable, field);
|
| - });
|
| - }
|
| + closureData.forEachBoxedVariable((variable, field) {
|
| + locals.setCapturedAndBoxed(variable, field);
|
| + });
|
| if (analyzedElement.isField()) {
|
| return visit(node.asSendSet().arguments.head);
|
| }
|
|
|