| 146935 | constructionState[rulesBucketIndex] = increaseInsertionIndex(state, position); |
| 146936 | } |
| 146937 | function getInsertionIndex(indexBitmap, maskPosition) { |
| 146938 | var index = 0; |
| 146939 | for (var pos = 0; pos <= maskPosition; pos += maskBitSize) { |
| 146940 | index += indexBitmap & mask; |
| 146941 | indexBitmap >>= maskBitSize; |
| 146942 | } |
| 146943 | return index; |
| 146944 | } |
| 146945 | function increaseInsertionIndex(indexBitmap, maskPosition) { |
| 146946 | var value = ((indexBitmap >> maskPosition) & mask) + 1; |
| 146947 | ts.Debug.assert((value & mask) === value, "Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."); |