VisitSelectSingle visits the node
(ctx *antlrgen.SelectSingleContext)
| 534 | |
| 535 | // VisitSelectSingle visits the node |
| 536 | func (v *ASTBuilder) VisitSelectSingle(ctx *antlrgen.SelectSingleContext) interface{} { |
| 537 | v.Logger.Debugf("VisitSelectSingle: %s", ctx.GetText()) |
| 538 | |
| 539 | v.SQL2AqlCtx.exprCheck = true |
| 540 | v.Visit(ctx.Expression()) |
| 541 | v.SQL2AqlCtx.exprCheck = false |
| 542 | expr, _ := v.Visit(ctx.Expression()).(tree.IExpression) |
| 543 | singleColumn := tree.NewSingleColumn(v.getLocation(ctx), |
| 544 | expr, |
| 545 | v.visitIfPresent(ctx.Identifier(), reflect.TypeOf((*tree.Identifier)(nil))).(*tree.Identifier)) |
| 546 | singleColumn.SetValue(fmt.Sprintf("SingleColumn: (%s)", v.getText(ctx.BaseParserRuleContext))) |
| 547 | return singleColumn |
| 548 | } |
| 549 | |
| 550 | // VisitGroupBy visits the node |
| 551 | func (v *ASTBuilder) VisitGroupBy(ctx *antlrgen.GroupByContext) interface{} { |
nothing calls this directly
no test coverage detected