Skip local functions when dumping inferred types.

R=scheglov@google.com

Review URL: https://codereview.chromium.org/1948103002 .
This commit is contained in:
Paul Berry
2016-05-04 11:29:38 -07:00
parent 956ac4c183
commit fca48b75de
@@ -63,6 +63,10 @@ class InferredTypeCollector {
properties.remove('initializer');
} else if (obj is UnlinkedExecutable) {
collectInferredType(obj.inferredReturnTypeSlot, path);
// As a temporary measure, prevent recursion into the executable's local
// variables and local functions, since AST-based type inference doesn't
// infer locals correctly yet. TODO(paulberry): fix if necessary.
properties.remove('localFunctions');
} else if (obj is UnlinkedParam) {
collectInferredType(obj.inferredTypeSlot, path);
// As a temporary measure, prevent recursion into the parameter's