getCurrentPosition returns the Location of the tokenizer's current byte index
()
| 1777 | |
| 1778 | // getCurrentPosition returns the Location of the tokenizer's current byte index |
| 1779 | func (t *Tokenizer) getCurrentPosition() models.Location { |
| 1780 | return t.toSQLPosition(t.pos) |
| 1781 | } |
| 1782 | |
| 1783 | // getLocation produces 1-based {Line, Column} for a given byte offset |
| 1784 | func (t *Tokenizer) getLocation(pos int) models.Location { |
no test coverage detected