0f6928c311
This adds verification of annotation nodes after constant evaluation should only be ConstantExpression or InvalidExpression. Prompted by https://github.com/dart-lang/sdk/issues/62096 which crashes from an unexpected annotation expression, like an InvalidExpression. Change-Id: I91b723f3804694dd317396e2a7a80d50a06b225d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/465040 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>