MCPcopy Index your code
hub / github.com/angular/angular / getOrComputeI18nChildren

Function getOrComputeI18nChildren

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

Source from the content-addressed store, hash-verified

81 * in order to determine which indices in a LView are translated.
82 */
83export 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
95function collectI18nChildren(tView: TView): Set<number> | null {
96 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