(s, o)
| 20544 | (this.position = 0)) |
| 20545 | } |
| 20546 | addRule(s, o) { |
| 20547 | ;((o.position = this.position++), |
| 20548 | (this.matchIndexes[this.matchAt] = o), |
| 20549 | this.regexes.push([o, s]), |
| 20550 | (this.matchAt += |
| 20551 | (function countMatchGroups(s) { |
| 20552 | return new RegExp(s.toString() + '|').exec('').length - 1 |
| 20553 | })(s) + 1)) |
| 20554 | } |
| 20555 | compile() { |
| 20556 | 0 === this.regexes.length && (this.exec = () => null) |
| 20557 | const s = this.regexes.map((s) => s[1]) |
no test coverage detected