MCPcopy Create free account
hub / github.com/bytebase/bytebase / getColumn

Method getColumn

backend/plugin/parser/tokenizer/tokenizer.go:740–742  ·  view source on GitHub ↗

getColumn returns the 1-based column position of the current cursor. Per the proto spec, the first character of a line is column 1.

()

Source from the content-addressed store, hash-verified

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.
740func (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.
745func (t *Tokenizer) getColumnAt(pos uint) int {

Callers 2

SplitTiDBMultiSQLMethod · 0.95
SplitStandardMultiSQLMethod · 0.95

Calls 1

getColumnAtMethod · 0.95

Tested by

no test coverage detected