private TopClause VisitTopClause(TopClause topClause)
        {
            if (topClause != null)
            {
                topClause = (TopClause)topClause.Accept(this);
            }

            return(topClause);
        }
 public SqlSelectStatement(SqlBuilder select            = null, SqlBuilder from  = null, List <Symbol> fromExtents = null, Dictionary <Symbol, bool> outerExtents = null,
                           TopClause top                = null, SqlBuilder where = null, SqlBuilder groupBy        = null, SqlBuilder orderBy = null, bool isDistinct = false,
                           List <Symbol> allJoinExtents = null)
     : base(SqlFragmentType.SqlSelectStatement)
 {
     Select         = select ?? new SqlBuilder();
     From           = from ?? new SqlBuilder();
     _fromExtents   = fromExtents;
     _outerExtents  = outerExtents;
     _top           = top;
     _where         = where;
     _groupBy       = groupBy;
     _orderBy       = orderBy;
     IsDistinct     = IsDistinct;
     AllJoinExtents = allJoinExtents;
 }
 public virtual ISqlFragment Visit(TopClause fragment)
 {
     return(fragment);
 }