87e0fea473
Some refactors try to format their code, but formatting can fail if there is a parse error anywhere in the file (including in completely unrelated code). This change catches formatting errors and ignores them, so the refactors will continue to work in that case (albeit without formatting). Fixes https://github.com/dart-lang/sdk/issues/62866 Change-Id: Ia3c3769640314557191244393ab8c1bd38dc2fdb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/487841 Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>