240eda5647
This also includes some small refactorings for parameter names to start using the diagnostic wording instead of error. As well as a small change to `contextMessage` and related to use a list of `Pattern`s instead of a single `String` for better matching. In future CLs, the TODOs added in this one will be addressed so we can fully migrate this. Added them because of the size of the CL. Bug: https://github.com/dart-lang/sdk/issues/61557 Change-Id: I5557668a1baed98faff977255c9f22e0d9d96008 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452180 Commit-Queue: Paul Berry <paulberry@google.com> Auto-Submit: Felipe Morschel <git@fmorschel.dev> Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>