7b1361cf69
Adds `type:` entries to the 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 change the code generation logic to these `type:` entries 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. This change was produced automatically by running the script `pkg/analyzer_utilities/tool/messages/add_types_to_yaml.dart`. Change-Id: I6a6a69646958a34e24ccbf69cb96ead9d7e7865b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/464282 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
FE/analyzer shared code
This package contains logic that is shared between the front_end and analyzer packages. It is intended solely to facilitate development of the Dart SDK, and is not intended for use by end users. In particular, this package has no public API, so no guarantee is made of compatibility between one version of the package and the next.
End users should consider using the analyzer package to analyze Dart source code.