7f5a698514
Previously, `HintCode.UNREACHABLE_SWITCH_CASE` was marked as deprecated, and `WarningCode.UNREACHABLE_SWITCH_CASE` was an alias to it. This created a slightly confusing situation, because it meant that all code referring to the diagnostic had to refer to it as `WarningCode.UNREACHABLE_SWITCH_CASE` (to avoid a deprecation lint), but the diagnostic still _behaved_ like it was a hint, and therefore test runner expectations still had to treat it as a hint. It turns out that it's not really necessary to go through the deprecation dance when changing the kind of a diagnostic, since (a) members of `HintCode` and `WarningCode` aren't exposed through the analyzer public API, and (b) ignore comments don't have to specify whether something is a hint or a warning. So the easiest way to clear up the confusion is to just remove `HintCode.UNREACHABLE_SWITCH_CASE` entirely, and move its implemention into `WarningCode.UNREACHABLE_SWITCH_CASE` (so that the latter is no longer an alias). Change-Id: I9ff7901ad38a2c168c5e54cbe0c1c52bf7c50186 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381103 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Paul Berry <paulberry@google.com>