VisitBooleanDefault visits the node
(ctx *antlrgen.BooleanDefaultContext)
| 701 | |
| 702 | // VisitBooleanDefault visits the node |
| 703 | func (v *ASTBuilder) VisitBooleanDefault(ctx *antlrgen.BooleanDefaultContext) interface{} { |
| 704 | if v.SQL2AqlCtx.exprCheck { |
| 705 | v.Logger.Debugf("VisitBooleanDefault check: %s", ctx.GetText()) |
| 706 | return v.VisitChildren(ctx) |
| 707 | } |
| 708 | |
| 709 | v.Logger.Debugf("VisitBooleanDefault: %s", ctx.GetText()) |
| 710 | if v.SQL2AqlCtx.exprOrigin == ExprOriginWhere && !strings.HasPrefix(v.getText(ctx), _aqlPrefix) { |
| 711 | v.SQL2AqlCtx.MapRowFilters[v.SQL2AqlCtx.mapKey] = |
| 712 | append(v.SQL2AqlCtx.MapRowFilters[v.SQL2AqlCtx.mapKey], v.getText(ctx.BaseParserRuleContext)) |
| 713 | } else if v.SQL2AqlCtx.exprOrigin == ExprOriginJoinOn { |
| 714 | last := len(v.SQL2AqlCtx.MapJoinTables[v.SQL2AqlCtx.mapKey]) - 1 |
| 715 | v.SQL2AqlCtx.MapJoinTables[v.SQL2AqlCtx.mapKey][last].Conditions = |
| 716 | append(v.SQL2AqlCtx.MapJoinTables[v.SQL2AqlCtx.mapKey][last].Conditions, v.getText(ctx.BaseParserRuleContext)) |
| 717 | } |
| 718 | |
| 719 | expr := tree.NewExpression(v.getLocation(ctx)) |
| 720 | expr.SetValue(fmt.Sprintf("BooleanDefault: (%s)", v.getText(ctx.BaseParserRuleContext))) |
| 721 | |
| 722 | return expr |
| 723 | } |
| 724 | |
| 725 | // VisitLogicalNot visits the node |
| 726 | func (v *ASTBuilder) VisitLogicalNot(ctx *antlrgen.LogicalNotContext) interface{} { |
nothing calls this directly
no test coverage detected