()
| 577 | return true; |
| 578 | } |
| 579 | isEnd() { |
| 580 | if (this.#root === this) |
| 581 | return true; |
| 582 | if (this.#parent?.type === "!") |
| 583 | return true; |
| 584 | if (!this.#parent?.isEnd()) |
| 585 | return false; |
| 586 | if (!this.type) |
| 587 | return this.#parent?.isEnd(); |
| 588 | const pl = this.#parent ? this.#parent.#parts.length : 0; |
| 589 | return this.#parentIndex === pl - 1; |
| 590 | } |
| 591 | copyIn(part) { |
| 592 | if (typeof part === "string") |
| 593 | this.push(part); |
no outgoing calls
no test coverage detected