(id: NodeID, node: DecodedValue<ValueType.Store>)
| 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) { |