MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / peek

Method peek

pkg/sql/parser/scan.go:392–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390}
391
392func (s *scanner) peek() int {
393 if s.pos >= len(s.in) {
394 return eof
395 }
396 return int(s.in[s.pos])
397}
398
399func (s *scanner) peekN(n int) int {
400 pos := s.pos + n

Callers 11

scanMethod · 0.95
nextMethod · 0.95
skipWhitespaceMethod · 0.95
scanCommentMethod · 0.95
scanIdentMethod · 0.95
scanNumberMethod · 0.95
scanPlaceholderMethod · 0.95
scanHexStringMethod · 0.95
scanBitStringMethod · 0.95
scanStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected