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