getLogicalBinaryOperator returns an input token's logicalBinaryExpression operator type
(token int)
| 1682 | |
| 1683 | // getLogicalBinaryOperator returns an input token's logicalBinaryExpression operator type |
| 1684 | func (v *ASTBuilder) getLogicalBinaryOperator(token int) tree.LogicalBinaryExpType { |
| 1685 | switch token { |
| 1686 | case antlrgen.SqlBaseLexerAND: |
| 1687 | return tree.AND |
| 1688 | case antlrgen.SqlBaseLexerOR: |
| 1689 | return tree.OR |
| 1690 | default: |
| 1691 | panic(fmt.Errorf("Unsupported operator: %v", token)) |
| 1692 | } |
| 1693 | } |
| 1694 | |
| 1695 | func (v *ASTBuilder) getJoinType(ctx *antlrgen.JoinRelationContext) tree.JoinType { |
| 1696 | var joinType tree.JoinType |
no test coverage detected