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

Method skipToNewLine

backend/plugin/parser/tokenizer/tokenizer.go:725–736  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

723}
724
725func (t *Tokenizer) skipToNewLine() {
726 r := t.char(0)
727 for r != '\n' {
728 if r == eofRune {
729 return
730 }
731 t.skip(1)
732 r = t.char(0)
733 }
734 t.line++
735 t.skip(1)
736}
737
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.

Callers 1

scanCommentMethod · 0.95

Calls 2

charMethod · 0.95
skipMethod · 0.95

Tested by

no test coverage detected