MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / getCurrentPosition

Method getCurrentPosition

pkg/sql/tokenizer/tokenizer.go:1779–1781  ·  view source on GitHub ↗

getCurrentPosition returns the Location of the tokenizer's current byte index

()

Source from the content-addressed store, hash-verified

1777
1778// getCurrentPosition returns the Location of the tokenizer's current byte index
1779func (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
1784func (t *Tokenizer) getLocation(pos int) models.Location {

Callers 5

TokenizeMethod · 0.95
TokenizeContextMethod · 0.95
handleEscapeSequenceMethod · 0.95
readNumberMethod · 0.95
readPunctuationMethod · 0.95

Calls 1

toSQLPositionMethod · 0.95

Tested by

no test coverage detected