(context: TreeContext)
| 71 | }; |
| 72 | |
| 73 | export function getTreeId(context: TreeContext): string { |
| 74 | const overflow = context.overflow; |
| 75 | const idWithLeadingBit = context.id; |
| 76 | const id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit); |
| 77 | return id.toString(32) + overflow; |
| 78 | } |
| 79 | |
| 80 | export function pushTreeContext( |
| 81 | baseContext: TreeContext, |
no test coverage detected