(opCode: IcuCreateOpCode, parentIdx: number, refIdx: number)
| 155 | } |
| 156 | |
| 157 | export function icuCreateOpCode(opCode: IcuCreateOpCode, parentIdx: number, refIdx: number) { |
| 158 | ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index'); |
| 159 | ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index'); |
| 160 | return ( |
| 161 | opCode | (parentIdx << IcuCreateOpCode.SHIFT_PARENT) | (refIdx << IcuCreateOpCode.SHIFT_REF) |
| 162 | ); |
| 163 | } |
| 164 | |
| 165 | // Returns whether the given value corresponds to a root template message, |
| 166 | // or a sub-template. |
no test coverage detected