public override object VisitQueryExpression([NotNull] MiniSQLParser.QueryExpressionContext context) { SelectStatement obj = new SelectStatement(); if (context.whereClause() != null) { obj.Condition = (Expression)Visit(context.whereClause()); } if (context.fromClause() != null) { obj.FromTable = (string)Visit(context.fromClause()); } return(obj); }
/// <summary> /// Exit a parse tree produced by <see cref="MiniSQLParser.queryExpression"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitQueryExpression([NotNull] MiniSQLParser.QueryExpressionContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="MiniSQLParser.queryExpression"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitQueryExpression([NotNull] MiniSQLParser.QueryExpressionContext context) { return(VisitChildren(context)); }