| 967 | } |
| 968 | |
| 969 | function addUpdateIcuSwitch( |
| 970 | update: I18nUpdateOpCodes, |
| 971 | icuExpression: IcuExpression, |
| 972 | index: number, |
| 973 | ) { |
| 974 | update.push( |
| 975 | toMaskBit(icuExpression.mainBinding), |
| 976 | 2, |
| 977 | -1 - icuExpression.mainBinding, |
| 978 | (index << I18nUpdateOpCode.SHIFT_REF) | I18nUpdateOpCode.IcuSwitch, |
| 979 | ); |
| 980 | } |
| 981 | |
| 982 | function addUpdateIcuUpdate(update: I18nUpdateOpCodes, bindingMask: number, index: number) { |
| 983 | update.push(bindingMask, 1, (index << I18nUpdateOpCode.SHIFT_REF) | I18nUpdateOpCode.IcuUpdate); |