mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The previous commit added support for interpolated text in ICUs, but it made the assumption that the interpolation would be a single variable read expression. To properly support all kinds of interpolation expressions, this commit refactors how ICUs are ingested to allow us to re-use the same logic we use for bound text outside of ICUs. To accomplish this, the `IcuOp` creation op has been removed in favor of a pair of ops: `IcuStartOp` and `IcuEndOp`, that mark the beginning and end of the ICU. Now, instead of inserting an `IcuUpdateOp` in the update IR, we call `ingestBoundText` and use the presence of the surrounding `IcuStartOp` and `IcuEndOp` to match the interpolation with the ICU. PR Close #52698 |
||
|---|---|---|
| .. | ||
| compliance | ||
| ngtsc | ||
| BUILD.bazel | ||
| downlevel_decorators_transform_spec.ts | ||
| extract_i18n_spec.ts | ||
| mocks.ts | ||
| perform_compile_spec.ts | ||
| perform_watch_spec.ts | ||
| test_support.ts | ||
| typescript_support_spec.ts | ||
| version_helpers_spec.ts | ||