Inheritance: QueryExpressionFromOrJoinClause
		public override object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
		{
			var memberReferenceExpression = queryExpressionFromClause.InExpression as MemberReferenceExpression;
			if (memberReferenceExpression != null)
			{
				var identifierExpression = memberReferenceExpression.TargetObject as IdentifierExpression;
				if (identifierExpression != null && identifierExpression.Identifier != "docs")
				{
					var generateExpression = GenerateExpression(queryExpressionFromClause.InExpression);
					if (generateExpression != null)
						aliasToName[queryExpressionFromClause.Identifier] = generateExpression + ",";
				}
			}
			return base.VisitQueryExpressionFromClause(queryExpressionFromClause, data);
		}
		public override object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
		{
			return base.VisitQueryExpressionFromClause(queryExpressionFromClause, data);
		}
 public override object TrackedVisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
 {
     return null;
 }
		public virtual object TrackedVisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data) {
			return base.VisitQueryExpressionFromClause(queryExpressionFromClause, data);
		}
Beispiel #5
0
	void CollectionRangeVariableDeclaration(
#line  2292 "VBNET.ATG" 
out QueryExpressionFromClause fromClause) {

#line  2294 "VBNET.ATG" 
		fromClause = new QueryExpressionFromClause();
		fromClause.StartLocation = la.Location;
		TypeReference typeName = null;
		Expression inExpr = null;
		
		Identifier();
		if (la.kind == 50) {
			lexer.NextToken();
			TypeName(
#line  2300 "VBNET.ATG" 
out typeName);

#line  2300 "VBNET.ATG" 
			fromClause.Type = typeName; 
		}
		Expect(125);
		Expr(
#line  2301 "VBNET.ATG" 
out inExpr);

#line  2303 "VBNET.ATG" 
		fromClause.InExpression = inExpr;
		fromClause.EndLocation = t.EndLocation;
		
	}
Beispiel #6
0
	void QueryExpressionFromClause(
#line  2474 "cs.ATG" 
out QueryExpressionFromClause fc) {

#line  2475 "cs.ATG" 
		fc = new QueryExpressionFromClause();
		fc.StartLocation = la.Location;
		CollectionRangeVariable variable;
		
		Expect(137);
		QueryExpressionFromOrJoinClause(
#line  2481 "cs.ATG" 
out variable);

#line  2482 "cs.ATG" 
		fc.EndLocation = t.EndLocation;
		fc.Sources.Add(variable);
		
	}
		public object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
		{
			AddError(queryExpressionFromClause, "QueryExpressionFromClause is not supported.");
			return null;
		}
		public QueryExpressionAggregateClause() {
			fromClause = QueryExpressionFromClause.Null;
			middleClauses = new List<QueryExpressionClause>();
			intoVariables = new List<ExpressionRangeVariable>();
		}
		public QueryExpressionJoinVBClause() {
			joinVariable = QueryExpressionFromClause.Null;
			subJoin = QueryExpressionJoinVBClause.Null;
			conditions = new List<QueryExpressionJoinConditionVB>();
		}
		public override object VisitQueryExpressionFromClause(QueryExpressionFromClause fromClause, object data)
		{
			QueryExpression parent = fromClause.Parent as QueryExpression;
			foreach (CollectionRangeVariable variable in fromClause.Sources) {
				AddVariable(variable.Type, variable.Identifier,
				            variable.StartLocation, CurrentEndLocation,
				            false, true, variable.Expression, null, parent != null && parent.IsQueryContinuation);
			}

			return base.VisitQueryExpressionFromClause(fromClause, data);
		}
 public virtual bool VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object d)
 {
     if ((queryExpressionFromClause == null)) {
         return SetFailure();
     }
     if ((d == null)) {
         return SetFailure();
     }
     if ((queryExpressionFromClause.Type == null)) {
         return SetFailure();
     }
     if ((queryExpressionFromClause.InExpression == null)) {
         return SetFailure();
     }
     if(queryExpressionFromClause.GetType() != d.GetType()) {return SetFailure();}
     var data = (QueryExpressionFromClause)d;
     if (!IsMatch(queryExpressionFromClause, data)) {
         return SetFailure();
     }
     queryExpressionFromClause.Type.AcceptVisitor(this, data.Type);
     return queryExpressionFromClause.InExpression.AcceptVisitor(this, data.InExpression);
 }
