Exemplo n.º 1
0
		public virtual object VisitQueryExpressionOrdering(QueryExpressionOrdering queryExpressionOrdering, object data) {
			Debug.Assert((queryExpressionOrdering != null));
			Debug.Assert((queryExpressionOrdering.Criteria != null));
			return queryExpressionOrdering.Criteria.AcceptVisitor(this, data);
		}
		public virtual object VisitQueryExpressionOrdering(QueryExpressionOrdering queryExpressionOrdering, object data) {
			throw new global::System.NotImplementedException("QueryExpressionOrdering");
		}
Exemplo n.º 3
0
		public virtual object VisitQueryExpressionOrdering(QueryExpressionOrdering queryExpressionOrdering, object data) {
			Debug.Assert((queryExpressionOrdering != null));
			Debug.Assert((queryExpressionOrdering.Criteria != null));
			nodeStack.Push(queryExpressionOrdering.Criteria);
			queryExpressionOrdering.Criteria.AcceptVisitor(this, data);
			queryExpressionOrdering.Criteria = ((Expression)(nodeStack.Pop()));
			return null;
		}
Exemplo n.º 4
0
	void OrderExpression(out QueryExpressionOrdering ordering) {
		ordering = new QueryExpressionOrdering();
		ordering.StartLocation = la.Location;
		ordering.Direction = QueryExpressionOrderingDirection.None;
		Expression orderExpr = null;

		Expr(out orderExpr);
		ordering.Criteria = orderExpr;

		if (la.kind == 64 || la.kind == 104) {
			if (la.kind == 64) {
				Get();
				ordering.Direction = QueryExpressionOrderingDirection.Ascending;
			} else {
				Get();
				ordering.Direction = QueryExpressionOrderingDirection.Descending;
			}
		}
		ordering.EndLocation = t.EndLocation;
	}
Exemplo n.º 5
0
		public sealed override object VisitQueryExpressionOrdering(QueryExpressionOrdering queryExpressionOrdering, object data) {
			this.BeginVisit(queryExpressionOrdering);
			object result = this.TrackedVisitQueryExpressionOrdering(queryExpressionOrdering, data);
			this.EndVisit(queryExpressionOrdering);
			return result;
		}
Exemplo n.º 6
0
		public virtual object TrackedVisitQueryExpressionOrdering(QueryExpressionOrdering queryExpressionOrdering, object data) {
			return base.VisitQueryExpressionOrdering(queryExpressionOrdering, data);
		}