MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / add

Method add

src/BitSet.ts:8–10  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

6 }
7
8 add(n: number): void {
9 this.bits[n >> 5] |= 1 << (n & 31)
10 }
11
12 has(n: number): boolean {
13 return !!(this.bits[n >> 5] & (1 << (n & 31)))

Callers 1

addSourcemapLocationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected