Commit f624b0e
[analyzer] Use type names from messages.yaml when documenting diagnostic params.
Changes the code generator for analyzer diagnostic messages so that
when generating documentation for diagnostic message parameters, it
uses the shared type names (those used in `messages.yaml`) rather than
the analyzer-specific ones.
In practice the only difference right now is that `Type` will be used
instead of `DartType`.
This paves the way for future CLs which will unify some of the
analyzer and front_end logic for generating code from the
`messages.yaml` files. Once that code is unified, there will be
diagnostic messages with parameter types that the analyzer doesn't yet
support. This change ensures that it will still be able to generate
documentation for those messages.
Change-Id: I6a6a696471f530aa1f8ddb6f8f73beba6a0c70b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448229
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent 07a9ac7 commit f624b0e
File tree
3 files changed
+124
-126
lines changed- pkg/analyzer
- lib/src
- dart/error
- error
- tool/messages
3 files changed
+124
-126
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
424 | | - | |
| 423 | + | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| |||
0 commit comments