()
| 460 | } |
| 461 | |
| 462 | func (m *FilterQLParser) parseAlias() (string, error) { |
| 463 | if m.Cur().T != lex.TokenAlias { |
| 464 | return "", nil |
| 465 | } |
| 466 | m.Next() // Consume ALIAS token |
| 467 | if m.Cur().T != lex.TokenIdentity && m.Cur().T != lex.TokenValue { |
| 468 | return "", fmt.Errorf("Expected identity but got: %v", m.Cur().T.String()) |
| 469 | } |
| 470 | return strings.ToLower(m.Next().V), nil |
| 471 | } |
| 472 | |
| 473 | func (m *FilterQLParser) isEnd() bool { |
| 474 | return m.IsEnd() |
no test coverage detected