VisitLogicalNot visits the node
(ctx *antlrgen.LogicalNotContext)
| 724 | |
| 725 | // VisitLogicalNot visits the node |
| 726 | func (v *ASTBuilder) VisitLogicalNot(ctx *antlrgen.LogicalNotContext) interface{} { |
| 727 | v.Logger.Debugf("VisitLogicalNot check: %s", ctx.GetText()) |
| 728 | |
| 729 | if v.SQL2AqlCtx.exprCheck { |
| 730 | return v.VisitChildren(ctx) |
| 731 | } |
| 732 | |
| 733 | v.Logger.Debugf("VisitLogicalNot: %s", ctx.GetText()) |
| 734 | if v.SQL2AqlCtx.exprOrigin == ExprOriginWhere { |
| 735 | v.SQL2AqlCtx.MapRowFilters[v.SQL2AqlCtx.mapKey] = |
| 736 | append(v.SQL2AqlCtx.MapRowFilters[v.SQL2AqlCtx.mapKey], v.getText(ctx.BaseParserRuleContext)) |
| 737 | } else if v.SQL2AqlCtx.exprOrigin == ExprOriginJoinOn { |
| 738 | last := len(v.SQL2AqlCtx.MapJoinTables[v.SQL2AqlCtx.mapKey]) - 1 |
| 739 | v.SQL2AqlCtx.MapJoinTables[v.SQL2AqlCtx.mapKey][last].Conditions = |
| 740 | append(v.SQL2AqlCtx.MapJoinTables[v.SQL2AqlCtx.mapKey][last].Conditions, v.getText(ctx.BaseParserRuleContext)) |
| 741 | } |
| 742 | |
| 743 | expr := tree.NewExpression(v.getLocation(ctx)) |
| 744 | expr.SetValue(fmt.Sprintf("LogicalNot: (%s)", v.getText(ctx.BaseParserRuleContext))) |
| 745 | |
| 746 | return expr |
| 747 | } |
| 748 | |
| 749 | // *************** from clause ***************** |
| 750 |
nothing calls this directly
no test coverage detected