c6173d3686
- Wrap returns in Future.value to ensure the returned Future has the async function's return type. - Skip any function that has try/catch/finally as these introduce more complex control flow. (Might be able to convert these using an onError callback in the future). - Don't assume futureValueType since CFE might not populate it in Kernel when syntax is incorrect. Change-Id: Ice3954da52a10a74f93b0adc6409a2d98e13cb3b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241260 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Nate Biggs <natebiggs@google.com> Reviewed-by: Stephen Adams <sra@google.com>