()
| 539 | } |
| 540 | |
| 541 | protected _emitEOFToken(): void { |
| 542 | const location = this.getCurrentLocation(0); |
| 543 | |
| 544 | if (location) { |
| 545 | location.endLine = location.startLine; |
| 546 | location.endCol = location.startCol; |
| 547 | location.endOffset = location.startOffset; |
| 548 | } |
| 549 | |
| 550 | this._emitCurrentCharacterToken(location); |
| 551 | this.handler.onEof({ type: TokenType.EOF, location }); |
| 552 | this.active = false; |
| 553 | } |
| 554 | |
| 555 | //Characters emission |
| 556 |
no test coverage detected