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

Method peekN

pkg/sql/parser/scan.go:399–405  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

397}
398
399func (s *scanner) peekN(n int) int {
400 pos := s.pos + n
401 if pos >= len(s.in) {
402 return eof
403 }
404 return int(s.in[pos])
405}
406
407func (s *scanner) next() int {
408 ch := s.peek()

Callers 1

scanMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected