cdd8ca2dcc
This handles the most of the cases I could think of. Please review with an eye toward catching holes. I also left a couple of questions in the tests as there are a couple of cases I wasn't sure we wanted to support. This doesn't handle fields with an initializer, though I think we could. If you think we ought to handle it before shipping the feature I can either update this CL or do it in a follow-on. Change-Id: Ia9ac5d86853bc907fdce10e31f03714eeb89f1af Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/481621 Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>