Files
sdk/pkg/analyzer_utilities
Paul Berry 837bc936c3 [messages] Create a script to add types to messages.yaml files.
Adds a script, `add_types_to_yaml.dart`, which will add `type:`
entries to analyzer-style `messages.yaml` files.

Currently the only function of these entries is that they are checked
against the diagnostic types implied by the diagnostic's class name
(diagnostics under the heading `CompileTimeErrorCode` must have type
`compileTimeError`, those under `StaticWarningCode` must have type
`staticWarning`, etc).

In a follow-up CL I will run the script, adding these `type:` entries,
and then change the code generation logic to use them instead of
inferring the type from the diagnostic code's class. This will pave
the way for removing the notion of diagnostic code class entirely.

Change-Id: I6a6a6964fc4c06a7b2c15fd10d0bd500c3c3f3f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/464281
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2025-11-25 09:40:03 -08:00
..

A set of utilities used by the tools in several analyzer-related packages.

Not meant to be published.