| 26 | ) |
| 27 | |
| 28 | type 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 | |
| 48 | func (l *lexer) init(sql string, tokens []sqlSymType, nakedIntType *types.T) { |
| 49 | l.in = sql |
nothing calls this directly
no outgoing calls
no test coverage detected