9b8f93b7a1
I considered doing the bigger refactor I described in the first CL, then I realized that I can't because the constructors for `ErrorCode` are `const`. We should still have some kind of tests, but they won't be as complete as we might hope. Change-Id: I02f397642a367af2823f67b90ffdca2113fdb8e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192725 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>