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

Struct lexer

pkg/sql/parser/lexer.go:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26)
27
28type lexer struct {
29 in string
30 // tokens contains tokens generated by the scanner.
31 tokens []sqlSymType
32
33 // The type that should be used when an INT or SERIAL is encountered.
34 nakedIntType *types.T
35
36 // lastPos is the position into the tokens slice of the last
37 // token returned by Lex().
38 lastPos int
39
40 stmt tree.Statement
41 // numPlaceholders is 1 + the highest placeholder index encountered.
42 numPlaceholders int
43 numAnnotations tree.AnnotationIdx
44
45 lastError error
46}
47
48func (l *lexer) init(sql string, tokens []sqlSymType, nakedIntType *types.T) {
49 l.in = sql

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected