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

Function addUpdateIcuSwitch

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

Source from the content-addressed store, hash-verified

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