Files
sdk/pkg/vm/lib
Paul Berry 1b1392cf01 [messages] Migrate packages to new diagnostic.dart files.
Translates the code in the following packages:
- `_fe_analyzer_shared`
- `_js_interop_checks`
- `dart2wasm`
- `front_end`
- `vm`

so that it imports diagnostic codes from
`package:front_end/src/codes/diagnostic.dart` or
`package:_fe_analyzer_shared/src/messages/diagnostic.dart`, using the
prefix `diag`, rather than using the old constant declarations in
`package:front_end/src/codes/cfe_codes.dart` and
`package:_fe_analyzer_shared/src/messages/codes.dart`.

This CL was created by the following steps:

- Run the script
  `pkg/analyzer_utilities/tool/messages/use_prefixed_import_instead_of_code.dart`.

- Execute `dart fix --apply --code=unused_import,unnecessary_import`
  on each of the above package directories (this removes imports that
  are no longer necessary due to the change).

- Add `diag` to `pkg/front_end/test/spell_checking_list_code.txt`.

- Use `dart format` to fix formatting errors left behind by
  `use_prefixed_import_instead_of_code.dart`.

Change-Id: I6a6a69645d7659259db1acce35c8ee3bb6e347c9
Tested: standard trybots
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/475929
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2026-01-28 06:13:24 -08:00
..
2025-08-04 14:23:39 -07:00