Files
sdk/pkg/compiler/test
Daco Harkes d192492b09 [dart2js] Remove @pragma('dart2js:resource-identifier')
The same functionality is available with `@RecordUse()` now.

This CL renames all the implementation to refer to recorded uses
instead of resource identifiers. These are only renames, there is no
logical change.

This CL keeps the implementation to be the pragma machinery. The
pragmas.md has been updated to reflect that the pragma should not be
used but that `RecordUse()` should be used instead.

This CL does _not_ change the `--write-resources` command-line flag.
We'll decide on some flag that works across all compiler backends in
the future: https://github.com/dart-lang/native/issues/2939.

This CL updates the documentation to talk about `@RecordUse()`.

Change-Id: I7e80a54e627b77af16e27464320cf4a9703c05e6
Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try,dart2js-linux-chrome-try,dart2js-unit-linux-x64-release-try,dart2wasm-linux-jscm-chrome-try,dart2wasm-linux-optimized-jsc-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/471720
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2026-01-09 12:38:33 -08:00
..
2025-10-28 10:58:01 -07:00