Beispiel #12
0
 public override object VisitQueryExpressionFromClause(QueryExpressionFromClause fromClause, object data)
 {
     QueryExpression parentExpression = fromClause.Parent as QueryExpression;
     if (parentExpression != null) {
         AddVariable(fromClause.Type, fromClause.Identifier,
                     parentExpression.StartLocation, parentExpression.EndLocation,
                     false, true, fromClause.InExpression);
     }
     return base.VisitQueryExpressionFromClause(fromClause, data);
 }
Beispiel #13
0
	void QueryExpressionFromClause(
#line  2379 "cs.ATG" 
out QueryExpressionFromClause fc) {

#line  2380 "cs.ATG" 
		fc = new QueryExpressionFromClause(); fc.StartLocation = la.Location; 
		
		Expect(137);
		QueryExpressionFromOrJoinClause(
#line  2384 "cs.ATG" 
fc);

#line  2385 "cs.ATG" 
		fc.EndLocation = t.EndLocation; 
	}
Beispiel #14
0
 public QueryExpression()
 {
     fromClause = QueryExpressionFromClause.Null;
     fromLetWhereClauses = new List<QueryExpressionClause>();
     orderings = new List<QueryExpressionOrdering>();
     selectOrGroupClause = QueryExpressionClause.Null;
     intoClause = QueryExpressionIntoClause.Null;
 }
Beispiel #15
0
 public virtual object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data) {
     throw CreateException(queryExpressionFromClause);
 }
		public override object VisitQueryExpressionFromClause(QueryExpressionFromClause fromClause, object data)
		{
			AddVariable(fromClause.Type, fromClause.Identifier,
			            fromClause.StartLocation, CurrentEndLocation,
			            false, true, fromClause.InExpression, null);
			return base.VisitQueryExpressionFromClause(fromClause, data);
		}
Beispiel #17
0
	void QueryExpressionFromClause(
#line  2441 "Frames/cs.ATG" 
out QueryExpressionFromClause fc) {

#line  2442 "Frames/cs.ATG" 
		fc = new QueryExpressionFromClause(); fc.StartLocation = la.Location; 
		
		Expect(137);
		QueryExpressionFromOrJoinClause(
#line  2446 "Frames/cs.ATG" 
fc);

#line  2447 "Frames/cs.ATG" 
		fc.EndLocation = t.EndLocation; 
	}
 public object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
 {
     throw new NotImplementedException ();
 }
Beispiel #19
0
	void QueryExpressionFromClause(
//#line  2432 "cs.ATG" 
out QueryExpressionFromClause fc) {

//#line  2433 "cs.ATG" 
		fc = new QueryExpressionFromClause();
		fc.StartLocation = la.Location;
		CollectionRangeVariable variable;
		
		Expect(137);
		QueryExpressionFromOrJoinClause(
//#line  2439 "cs.ATG" 
out variable);

//#line  2440 "cs.ATG" 
		fc.EndLocation = t.EndLocation;
		fc.Sources.Add(variable);
		
	}
Beispiel #20
0
	void FromQueryOperator(
#line  2414 "VBNET.ATG" 
out QueryExpressionFromClause fromClause) {

#line  2416 "VBNET.ATG" 
		fromClause = new QueryExpressionFromClause();
		fromClause.StartLocation = la.Location;
		
		Expect(126);
		CollectionRangeVariableDeclarationList(
#line  2419 "VBNET.ATG" 
fromClause.Sources);

#line  2421 "VBNET.ATG" 
		fromClause.EndLocation = t.EndLocation;
		
	}
 public override object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
 {
     this.identifier = queryExpressionFromClause.Identifier;
     return base.VisitQueryExpressionFromClause(queryExpressionFromClause, data);
 }
