e5a68252e3
This changes the parser to call endInvalidYieldStatement for yield statement both in sync and async methods. This ensures that the CFE creates an invalid expression for yield in async methods, making the generated AST verifiable. Change-Id: I1bfe922878fcf3dc19c823cb89ee869af3dd2ce3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/309200 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>