| 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 a5e52e54a15dcda0ba69281699a638c3124b8125..fa79c1d46a94a1d14d8a9cf5d5b8ae396c4e9e5b 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dump_info.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dump_info.dart
|
| @@ -192,9 +192,9 @@ class ElementToJsonVisitor extends ElementVisitor<Map<String, dynamic>> {
|
| List<String> children = [];
|
| StringBuffer emittedCode = compiler.dumpInfoTask.codeOf(element);
|
|
|
| - // If a field has an empty inferred type it is never used.
|
| TypeMask inferredType =
|
| - compiler.typesTask.getGuaranteedTypeOfElement(element);
|
| + compiler.typesTask.getGuaranteedTypeOfElement(element);
|
| + // If a field has an empty inferred type it is never used.
|
| if (inferredType == null || inferredType.isEmpty || element.isConst) {
|
| return null;
|
| }
|
|
|