()
| 113 | } |
| 114 | |
| 115 | func (l *lexer) lastToken() sqlSymType { |
| 116 | if l.lastPos < 0 { |
| 117 | return sqlSymType{} |
| 118 | } |
| 119 | |
| 120 | if l.lastPos >= len(l.tokens) { |
| 121 | return sqlSymType{ |
| 122 | id: 0, |
| 123 | pos: int32(len(l.in)), |
| 124 | str: "EOF", |
| 125 | } |
| 126 | } |
| 127 | return l.tokens[l.lastPos] |
| 128 | } |
| 129 | |
| 130 | // NewAnnotation returns a new annotation index. |
| 131 | func (l *lexer) NewAnnotation() tree.AnnotationIdx { |
no outgoing calls
no test coverage detected