()
| 7912 | |
| 7913 | return { |
| 7914 | next() { |
| 7915 | while (stack.length > 0) { |
| 7916 | const current = stack.pop()! |
| 7917 | if (yielded[current] !== 0) { |
| 7918 | continue |
| 7919 | } |
| 7920 | |
| 7921 | if (view.secondary !== undefined) { |
| 7922 | pushNeighbors(view.secondary.columnIndices, view.secondary.rowOffsets, current) |
| 7923 | } |
| 7924 | pushNeighbors(view.primary.columnIndices, view.primary.rowOffsets, current) |
| 7925 | yielded[current] = 1 |
| 7926 | |
| 7927 | return { done: false, value: f(cache.nodeIds[current], cache.nodeData[current] as N) } |
| 7928 | } |
| 7929 | |
| 7930 | return { done: true, value: undefined } as const |
| 7931 | } |
| 7932 | } |
| 7933 | } |
| 7934 |
nothing calls this directly
no test coverage detected