2a05924ab3
This includes just the shared logic to track promotion of fields if they are promotable. It does not include the logic for figuring out which fields are promotable, nor does it include the additional restrictions we need to implement in order to make field promotion sound. Those will be addressed in other CLs. Bug: https://github.com/dart-lang/language/issues/2020 Change-Id: I031a4272035938fd0b1b1103438ebc9642b2cb51 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250347 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>