-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 6781363
[messages] Add package getter to MessageWithAnalyzerCode.
Adds the abstract getter `MessageWithAnalyzerCode.package` (and
implementations thereof). This returns the package into which this
error code will be generated.
Also adds a check to the `DiagnosticTables._` constructor to verify
that the values returned by this getter are the same as the values
returned by
`MessageWithAnalyzerCode.diagnosticClassInfo.file.package`, and
changes the code generation logic to use the former instead of the
latter where possible.
This paves the way for a follow-up CL that will remove
`MessageWithAnalyzerCode.diagnosticClassInfo`, as part of a larger
effort to remove the generated `DiagnosticCode`-derived classes
entirely.
Change-Id: I6a6a6964b03e53867f7dc7f7307e8e218c080b6c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/462161
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>1 parent 015d8a1 commit 6781363
File tree
2 files changed
+30
-4
lines changed- pkg/analyzer_utilities/lib
2 files changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | + | ||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
201 | + | ||
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
216 | + | ||
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
227 | + | ||
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
284 | + | ||
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| |||
357 | 362 | | |
358 | 363 | | |
359 | 364 | | |
365 | + | ||
360 | 366 | | |
361 | 367 | | |
362 | 368 | | |
| |||
471 | 477 | | |
472 | 478 | | |
473 | 479 | | |
480 | + | ||
481 | + | ||
482 | + | ||
474 | 483 | | |
475 | 484 | | |
476 | 485 | | |
477 | 486 | | |
487 | + | ||
478 | 488 | | |
479 | 489 | | |
480 | 490 | | |
481 | 491 | | |
482 | 492 | | |
483 | 493 | | |
484 | 494 | | |
495 | + | ||
485 | 496 | | |
486 | 497 | | |
487 | 498 | | |
488 | 499 | | |
489 | 500 | | |
490 | 501 | | |
502 | + | ||
491 | 503 | | |
492 | 504 | | |
493 | 505 | | |
| |||
496 | 508 | | |
497 | 509 | | |
498 | 510 | | |
511 | + | ||
499 | 512 | | |
500 | 513 | | |
501 | 514 | | |
| |||
651 | 664 | | |
652 | 665 | | |
653 | 666 | | |
667 | + | ||
668 | + | ||
669 | + | ||
654 | 670 | | |
655 | 671 | | |
656 | 672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | - | ||
452 | - | ||
453 | - | ||
454 | - | ||
451 | + | ||
452 | + | ||
453 | + | ||
454 | + | ||
455 | + | ||
456 | + | ||
457 | + | ||
458 | + | ||
455 | 459 | | |
456 | 460 | | |
461 | + | ||
462 | + | ||
463 | + | ||
457 | 464 | | |
458 | 465 | | |
459 | 466 | | |
| |||
980 | 987 | | |
981 | 988 | | |
982 | 989 | | |
990 | + | ||
991 | + | ||
992 | + | ||
983 | 993 | | |
984 | 994 | | |
985 | 995 | | |
| |||
0 commit comments