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