Пример #1
0
 public virtual Node VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     throw new System.NotImplementedException();
 }
 public override void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     throw NotSupportedToConsistency();
 }
Пример #3
0
			public override object Visit(Mono.CSharp.Linq.OrderByAscending orderByAscending)
			{
				currentQueryOrderClause = new QueryOrderClause();
				var location2 = LocationsBag.GetLocations(orderByAscending.block);
				if (location2 != null)
					currentQueryOrderClause.AddChild(new CSharpTokenNode(Convert(location2 [0]), QueryOrderClause.OrderbyKeywordRole), QueryOrderClause.OrderbyKeywordRole);
				var ordering = new QueryOrdering();
				if (orderByAscending.Expr != null)
					ordering.AddChild((Expression)orderByAscending.Expr.Accept(this), Roles.Expression);
				var location = LocationsBag.GetLocations(orderByAscending);
				if (location != null) {
					ordering.Direction = QueryOrderingDirection.Ascending;
					ordering.AddChild(new CSharpTokenNode(Convert(location [0]), QueryOrdering.AscendingKeywordRole), QueryOrdering.AscendingKeywordRole);
				}
				currentQueryOrderClause.AddChild(ordering, QueryOrderClause.OrderingRole);
				return currentQueryOrderClause;
			}
		public virtual void VisitQueryOrdering(QueryOrdering queryOrdering)
		{
			VisitChildren (queryOrdering);
		}
 public override void VisitQueryOrdering(QueryOrdering syntax)
 {
     _underlyingVisitor.VisitQueryOrdering(syntax);
 }
Пример #6
0
 public QueryOptions(QueryOrdering ordering, QueryCriterias criterias)
 {
     this.Ordering = ordering;
     this.Criterias = criterias;
 }
 public Node VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     return(CreateDummy(queryOrdering));
 }
Пример #8
0
 public override void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
 }
 public virtual S VisitQueryOrdering(QueryOrdering queryOrdering, T data)
 {
     return(VisitChildren(queryOrdering, data));
 }
Пример #10
0
 public void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     throw new NotImplementedException();
 }
Пример #11
0
 public void VisitQueryOrdering(QueryOrdering node)
 {
     NotSupported(node);
 }
Пример #12
0
 public StringBuilder VisitQueryOrdering(QueryOrdering queryOrdering, int data)
 {
     throw new ASLException("ASL does not understand LINQ.");
 }
Пример #13
0
 public RedILNode VisitQueryOrdering(QueryOrdering queryOrdering, State data)
 {
     throw new System.NotImplementedException();
 }
 /// <inheritdoc/>
 public virtual void VisitQueryOrdering(QueryOrdering syntax)
 {
     VisitNode(syntax);
 }
Пример #15
0
 public UnifiedElement VisitQueryOrdering(
     QueryOrdering order, object data)
 {
     throw new NotImplementedException("QueryOrdering");
 }
Пример #16
0
 public StringBuilder VisitQueryOrdering(QueryOrdering queryOrdering, int data)
 {
     throw new SLSharpException("SL# does not understand LINQ.");
 }
Пример #17
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            QueryOrdering o = other as QueryOrdering;

            return(o != null && this.Direction == o.Direction && this.Expression.DoMatch(o.Expression, match));
        }
Пример #18
0
 public override void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     base.VisitQueryOrdering(queryOrdering);
     indexData.HasOrder = true;
 }
Пример #19
0
 public StringBuilder VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     return(InvalidNode(queryOrdering, "LINQ is not supported"));
 }
 public virtual void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     if (this.ThrowException)
     {
         throw (Exception)this.CreateException(queryOrdering);
     }
 }
Пример #21
0
 public void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     throw new NotImplementedException();
 }
Пример #22
0
			public override object Visit (Mono.CSharp.Linq.ThenByDescending thenByDescending)
			{
				var result = new QueryOrderClause ();
				
				var ordering = new QueryOrdering ();
				
				ordering.AddChild ((Expression)thenByDescending.Expr.Accept (this), QueryWhereClause.Roles.Expression);
				var location = LocationsBag.GetLocations (thenByDescending);
				if (location != null) {
					ordering.Direction = QueryOrderingDirection.Descending;
					ordering.AddChild (new CSharpTokenNode (Convert (location[0]), "ascending".Length), QueryWhereClause.Roles.Keyword);
				}
				result.AddChild (ordering, QueryOrderClause.OrderingRole);
				return result;
			}
Пример #23
0
 public override void VisitQueryOrdering(QueryOrdering queryOrdering)
 {
     base.VisitQueryOrdering(queryOrdering);
     indexData.HasOrder = true;
 }
Пример #24
0
			public override object Visit(Mono.CSharp.Linq.ThenByDescending thenByDescending)
			{
				var ordering = new QueryOrdering();
				if (thenByDescending.Expr != null)
					ordering.AddChild((Expression)thenByDescending.Expr.Accept(this), Roles.Expression);
				var location = LocationsBag.GetLocations(thenByDescending);
				if (location != null) {
					ordering.Direction = QueryOrderingDirection.Descending;
					ordering.AddChild(new CSharpTokenNode(Convert(location [0]), QueryOrdering.DescendingKeywordRole), QueryOrdering.DescendingKeywordRole);
				}
				currentQueryOrderClause.AddChild(ordering, QueryOrderClause.OrderingRole);
				return null;
			}
Пример #25
0
 public JNode VisitQueryOrdering(QueryOrdering node)
 {
     throw new NotImplementedException();
 }
Пример #26
0
		public void VisitQueryOrdering(QueryOrdering queryOrdering)
		{
			StartNode(queryOrdering);
			queryOrdering.Expression.AcceptVisitor(this);
			switch (queryOrdering.Direction) {
				case QueryOrderingDirection.Ascending:
					Space();
					WriteKeyword(QueryOrdering.AscendingKeywordRole);
					break;
				case QueryOrderingDirection.Descending:
					Space();
					WriteKeyword(QueryOrdering.DescendingKeywordRole);
					break;
			}
			EndNode(queryOrdering);
		}
Пример #27
0
 public StringBuilder VisitQueryOrdering(QueryOrdering queryOrdering, int data)
 {
     throw new SLSharpException("SL# does not understand LINQ.");
 }