DescriptionRework 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)
|