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

Function enterIcu

packages/core/src/render3/i18n/i18n_icu_container_visitor.ts:27–36  ·  view source on GitHub ↗
(state: IcuIteratorState, tIcu: TIcu, lView: LView)

Source from the content-addressed store, hash-verified

25type IcuIterator = () => RNode | null;
26
27function enterIcu(state: IcuIteratorState, tIcu: TIcu, lView: LView) {
28 state.index = 0;
29 const currentCase = getCurrentICUCaseIndex(tIcu, lView);
30 if (currentCase !== null) {
31 ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);
32 state.removes = tIcu.remove[currentCase];
33 } else {
34 state.removes = EMPTY_ARRAY as any;
35 }
36}
37
38export function icuContainerIteratorNext(state: IcuIteratorState): RNode | null {
39 if (state.index < state.removes!.length) {

Callers 3

icuContainerIteratorNextFunction · 0.85
createIcuIteratorFunction · 0.85

Calls 2

getCurrentICUCaseIndexFunction · 0.90
assertNumberInRangeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…