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 |
||
|---|---|---|
| .. | ||
| integrationtest | ||
| linker | ||
| ngcc | ||
| private | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| esbuild.config.js | ||
| index.ts | ||
| package.json | ||
| tsconfig-build.json | ||
| tsconfig.json | ||