| Index: sdk/lib/_internal/compiler/implementation/dump_info.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/dump_info.dart b/sdk/lib/_internal/compiler/implementation/dump_info.dart
|
| index de41e9bb0d38d486c07471ac331334a094cb103c..9c193324186faed70b236048f0936303d6b842f6 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dump_info.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dump_info.dart
|
| @@ -311,12 +311,13 @@ class ElementToJsonVisitor extends ElementVisitor<Map<String, dynamic>> {
|
| code = emittedCode.getText();
|
| size += code.length;
|
| }
|
| -
|
| - for (Element closure in element.nestedClosures) {
|
| - Map<String, dynamic> child = this.process(closure);
|
| - if (child != null) {
|
| - children.add(child['id']);
|
| - size += child['size'];
|
| + if (element is MethodElement) {
|
| + for (Element closure in element.nestedClosures) {
|
| + Map<String, dynamic> child = this.process(closure);
|
| + if (child != null) {
|
| + children.add(child['id']);
|
| + size += child['size'];
|
| + }
|
| }
|
| }
|
|
|
|
|