Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Issue 2092333002: fix #25794, infer parameter type from default value, in AST summaries (Closed)

Created:
4 years, 6 months ago by Jennifer Messerly
Modified:
4 years, 5 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix #25794, infer parameter type from default value, in AST summaries (previous CL was https://github.com/dart-lang/sdk/commit/d43f6870b3a47fab5da3262fe28036af7f5c6bf5)

Patch Set 1 #

Patch Set 2 : fix comment #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -32 lines) Patch
M pkg/analyzer/lib/src/summary/link.dart View 1 6 chunks +185 lines, -21 lines 5 comments Download
M pkg/analyzer/lib/src/summary/summarize_ast.dart View 1 chunk +11 lines, -5 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_ast_test.dart View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (2 generated)
Jennifer Messerly
Hi Paul, here's the follow up from earlier. I-have-no-idea-what-I'm-doing so take a close look :) ...
4 years, 6 months ago (2016-06-25 00:37:47 UTC) #3
Jennifer Messerly
4 years, 5 months ago (2016-06-30 19:17:56 UTC) #4
Message was sent while issue was closed.
In retrospect I think this implementation was probably on the right track, since
it uses a similar trick as top-level field inference and reuses some of the
circularity detection. Unfortunately the implementation in normal
resolution/element summaries was not -- it fails for the
cyclic_default_value_test case:

foo([x = bar]) {}
bar([y = foo]) {}

I'm going to revert the (incorrect) previous fix and therefore, closing this one
for now too. But the CL is linked from the issue so we can take & run with it in
the future if needed.

Powered by Google App Engine
This is Rietveld 408576698