getColumn returns the 1-based column position of the current cursor. Per the proto spec, the first character of a line is column 1.
()
| 738 | // getColumn returns the 1-based column position of the current cursor. |
| 739 | // Per the proto spec, the first character of a line is column 1. |
| 740 | func (t *Tokenizer) getColumn() int { |
| 741 | return t.getColumnAt(t.cursor) |
| 742 | } |
| 743 | |
| 744 | // getColumnAt returns the 1-based column position at a specific rune position. |
| 745 | func (t *Tokenizer) getColumnAt(pos uint) int { |
no test coverage detected