5b262d8234
Avoids the use of one method with multiple code paths and returns to handle any situation because it becomes very hard to reason about what original source code leads to each path. Fixes: https://github.com/dart-lang/sdk/issues/54463 Change-Id: I8158ae2a79e0f627f0703e2e253b4406022fc84b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357208 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Srujan Gaddam <srujzs@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>