Files
sdk/pkg/linter/tool
Paul Berry e9a32a7224 [messages] Make class hierarchy for ErrorClassInfo.
Splits the `ErrorClassInfo` class into two classes:

- `ErrorClassInfo`, representing any concrete error class in the
  analyzer or linter.

- `GeneratedErrorClassInfo`, representing an error class that is code
  generated.

Also, adds `linterLintCodeInfo` to the `errorClasses` list. This list
now describes all concrete error error classes in the analyzer and
linter, whether they are generated or not.

This paves the way for a follow-up CL which will use the
`errorClasses` list to validate that any analyzer error codes
referenced by a `messages.yaml` entry (such as those in
`pkg/_fe_analyzer_shared/messages.yaml` or
`pkg/front_end/messages.yaml` refer to existing error classes.

Change-Id: I6a6a6964836480426d5025509c6c9c87f089f4ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/454684
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2025-10-14 08:16:40 -07:00
..