()
| 312 | } |
| 313 | |
| 314 | func (l *lexer) lastToken() sqlSymType { |
| 315 | if l.lastPos < 0 { |
| 316 | return sqlSymType{} |
| 317 | } |
| 318 | |
| 319 | if l.lastPos >= len(l.tokens) { |
| 320 | return sqlSymType{ |
| 321 | id: 0, |
| 322 | pos: int32(len(l.in)), |
| 323 | str: "EOF", |
| 324 | } |
| 325 | } |
| 326 | return l.tokens[l.lastPos] |
| 327 | } |
| 328 | |
| 329 | // NewAnnotation returns a new annotation index. |
| 330 | func (l *lexer) NewAnnotation() tree.AnnotationIdx { |
no outgoing calls
no test coverage detected