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

Method peekN

postgres/parser/parser/scan.go:434–440  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

432}
433
434func (s *scanner) peekN(n int) int {
435 pos := s.pos + n
436 if pos >= len(s.in) {
437 return eof
438 }
439 return int(s.in[pos])
440}
441
442func (s *scanner) next() int {
443 ch := s.peek()

Callers 1

scanMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected