| Index: pkg/analyzer/tool/summary/dump_inferred_types.dart
|
| diff --git a/pkg/analyzer/tool/summary/dump_inferred_types.dart b/pkg/analyzer/tool/summary/dump_inferred_types.dart
|
| index 18c0ef47226a08286b0eeecb0575603631079a79..8b38e73d824b9721acb9605abd8ac2fc00779fd3 100644
|
| --- a/pkg/analyzer/tool/summary/dump_inferred_types.dart
|
| +++ b/pkg/analyzer/tool/summary/dump_inferred_types.dart
|
| @@ -57,6 +57,10 @@ class InferredTypeCollector {
|
| SummaryClass obj, Map<String, Object> properties, String path) {
|
| if (obj is UnlinkedVariable) {
|
| collectInferredType(obj.inferredTypeSlot, path);
|
| + // As a temporary measure, prevent recursion into the variable's
|
| + // initializer, since AST-based type inference doesn't infer its type
|
| + // correctly yet. TODO(paulberry): fix.
|
| + properties.remove('initializer');
|
| } else if (obj is UnlinkedExecutable) {
|
| collectInferredType(obj.inferredReturnTypeSlot, path);
|
| } else if (obj is UnlinkedParam) {
|
|
|