(id: NodeID)
| 13 | export class StoreNodeMap { |
| 14 | map = new Map<NodeID, {node: DecodedValue<ValueType.Store>; refs: number}>() |
| 15 | get(id: NodeID): DecodedValue<ValueType.Store> | null { |
| 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++ |
no outgoing calls
no test coverage detected