Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
427
func
(s *scanner) peek() int {
428
if
s.pos >= len(s.in) {
429
return
eof
430
}
431
return
int(s.in[s.pos])
432
}
433
434
func
(s *scanner) peekN(n int) int {
435
pos := s.pos + n
Callers
11
scan
Method · 0.95
next
Method · 0.95
skipWhitespace
Method · 0.95
scanComment
Method · 0.95
scanIdent
Method · 0.95
scanNumber
Method · 0.95
scanPlaceholder
Method · 0.95
scanHexString
Method · 0.95
scanBitString
Method · 0.95
scanString
Method · 0.95
scanDollarQuotedString
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected