(thing: Object)
| 60 | } |
| 61 | |
| 62 | public getId(thing: Object): string { |
| 63 | if (!this.map.has(thing)) { |
| 64 | const id = this.mutableIncrementingId; |
| 65 | this.map.set(thing, id); |
| 66 | this.mutableIncrementingId += 1; |
| 67 | return String(id); |
| 68 | } else { |
| 69 | return String(this.map.get(thing)); |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | function makeSureNodeIsRegistered(graph: Dagre.Graph, idTable: IdTable, stream: Stream<any>) { |
no test coverage detected