5bc2037cb0
This updates the Initializer classes such that InvalidInitializer has a message and will throw at runtime, similar to InvalidExpression. All initializers have positions and only FieldInitializer and SuperInitializer have an isSynthetic field. TEST=pkg/front_end/testcases/general/invalid_initializer.dart Change-Id: Ic444bb1dc273b433ac70249240527d115deaa332 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/463661 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>