* Gets all initial chunks. * @returns {Chunks} a set of all the initial chunks (including itself)
()
| 697 | * @returns {Chunks} a set of all the initial chunks (including itself) |
| 698 | */ |
| 699 | getAllInitialChunks() { |
| 700 | /** @type {Chunks} */ |
| 701 | const chunks = new Set(); |
| 702 | /** @type {Queue} */ |
| 703 | const queue = new Set(this.groupsIterable); |
| 704 | for (const group of queue) { |
| 705 | if (group.isInitial()) { |
| 706 | for (const c of group.chunks) chunks.add(c); |
| 707 | for (const g of group.childrenIterable) queue.add(g); |
| 708 | } |
| 709 | } |
| 710 | return chunks; |
| 711 | } |
| 712 | |
| 713 | /** |
| 714 | * Gets all referenced chunks. |
no test coverage detected