public override IASTNode VisitAggregationFunction(MySqlCommandParser.AggregationFunctionContext ctx) { String aggregationType = ctx.aggregationFunctionName().GetText(); return(AggregationType.IsAggregationType(aggregationType) ? CreateAggregationSegment(ctx, aggregationType) : new ExpressionProjectionSegment(ctx.Start.StartIndex, ctx.Stop.StopIndex, ctx.GetText())); }
public override IASTNode VisitAggregationFunction(SqlServerCommandParser.AggregationFunctionContext context) { var aggregationType = context.aggregationFunctionName().GetText(); return(AggregationType.IsAggregationType(aggregationType) ? CreateAggregationSegment(context, aggregationType) : new ExpressionProjectionSegment(context.Start.StartIndex, context.Stop.StopIndex, context.GetText())); }