MCPcopy Index your code
hub / github.com/bytebase/bytebase / skip

Method skip

backend/plugin/parser/tokenizer/tokenizer.go:694–702  ·  view source on GitHub ↗

skip skips the cursor to the cursor + step, if out of range, skip will be set to len.

(step uint)

Source from the content-addressed store, hash-verified

692
693// skip skips the cursor to the cursor + step, if out of range, skip will be set to len.
694func (t *Tokenizer) skip(step uint) {
695 t.cursor += step
696 for t.cursor > t.len && t.reader != nil {
697 t.scan()
698 }
699 if t.cursor > t.len {
700 t.cursor = t.len
701 }
702}
703
704// skipBlank skips the cursor to the first non-blank rune.
705func (t *Tokenizer) skipBlank() {

Callers 12

SplitTiDBMultiSQLMethod · 0.95
SplitStandardMultiSQLMethod · 0.95
scanIdentifierMethod · 0.95
scanStringMethod · 0.95
scanCommentMethod · 0.95
scanToMethod · 0.95
skipBlankMethod · 0.95
skipToBlankMethod · 0.95
skipToNewLineMethod · 0.95

Calls 1

scanMethod · 0.95

Tested by

no test coverage detected