()
| 566 | } |
| 567 | |
| 568 | func (l *lexer) lastToken() plpgsqlSymType { |
| 569 | if l.lastPos < 0 { |
| 570 | return plpgsqlSymType{} |
| 571 | } |
| 572 | |
| 573 | if l.lastPos >= len(l.tokens) { |
| 574 | return plpgsqlSymType{ |
| 575 | id: 0, |
| 576 | pos: int32(len(l.in)), |
| 577 | str: "EOF", |
| 578 | } |
| 579 | } |
| 580 | return l.tokens[l.lastPos] |
| 581 | } |
| 582 | |
| 583 | // SetStmt is called from the parser when the statement is constructed. |
| 584 | func (l *lexer) SetStmt(stmt plpgsqltree.Statement) { |
no outgoing calls
no test coverage detected