Inheritance: QueryExpressionClause
 public override object TrackedVisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data)
 {
     return null;
 }
Example #2
0
	void AggregateQueryOperator(
//#line  2489 "VBNET.ATG" 
out QueryExpressionAggregateClause aggregateClause) {

//#line  2491 "VBNET.ATG" 
		aggregateClause = new QueryExpressionAggregateClause();
		aggregateClause.IntoVariables = new List<ExpressionRangeVariable>();
		aggregateClause.StartLocation = la.Location;
		CollectionRangeVariable source;
		
		Expect(58);
		CollectionRangeVariableDeclaration(
//#line  2496 "VBNET.ATG" 
out source);

//#line  2498 "VBNET.ATG" 
		aggregateClause.Source = source;
		
		while (StartOf(31)) {
			QueryOperator(
//#line  2501 "VBNET.ATG" 
aggregateClause.MiddleClauses);
		}
		Expect(143);
		ExpressionRangeVariableDeclarationList(
//#line  2503 "VBNET.ATG" 
aggregateClause.IntoVariables);

//#line  2505 "VBNET.ATG" 
		aggregateClause.EndLocation = t.EndLocation;
		
	}
		public virtual object TrackedVisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data) {
			return base.VisitQueryExpressionAggregateClause(queryExpressionAggregateClause, data);
		}
		public sealed override object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data) {
			this.BeginVisit(queryExpressionAggregateClause);
			object result = this.TrackedVisitQueryExpressionAggregateClause(queryExpressionAggregateClause, data);
			this.EndVisit(queryExpressionAggregateClause);
			return result;
		}
Example #5
0
	void AggregateQueryOperator(
#line  2191 "VBNET.ATG" 
List<QueryExpressionClause> middleClauses) {

#line  2193 "VBNET.ATG" 
		QueryExpressionFromClause fromClause = null;
		QueryExpressionAggregateClause aggregateClause = new QueryExpressionAggregateClause();
		aggregateClause.IntoVariables = new List<ExpressionRangeVariable>();
		aggregateClause.StartLocation = la.Location;
		
		Expect(45);
		CollectionRangeVariableDeclaration(
#line  2198 "VBNET.ATG" 
out fromClause);

#line  2200 "VBNET.ATG" 
		aggregateClause.FromClause = fromClause;
		
		while (StartOf(31)) {
			QueryOperator(
#line  2203 "VBNET.ATG" 
aggregateClause.MiddleClauses);
		}
		Expect(130);
		ExpressionRangeVariableDeclarationList(
#line  2205 "VBNET.ATG" 
aggregateClause.IntoVariables);

#line  2207 "VBNET.ATG" 
		aggregateClause.EndLocation = t.EndLocation;
		middleClauses.Add(aggregateClause);
		
	}
		public virtual object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data) {
			throw new global::System.NotImplementedException("QueryExpressionAggregateClause");
		}
Example #7
0
 public virtual object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data) {
     throw CreateException(queryExpressionAggregateClause);
 }
		public object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data)
		{
			AddError(queryExpressionAggregateClause, "QueryExpressionAggregateClause is not supported.");
			return null;
		}
