68f0d0e3a9
This moves the check for whether we need to apply edits sequentially to above some of the validation checks (because they are only applicable if not applying sequentially) and tweaks the logic slightly. It also removes a third copy of this function in analysis_server that was only used in one test, so we're down to two copies now (analyzer_plugin and analysis_server_client). Fixes https://github.com/dart-lang/sdk/issues/61501 Fixes https://github.com/dart-lang/sdk/issues/61488 Change-Id: I89ac94e8fd65e904c4eddcd8f1ebba3bf1293487 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/450380 Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>