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

Function getCurrentICUCaseIndex

packages/core/src/render3/i18n/i18n_util.ts:132–135  ·  view source on GitHub ↗
(tIcu: TIcu, lView: LView)

Source from the content-addressed store, hash-verified

130 * for cases which have just been switched. This function removes the negative flag.
131 */
132export function getCurrentICUCaseIndex(tIcu: TIcu, lView: LView) {
133 const currentCase: number | null = lView[tIcu.currentCaseLViewIndex];
134 return currentCase === null ? currentCase : currentCase < 0 ? ~currentCase : currentCase;
135}
136
137export function getParentFromIcuCreateOpCode(mergedCode: number): number {
138 return mergedCode >>> IcuCreateOpCode.SHIFT_PARENT;

Callers 4

enterIcuFunction · 0.90
applyMutableOpCodesFunction · 0.90
applyIcuSwitchCaseFunction · 0.90
applyIcuSwitchCaseRemoveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…