()
| 137 | } |
| 138 | |
| 139 | func (l *lexer) lastToken() sqlSymType { |
| 140 | if l.lastPos < 0 { |
| 141 | return sqlSymType{} |
| 142 | } |
| 143 | |
| 144 | if l.lastPos >= len(l.tokens) { |
| 145 | return sqlSymType{ |
| 146 | id: 0, |
| 147 | pos: int32(len(l.in)), |
| 148 | str: "EOF", |
| 149 | } |
| 150 | } |
| 151 | return l.tokens[l.lastPos] |
| 152 | } |
| 153 | |
| 154 | // NewAnnotation returns a new annotation index. |
| 155 | func (l *lexer) NewAnnotation() tree.AnnotationIdx { |
no outgoing calls
no test coverage detected