(test: (c: string) => boolean)
| 41 | } |
| 42 | |
| 43 | passWhile(test: (c: string) => boolean): string | undefined { |
| 44 | const savePos = this.pos |
| 45 | |
| 46 | while (this.passIf(test)) {} /* eslint-disable-line no-empty */ |
| 47 | return this.pos > savePos |
| 48 | ? this.text.substring(savePos, this.pos) |
| 49 | : undefined |
| 50 | } |
| 51 | |
| 52 | expectIf( |
| 53 | test: (c: string) => boolean, |
no test coverage detected