Files
sdk/tests/language
Ömer Ağacan c552af0a9e [dart2wasm] Minor refactoring and comments in variable declaration compiler
Refactoring:

- Update the checks when updating a local for a captured variable to
  check whether `local` is null, instead of whether it's not updated.

  If the `local` is available then we know that it's not updated. It's
  more direct to check whether we've created a local for the variable or
  not.

- Add an assertion checking the the capture field and local for a
  variable can only differ in nullability.

Documentation:

- Document that context field for a captured local will always be
  nullable, to be able to allocate the context without dummy values.

- Document in a few places that `!capture.written` means the variable is
  captured but not updated, so they can be held in a local (instead of
  getting them from the context on every read).

Change-Id: I66048cb36f75e35ee3c479c41f2bbfca247a990f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/470981
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
2026-01-07 03:38:06 -08:00
..
2024-12-13 10:52:25 -08:00
2024-12-20 02:39:21 -08:00
2024-12-20 02:39:21 -08:00
2025-02-26 10:39:51 -08:00
2025-02-05 08:36:21 -08:00
2025-02-05 08:36:21 -08:00
2025-02-19 04:21:42 -08:00
2025-02-19 04:21:42 -08:00
2025-11-14 03:01:16 -08:00
2025-09-30 06:52:53 -07:00
2025-02-11 15:31:25 -08:00