(ctx *antlrgen.JoinRelationContext)
| 1693 | } |
| 1694 | |
| 1695 | func (v *ASTBuilder) getJoinType(ctx *antlrgen.JoinRelationContext) tree.JoinType { |
| 1696 | var joinType tree.JoinType |
| 1697 | if ctx.JoinType() == nil { |
| 1698 | joinType = tree.INNER |
| 1699 | } else if ctx.JoinType().(*antlrgen.JoinTypeContext).LEFT() != nil { |
| 1700 | joinType = tree.LEFT |
| 1701 | } else if ctx.JoinType().(*antlrgen.JoinTypeContext).RIGHT() != nil { |
| 1702 | joinType = tree.RIGHT |
| 1703 | } else if ctx.JoinType().(*antlrgen.JoinTypeContext).FULL() != nil { |
| 1704 | joinType = tree.FULL |
| 1705 | } else { |
| 1706 | joinType = tree.INNER |
| 1707 | } |
| 1708 | return joinType |
| 1709 | } |
| 1710 | |
| 1711 | func (v *ASTBuilder) getCtxLevels(s2aCtx *SQL2AqlContext) (level, levelWith, levelQuery int) { |
| 1712 | level = s2aCtx.level + 1 |
no test coverage detected