6f0972fc7d
Removes all the generated classes derived from `DiagnosticCode` that are specific to a type of diagnostic, except for those associated with lints (`LinterLintCode`, `LinterLintWithoutArguments`, and `LinterLintTemplate`). These exceptions are needed because the base class for lint codes, `LintCode`, is part of the anlyzer public API, and so it's necessary for lint codes to all implement it. The generated static constants in these classes are removed too (including the ones in `LinterLintCode`), since they are no longer used; the analyzer and related packages have all been transitioned over to refer to top level diagnostic constants instead. Note that the class `ParserErrorCode` could not be completely removed, because it is dependend upon by `package:dart_style`. So a stub version of it is added to `package:analyzer/src/dart/scanner/scanner.dart` (the file that `package:dart_style` imports it from) as a temporary workaround. Change-Id: I6a6a69648acac350e4e2249efe50ae9c652772b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/461880 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
A set of utilities used by the tools in several analyzer-related packages.
Not meant to be published.