* Convert binding index to mask bit. * * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to * have more than 32 bindings this will be hit very rarely. The dow
(bindingIndex: number)
| 508 | * case is that we will execute binding code more often than necessary. (penalty of performance) |
| 509 | */ |
| 510 | function toMaskBit(bindingIndex: number): number { |
| 511 | return 1 << Math.min(bindingIndex, 31); |
| 512 | } |
| 513 | |
| 514 | /** |
| 515 | * Removes everything inside the sub-templates of a message. |
no test coverage detected