MCPcopy Index your code
hub / github.com/nodejs/node / getRuleBucketIndex

Function getRuleBucketIndex

test/fixtures/snapshot/typescript.js:146896–146899  ·  view source on GitHub ↗
(row, column)

Source from the content-addressed store, hash-verified

146894 return map;
146895 }
146896 function getRuleBucketIndex(row, column) {
146897 ts.Debug.assert(row <= 160 /* SyntaxKind.LastKeyword */ && column <= 160 /* SyntaxKind.LastKeyword */, "Must compute formatting context from tokens");
146898 return (row * mapRowLength) + column;
146899 }
146900 var maskBitSize = 5;
146901 var mask = 31; // MaskBitSize bits
146902 var mapRowLength = 160 /* SyntaxKind.LastToken */ + 1;

Callers 2

createRulesMapFunction · 0.85
buildMapFunction · 0.85

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected