MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Peek

Method Peek

pkg/sql/plpgsql/parser/lexer.go:530–535  ·  view source on GitHub ↗

Peek peeks

()

Source from the content-addressed store, hash-verified

528
529// Peek peeks
530func (l *lexer) Peek() plpgsqlSymType {
531 if l.lastPos+1 < len(l.tokens) {
532 return l.tokens[l.lastPos+1]
533 }
534 return plpgsqlSymType{}
535}
536
537// PushBack rewinds the lexer by n tokens.
538func (l *lexer) PushBack(n int) {

Callers 5

peekForExecuteMethod · 0.95
readSQLConstructMethod · 0.95
ParseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected