MCPcopy Create free account
hub / github.com/nodejs/node / increaseInsertionIndex

Function increaseInsertionIndex

test/fixtures/snapshot/typescript.js:146945–146949  ·  view source on GitHub ↗
(indexBitmap, maskPosition)

Source from the content-addressed store, hash-verified

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.");
146948 return (indexBitmap & ~(mask << maskPosition)) | (value << maskPosition);
146949 }
146950 })(formatting = ts.formatting || (ts.formatting = {}));
146951})(ts || (ts = {}));
146952/* @internal */

Callers 1

addRuleFunction · 0.85

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected