(startPos, endPos int)
| 515 | } |
| 516 | |
| 517 | func (l *lexer) getStr(startPos, endPos int) string { |
| 518 | if endPos <= startPos { |
| 519 | return "" |
| 520 | } |
| 521 | end := len(l.in) |
| 522 | if endPos < len(l.tokens) { |
| 523 | end = int(l.tokens[endPos].Pos()) |
| 524 | } |
| 525 | start := int(l.tokens[startPos].Pos()) |
| 526 | return l.in[start:end] |
| 527 | } |
| 528 | |
| 529 | // Peek peeks |
| 530 | func (l *lexer) Peek() plpgsqlSymType { |
no test coverage detected