(index: number, line: number, col: number, description: string)
| 47 | } |
| 48 | |
| 49 | createError(index: number, line: number, col: number, description: string): Error { |
| 50 | const msg = 'Line ' + line + ': ' + description; |
| 51 | const error = this.constructError(msg, col); |
| 52 | error.index = index; |
| 53 | error.lineNumber = line; |
| 54 | error.description = description; |
| 55 | return error; |
| 56 | } |
| 57 | |
| 58 | throwError(index: number, line: number, col: number, description: string): never { |
| 59 | throw this.createError(index, line, col, description); |
no test coverage detected