Commit 47cc314
[messages] Clean up representation of analyzer code.
Changes the code generation logic for messages so that there is no
longer an `analyzerCodes` getter in the `CfeStyleErrorCodeInfo` base
class, because only the derived class `SharedErrorCodeInfo` can have
an analyzer code.
Also, removes the logic that used to exist for allowing a front-end
error code to have multiple analyzer codes. It no longer makes sense
to support this, since instances of `SharedErrorCodeInfo` must always
have exactly one analyzer code.
Finally, removes the unused `analyzerCodes` field from the
`_TemplateCompiler` class.
These clean-ups simplisy the logic for supporting
`SharedErrorCodeInfo.analyzerCode`, so they should make that support
easier to maintain in the future.
Change-Id: I6a6a6964a800f3c01d7585cf2129b5af736b4ca2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452848
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Johnni Winther <[email protected]>1 parent 602bd27 commit 47cc314
File tree
3 files changed
+40
-57
lines changed- pkg
- analyzer_utilities/lib
- front_end
- test
- tool
3 files changed
+40
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 236 | | |
241 | 237 | | |
242 | 238 | | |
| |||
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
248 | | - | |
249 | | - | |
| 244 | + | |
250 | 245 | | |
251 | 246 | | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 252 | | |
288 | 253 | | |
289 | 254 | | |
| |||
870 | 835 | | |
871 | 836 | | |
872 | 837 | | |
873 | | - | |
| 838 | + | |
874 | 839 | | |
875 | | - | |
876 | | - | |
877 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
878 | 843 | | |
879 | 844 | | |
880 | 845 | | |
| |||
1039 | 1004 | | |
1040 | 1005 | | |
1041 | 1006 | | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | 1007 | | |
1052 | 1008 | | |
1053 | 1009 | | |
1054 | 1010 | | |
1055 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1056 | 1020 | | |
1057 | 1021 | | |
1058 | 1022 | | |
1059 | 1023 | | |
1060 | 1024 | | |
1061 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1062 | 1044 | | |
1063 | 1045 | | |
1064 | 1046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
331 | 334 | | |
332 | 335 | | |
333 | 336 | | |
| |||
706 | 709 | | |
707 | 710 | | |
708 | 711 | | |
709 | | - | |
| 712 | + | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
202 | | - | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
| |||
0 commit comments