Example #9
0
 public virtual object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data)
 {
     Debug.Assert((queryExpressionAggregateClause != null));
     Debug.Assert((queryExpressionAggregateClause.FromClause != null));
     Debug.Assert((queryExpressionAggregateClause.MiddleClauses != null));
     Debug.Assert((queryExpressionAggregateClause.IntoVariables != null));
     queryExpressionAggregateClause.FromClause.AcceptVisitor(this, data);
     foreach (QueryExpressionClause o in queryExpressionAggregateClause.MiddleClauses) {
         Debug.Assert(o != null);
         o.AcceptVisitor(this, data);
     }
     foreach (ExpressionRangeVariable o in queryExpressionAggregateClause.IntoVariables) {
         Debug.Assert(o != null);
         o.AcceptVisitor(this, data);
     }
     return null;
 }
		public virtual object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data) {
			Debug.Assert((queryExpressionAggregateClause != null));
			Debug.Assert((queryExpressionAggregateClause.FromClause != null));
			Debug.Assert((queryExpressionAggregateClause.MiddleClauses != null));
			Debug.Assert((queryExpressionAggregateClause.IntoVariables != null));
			nodeStack.Push(queryExpressionAggregateClause.FromClause);
			queryExpressionAggregateClause.FromClause.AcceptVisitor(this, data);
			queryExpressionAggregateClause.FromClause = ((QueryExpressionFromClause)(nodeStack.Pop()));
			for (int i = 0; i < queryExpressionAggregateClause.MiddleClauses.Count; i++) {
				QueryExpressionClause o = queryExpressionAggregateClause.MiddleClauses[i];
				Debug.Assert(o != null);
				nodeStack.Push(o);
				o.AcceptVisitor(this, data);
				o = (QueryExpressionClause)nodeStack.Pop();
				if (o == null)
					queryExpressionAggregateClause.MiddleClauses.RemoveAt(i--);
				else
					queryExpressionAggregateClause.MiddleClauses[i] = o;
			}
			for (int i = 0; i < queryExpressionAggregateClause.IntoVariables.Count; i++) {
				ExpressionRangeVariable o = queryExpressionAggregateClause.IntoVariables[i];
				Debug.Assert(o != null);
				nodeStack.Push(o);
				o.AcceptVisitor(this, data);
				o = (ExpressionRangeVariable)nodeStack.Pop();
				if (o == null)
					queryExpressionAggregateClause.IntoVariables.RemoveAt(i--);
				else
					queryExpressionAggregateClause.IntoVariables[i] = o;
			}
			return null;
		}
 public object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data)
 {
     throw new NotImplementedException ();
 }
 public virtual bool VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object d)
 {
     if ((queryExpressionAggregateClause == null)) {
         return SetFailure();
     }
     if ((d == null)) {
         return SetFailure();
     }
     if ((queryExpressionAggregateClause.FromClause == null)) {
         return SetFailure();
     }
     if ((queryExpressionAggregateClause.MiddleClauses == null)) {
         return SetFailure();
     }
     if ((queryExpressionAggregateClause.IntoVariables == null)) {
         return SetFailure();
     }
     if(queryExpressionAggregateClause.GetType() != d.GetType()) {return SetFailure();}
     var data = (QueryExpressionAggregateClause)d;
     if (!IsMatch(queryExpressionAggregateClause, data)) {
         return SetFailure();
     }
     queryExpressionAggregateClause.FromClause.AcceptVisitor(this, data.FromClause);
     if (queryExpressionAggregateClause.MiddleClauses.Count == data.MiddleClauses.Count) {
     for (int i=0; i<queryExpressionAggregateClause.MiddleClauses.Count;i++) {
         QueryExpressionClause o = queryExpressionAggregateClause.MiddleClauses[i];
         if(o == null){return SetFailure();}
         if((bool)o.AcceptVisitor(this, data.MiddleClauses[i]) == false) return SetFailure();
     }			}			else { return SetFailure(); }
     if (queryExpressionAggregateClause.IntoVariables.Count == data.IntoVariables.Count) {
     for (int i=0; i<queryExpressionAggregateClause.IntoVariables.Count;i++) {
         ExpressionRangeVariable o = queryExpressionAggregateClause.IntoVariables[i];
         if(o == null){return SetFailure();}
         if((bool)o.AcceptVisitor(this, data.IntoVariables[i]) == false) return SetFailure();
     }			}			else { return SetFailure(); }
     return true;
 }
Example #13
0
		public override object VisitQueryExpressionAggregateClause(QueryExpressionAggregateClause queryExpressionAggregateClause, object data)
		{
			return base.VisitQueryExpressionAggregateClause(queryExpressionAggregateClause, data);
		}
 private bool IsMatch(QueryExpressionAggregateClause left, QueryExpressionAggregateClause right)
 {
     return false;
 }
Example #15
0
	void AggregateQueryOperator(
#line  2431 "VBNET.ATG" 
out QueryExpressionAggregateClause aggregateClause) {

#line  2433 "VBNET.ATG" 
		aggregateClause = new QueryExpressionAggregateClause();
		aggregateClause.IntoVariables = new List<ExpressionRangeVariable>();
		aggregateClause.StartLocation = la.Location;
		CollectionRangeVariable source;
		
		Expect(58);
		CollectionRangeVariableDeclaration(
#line  2438 "VBNET.ATG" 
out source);

#line  2440 "VBNET.ATG" 
		aggregateClause.Source = source;
		
		while (StartOf(30)) {
			QueryOperator(
#line  2443 "VBNET.ATG" 
aggregateClause.MiddleClauses);
		}
		Expect(143);
		ExpressionRangeVariableDeclarationList(
#line  2445 "VBNET.ATG" 
aggregateClause.IntoVariables);

#line  2447 "VBNET.ATG" 
		aggregateClause.EndLocation = t.EndLocation;
		
	}