( tView: TView, context: HydrationContext, )
| 81 | * in order to determine which indices in a LView are translated. |
| 82 | */ |
| 83 | export function getOrComputeI18nChildren( |
| 84 | tView: TView, |
| 85 | context: HydrationContext, |
| 86 | ): Set<number> | null { |
| 87 | let i18nChildren = context.i18nChildren.get(tView); |
| 88 | if (i18nChildren === undefined) { |
| 89 | i18nChildren = collectI18nChildren(tView); |
| 90 | context.i18nChildren.set(tView, i18nChildren); |
| 91 | } |
| 92 | return i18nChildren; |
| 93 | } |
| 94 | |
| 95 | function collectI18nChildren(tView: TView): Set<number> | null { |
| 96 | const children = new Set<number>(); |
no test coverage detected