Commit d48e7dc
[messages] Consume types from messages.yaml files.
Now that all diagnostic codes in analyzer-style `messages.yaml` files
have a `type:` entry, it can safely be used to determine the
diagnostic's type. This replaces the old logic that inferred
diagnostic types from the diagnostic's class name (diagnostics under
the heading `CompileTimeErrorCode` have type `compileTimeError`, those
under `StaticWarningCode` have type `staticWarning`, etc).
This paves the way for removing the notion of diagnostic code class
entirely.
Change-Id: I6a6a69646fdcaccaef6f8c32a1ebf303a54548d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/464283
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent c8ab18f commit d48e7dc
File tree
3 files changed
+30
-13
lines changed- pkg
- analyzer_utilities/lib
- analyzer/test
3 files changed
+30
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
314 | 321 | | |
315 | 322 | | |
316 | 323 | | |
317 | 324 | | |
| 325 | + | |
318 | 326 | | |
319 | 327 | | |
320 | 328 | | |
321 | 329 | | |
322 | 330 | | |
| 331 | + | |
323 | 332 | | |
324 | 333 | | |
325 | 334 | | |
| |||
335 | 344 | | |
336 | 345 | | |
337 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
338 | 350 | | |
339 | 351 | | |
340 | 352 | | |
| |||
346 | 358 | | |
347 | 359 | | |
348 | 360 | | |
| 361 | + | |
349 | 362 | | |
350 | 363 | | |
351 | 364 | | |
| |||
415 | 428 | | |
416 | 429 | | |
417 | 430 | | |
418 | | - | |
| 431 | + | |
419 | 432 | | |
420 | 433 | | |
421 | 434 | | |
| |||
450 | 463 | | |
451 | 464 | | |
452 | 465 | | |
453 | | - | |
454 | 466 | | |
455 | 467 | | |
456 | 468 | | |
| |||
545 | 557 | | |
546 | 558 | | |
547 | 559 | | |
548 | | - | |
| 560 | + | |
549 | 561 | | |
550 | 562 | | |
551 | 563 | | |
| |||
595 | 607 | | |
596 | 608 | | |
597 | 609 | | |
598 | | - | |
599 | | - | |
600 | | - | |
| 610 | + | |
| 611 | + | |
601 | 612 | | |
602 | 613 | | |
603 | 614 | | |
| |||
617 | 628 | | |
618 | 629 | | |
619 | 630 | | |
620 | | - | |
| 631 | + | |
621 | 632 | | |
622 | 633 | | |
623 | 634 | | |
| |||
662 | 673 | | |
663 | 674 | | |
664 | 675 | | |
665 | | - | |
| 676 | + | |
666 | 677 | | |
667 | 678 | | |
668 | 679 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
462 | 469 | | |
463 | 470 | | |
464 | 471 | | |
| |||
935 | 942 | | |
936 | 943 | | |
937 | 944 | | |
938 | | - | |
| 945 | + | |
939 | 946 | | |
940 | 947 | | |
941 | 948 | | |
| |||
946 | 953 | | |
947 | 954 | | |
948 | 955 | | |
949 | | - | |
950 | 956 | | |
951 | 957 | | |
952 | 958 | | |
| |||
0 commit comments