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

Issue 2927013004: Rework type inference of assignments to index expressions. (Closed)

Created:
3 years, 6 months ago by Paul Berry
Modified:
3 years, 6 months ago
Reviewers:
ahe, scheglov
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Rework type inference of assignments to index expressions. The approach from the las CL (try to figure out the structure of the assignment expression from the desugared result) turned out to be unsustainably complex. In this version we keep track of the structure while doing the desugaring, and then store the result in a wrapper object the kernel AST. The wrapper object defers visit methods to the object it wraps, so when the kernel objects are serialized to disk, the wrapper disappears. I also took the liberty of removing the code that inserts types into the temporary variables and conditional expressions introduced by desugaring. I will add this in a later CL if it proves to be necessary. R=ahe@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/4abff2291b603d8f4ec95826b58f822fa1cc7fa8

Patch Set 1 #

Messages

Total messages: 7 (3 generated)
Paul Berry
3 years, 6 months ago (2017-06-08 22:40:25 UTC) #3
scheglov
LGTM
3 years, 6 months ago (2017-06-09 00:44:07 UTC) #4
ahe
lgtm
3 years, 6 months ago (2017-06-09 08:41:35 UTC) #5
Paul Berry
3 years, 6 months ago (2017-06-09 17:48:15 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4abff2291b603d8f4ec95826b58f822fa1cc7fa8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698