public virtual object TrackedVisitQueryExpression(QueryExpression queryExpression, object data)
 {
     return base.VisitQueryExpression(queryExpression, data);
 }
 Location GetQueryVariableEndScope(QueryExpression queryExpression)
 {
     return queryExpression.EndLocation;
 }
 public override sealed object VisitQueryExpression(QueryExpression queryExpression, object data)
 {
     this.BeginVisit(queryExpression);
     object result = this.TrackedVisitQueryExpression(queryExpression, data);
     this.EndVisit(queryExpression);
     return result;
 }
 public override object VisitQueryExpression(QueryExpression queryExpression, object data)
 {
     endLocationStack.Push(GetQueryVariableEndScope(queryExpression));
     base.VisitQueryExpression(queryExpression, data);
     endLocationStack.Pop();
     return null;
 }
 public virtual object VisitQueryExpression(QueryExpression queryExpression, object data)
 {
     Debug.Assert((queryExpression != null));
     Debug.Assert((queryExpression.Clauses != null));
     foreach (QueryExpressionClause o in queryExpression.Clauses) {
         Debug.Assert(o != null);
         o.AcceptVisitor(this, data);
     }
     return null;
 }
 public virtual object VisitQueryExpression(QueryExpression queryExpression, object data)
 {
     throw new global::System.NotImplementedException("QueryExpression");
 }
Beispiel #7
0
        void QueryExpr(out Expression expr)
        {
            QueryExpression qexpr = new QueryExpression();
            qexpr.StartLocation = la.Location;
            expr = qexpr;

            FromOrAggregateQueryOperator(qexpr.Clauses);
            while (StartOf(31)) {
            QueryOperator(qexpr.Clauses);
            }
            qexpr.EndLocation = t.EndLocation;
        }
 public virtual object VisitQueryExpression(QueryExpression queryExpression, object data)
 {
     Debug.Assert((queryExpression != null));
     Debug.Assert((queryExpression.Clauses != null));
     for (int i = 0; i < queryExpression.Clauses.Count; i++) {
         QueryExpressionClause o = queryExpression.Clauses[i];
         Debug.Assert(o != null);
         nodeStack.Push(o);
         o.AcceptVisitor(this, data);
         o = (QueryExpressionClause)nodeStack.Pop();
         if (o == null)
             queryExpression.Clauses.RemoveAt(i--);
         else
             queryExpression.Clauses[i] = o;
     }
     return null;
 }