Commit d9923e4
[messages] Store lint codes in Registry as DiagnosticCodes.
Changes the static type of values in `Registry._codeMap` from
`LintCode` to `DiagnosticCode`, and removes some casts that become
unnecessary as a result.
The return type of `Registry.codeForUniqueName` is similarly changed
to `DiagnosticCode?`.
This paves the way for a follow-up CL that will change the runtime
types of lint codes from `LintCode` to `DiagnosticCode`.
Change-Id: I6a6a6964262b80324ddf6b2cf445217eef521bec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/459522
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>1 parent b8b41cb commit d9923e4
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments