(assertion: boolean, message: string)
| 1003 | } |
| 1004 | |
| 1005 | protected assert(assertion: boolean, message: string) { |
| 1006 | if (!assertion) { |
| 1007 | const p = this.position; |
| 1008 | throw new ScannerError(message, p.line, p.column); |
| 1009 | } |
| 1010 | } |
| 1011 | } |
| 1012 | |
| 1013 | export class ScannerError extends Error { |
no outgoing calls
no test coverage detected