(start: number, artificialEndIndex?: number)
| 673 | } |
| 674 | |
| 675 | private sourceSpan(start: number, artificialEndIndex?: number): AbsoluteSourceSpan { |
| 676 | const serial = `${start}@${this.inputIndex}:${artificialEndIndex}`; |
| 677 | if (!this.sourceSpanCache.has(serial)) { |
| 678 | this.sourceSpanCache.set( |
| 679 | serial, |
| 680 | this.span(start, artificialEndIndex).toAbsolute(this.absoluteOffset), |
| 681 | ); |
| 682 | } |
| 683 | return this.sourceSpanCache.get(serial)!; |
| 684 | } |
| 685 | |
| 686 | private advance() { |
| 687 | this.index++; |
no test coverage detected