DescriptionMigrate UnlinkedVariable.constExpr to UnlinkedExecutable.bodyExpr.
To do AST-based type inference involving function closures, we will
need to be able to store closure body expressions in unlinked
summaries--this requires adding a `bodyExpr` field to
UnlinkedExecutable. Since every UnlinkedVariable with a body
expression has a corresponding UnlinkedExecutable representing its
initializer, it makes sense to store the constant expression there for
uniformity.
R=scheglov@google.com
Committed: https://github.com/dart-lang/sdk/commit/f1bd126241ffce75fd971610ac68d1a311e646c7
Patch Set 1 #Patch Set 2 : Fix a comment #
Messages
Total messages: 5 (2 generated)
|