| 942 | } |
| 943 | |
| 944 | function 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 | |
| 957 | function addUpdateIcuUpdate(update: I18nUpdateOpCodes, bindingMask: number, index: number) { |
| 958 | update.push(bindingMask, 1, (index << I18nUpdateOpCode.SHIFT_REF) | I18nUpdateOpCode.IcuUpdate); |