Files
sdk/pkg/_fe_analyzer_shared
Paul Berry 9f9081443a [messages] Migrate more parser errors to withArguments.
Changes the usage of `BlockKind.template` so that it formats
diagnostic messages using `withArguments` rather than
`withArgumentsOld`.

Also changes the following diagnostic messages so that their `lexeme`
argument is documented (these are the values that get passed, under
various circumstances, to `BlockKind.template`):

- `expectedFunctionBody`
- `expectedEnumBody`

Finally, changes all the direct uses of these diagnostics to use
`withArguments` as well.

Change-Id: I6a6a6964e26409cf7017c72a117c3369ab8d6bf9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/476322
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2026-01-29 05:33:32 -08:00
..
2025-02-19 09:33:31 -08:00

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.