MCPcopy Index your code
hub / github.com/react/react / getLeadingBit

Function getLeadingBit

packages/react-reconciler/src/ReactFiberTreeContext.js:224–226  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

222}
223
224function getLeadingBit(id: number) {
225 return 1 << (getBitLength(id) - 1);
226}
227
228export function popTreeContext(workInProgress: Fiber) {
229 // Restore the previous values.

Callers 1

getTreeIdFunction · 0.70

Calls 1

getBitLengthFunction · 0.70

Tested by

no test coverage detected