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

Function addUpdateIcuSwitch

packages/core/src/render3/i18n/i18n_parse.ts:944–955  ·  view source on GitHub ↗
(
  update: I18nUpdateOpCodes,
  icuExpression: IcuExpression,
  index: number,
)

Source from the content-addressed store, hash-verified

942}
943
944function addUpdateIcuSwitch(
945 update: I18nUpdateOpCodes,
946 icuExpression: IcuExpression,
947 index: number,
948) {
949 update.push(
950 toMaskBit(icuExpression.mainBinding),
951 2,
952 -1 - icuExpression.mainBinding,
953 (index << I18nUpdateOpCode.SHIFT_REF) | I18nUpdateOpCode.IcuSwitch,
954 );
955}
956
957function addUpdateIcuUpdate(update: I18nUpdateOpCodes, bindingMask: number, index: number) {
958 update.push(bindingMask, 1, (index << I18nUpdateOpCode.SHIFT_REF) | I18nUpdateOpCode.IcuUpdate);

Callers 1

icuStartFunction · 0.85

Calls 2

toMaskBitFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…