(...parts)
| 542 | return this; |
| 543 | } |
| 544 | push(...parts) { |
| 545 | for (const p of parts) { |
| 546 | if (p === "") |
| 547 | continue; |
| 548 | if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) { |
| 549 | throw new Error("invalid part: " + p); |
| 550 | } |
| 551 | this.#parts.push(p); |
| 552 | } |
| 553 | } |
| 554 | toJSON() { |
| 555 | const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())]; |
| 556 | if (this.isStart() && !this.type) |
no outgoing calls
no test coverage detected