MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / addRef

Method addRef

packages/frontend/src/decode.ts:18–22  ·  view source on GitHub ↗
(id: NodeID, node: DecodedValue<ValueType.Store>)

Source from the content-addressed store, hash-verified

16 return this.map.get(id)?.node || null
17 }
18 addRef(id: NodeID, node: DecodedValue<ValueType.Store>) {
19 const entry = this.map.get(id)
20 if (entry) entry.refs++
21 else this.map.set(id, {node, refs: 1})
22 }
23 removeRef(id: NodeID) {
24 const entry = this.map.get(id)
25 if (entry) {

Callers 1

decodeFunction · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected