DescriptionMigrate UnlinkedParam.defaultValue to UnlinkedExecutable.bodyExpr.
To do AST-based type inference involving function closures, we have
added a `bodyExpr` field to UnlinkedExecutable. Since every
UnlinkedParam with a default value 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/8d43e021744dc880ed3f9dc04145d87765b9a9ec
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|