4f8af89290
This changes the body builder to create an InvalidExpression for new expressions in constant contexts, thus avoiding the need to handle this case in the inference, avoiding the need for passing constantContext to the inferrer. Change-Id: Ia8d5b3a6462e7a1570a092d5808bf262345b424b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/451021 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>