MCPcopy Create free account
hub / github.com/angular/angular / getOrComputeI18nChildren

Function getOrComputeI18nChildren

packages/core/src/hydration/i18n.ts:84–94  ·  view source on GitHub ↗
(
  tView: TView,
  context: HydrationContext,
)

Source from the content-addressed store, hash-verified

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

Callers 1

serializeLViewFunction · 0.90

Calls 3

collectI18nChildrenFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected