b23165db60
Changes the logic in `pkg/analyzer_testing` to use `DiagnosticCode.lowerCaseName` instead of `DiagnosticCode.name`. This ensures that diagnostic codes are matched in a case-insensitive fashion. This paves the way for deprecating (and eventually removing) the `DiagnosticCode.name` getter. Change-Id: I6a6a69640838d820e8e466c23289bdf2c30eb517 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/466280 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>