Beispiel #22
0
 public virtual object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data)
 {
     Debug.Assert((queryExpressionFromClause != null));
     Debug.Assert((queryExpressionFromClause.Type != null));
     Debug.Assert((queryExpressionFromClause.InExpression != null));
     queryExpressionFromClause.Type.AcceptVisitor(this, data);
     return queryExpressionFromClause.InExpression.AcceptVisitor(this, data);
 }
		public override object VisitQueryExpressionFromClause(QueryExpressionFromClause fromClause, object data)
		{
			QueryExpression parent = fromClause.Parent as QueryExpression;
			AddVariable(fromClause.Type, fromClause.Identifier,
			            fromClause.StartLocation, new Location (CurrentEndLocation.Column + 1, CurrentEndLocation.Line),
			            false, true, fromClause.InExpression, null, parent != null && parent.IsQueryContinuation, fromClause.StartLocation);
			return base.VisitQueryExpressionFromClause(fromClause, data);
		}
Beispiel #24
0
	void QueryExpressionFromClause(
#line  2406 "cs.ATG" 
out QueryExpressionFromClause fc) {

#line  2407 "cs.ATG" 
		fc = new QueryExpressionFromClause(); fc.StartLocation = la.Location; 
		
		Expect(137);
		QueryExpressionFromOrJoinClause(
#line  2411 "cs.ATG" 
fc);

#line  2412 "cs.ATG" 
		fc.EndLocation = t.EndLocation; 
	}
		public virtual object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data) {
			throw new global::System.NotImplementedException("QueryExpressionFromClause");
		}
Beispiel #26
0
		public QueryExpression() {
			fromClause = QueryExpressionFromClause.Null;
			middleClauses = new List<QueryExpressionClause>();
			selectOrGroupClause = QueryExpressionClause.Null;
		}
		public sealed override object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data) {
			this.BeginVisit(queryExpressionFromClause);
			object result = this.TrackedVisitQueryExpressionFromClause(queryExpressionFromClause, data);
			this.EndVisit(queryExpressionFromClause);
			return result;
		}
		public virtual object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data) {
			Debug.Assert((queryExpressionFromClause != null));
			Debug.Assert((queryExpressionFromClause.Type != null));
			Debug.Assert((queryExpressionFromClause.InExpression != null));
			nodeStack.Push(queryExpressionFromClause.Type);
			queryExpressionFromClause.Type.AcceptVisitor(this, data);
			queryExpressionFromClause.Type = ((TypeReference)(nodeStack.Pop()));
			nodeStack.Push(queryExpressionFromClause.InExpression);
			queryExpressionFromClause.InExpression.AcceptVisitor(this, data);
			queryExpressionFromClause.InExpression = ((Expression)(nodeStack.Pop()));
			return null;
		}
Beispiel #29
0
	void FromQueryOperator(
//#line  2420 "VBNET.ATG" 
out QueryExpressionFromClause fromClause) {

//#line  2422 "VBNET.ATG" 
		fromClause = new QueryExpressionFromClause();
		fromClause.StartLocation = la.Location;
		
		Expect(126);
		CollectionRangeVariableDeclarationList(
//#line  2425 "VBNET.ATG" 
fromClause.Sources);

//#line  2427 "VBNET.ATG" 
		fromClause.EndLocation = t.EndLocation;
		
	}
		public virtual object VisitQueryExpressionFromClause(QueryExpressionFromClause queryExpressionFromClause, object data) {
			Debug.Assert((queryExpressionFromClause != null));
			Debug.Assert((queryExpressionFromClause.Sources != null));
			for (int i = 0; i < queryExpressionFromClause.Sources.Count; i++) {
				CollectionRangeVariable o = queryExpressionFromClause.Sources[i];
				Debug.Assert(o != null);
				nodeStack.Push(o);
				o.AcceptVisitor(this, data);
				o = (CollectionRangeVariable)nodeStack.Pop();
				if (o == null)
					queryExpressionFromClause.Sources.RemoveAt(i--);
				else
					queryExpressionFromClause.Sources[i] = o;
			}
			return null;
		}