MCPcopy Create free account
hub / github.com/dolthub/doltgresql / peek

Method peek

postgres/parser/parser/scan.go:427–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425}
426
427func (s *scanner) peek() int {
428 if s.pos >= len(s.in) {
429 return eof
430 }
431 return int(s.in[s.pos])
432}
433
434func (s *scanner) peekN(n int) int {
435 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