Inheritance: QueryExpressionClause
コード例 #1
0
		public override object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
		{
			var generateExpression = GenerateExpression(queryExpressionLetClause.Expression);
			if (generateExpression != null)
				aliasToName[queryExpressionLetClause.Identifier] = generateExpression + ".";
			return base.VisitQueryExpressionLetClause(queryExpressionLetClause, data);
		}
コード例 #2
0
		public override object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
		{
			if (SimplifyLetExpression(queryExpressionLetClause.Expression) is LambdaExpression)
			{
				var text = QueryParsingUtils.ToText(queryExpressionLetClause);
				throw new SecurityException("Let expression cannot contain labmda expressions, but got: " + text);
			}

			return base.VisitQueryExpressionLetClause(queryExpressionLetClause, data);
		}
コード例 #3
0
		public override object VisitQueryExpressionLetClause(QueryExpressionLetClause letClause, object data)
		{
			AddVariable(null, letClause.Identifier,
			            letClause.StartLocation, CurrentEndLocation,
			            false, false, letClause.Expression, null, false, letClause.StartLocation);
			return base.VisitQueryExpressionLetClause(letClause, data);
		}
コード例 #4
0
ファイル: Parser.cs プロジェクト: pluraldj/SharpDevelop
	void QueryExpressionLetClause(
#line  2545 "cs.ATG" 
out QueryExpressionLetClause wc) {

#line  2546 "cs.ATG" 
		Expression expr; wc = new QueryExpressionLetClause(); wc.StartLocation = la.Location; 
		Expect(141);
		Identifier();

#line  2549 "cs.ATG" 
		wc.Identifier = t.val; 
		Expect(3);
		Expr(
#line  2551 "cs.ATG" 
out expr);

#line  2551 "cs.ATG" 
		wc.Expression = expr; 

#line  2552 "cs.ATG" 
		wc.EndLocation = t.EndLocation; 
	}
コード例 #5
0
		public override object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
		{
			return base.VisitQueryExpressionLetClause(queryExpressionLetClause, data);
		}
コード例 #6
0
ファイル: Parser.cs プロジェクト: Bombadil77/SharpDevelop
	void QueryExpressionLetClause(
//#line  2503 "cs.ATG" 
out QueryExpressionLetClause wc) {

//#line  2504 "cs.ATG" 
		Expression expr; wc = new QueryExpressionLetClause(); wc.StartLocation = la.Location; 
		Expect(141);
		Identifier();

//#line  2507 "cs.ATG" 
		wc.Identifier = t.val; 
		Expect(3);
		Expr(
//#line  2509 "cs.ATG" 
out expr);

//#line  2509 "cs.ATG" 
		wc.Expression = expr; 

//#line  2510 "cs.ATG" 
		wc.EndLocation = t.EndLocation; 
	}
コード例 #7
0
ファイル: JsVisitor.cs プロジェクト: hallvar/Joddes.CS
 public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) {
     throw CreateException(queryExpressionLetClause);
 }
コード例 #8
0
		public sealed override object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) {
			this.BeginVisit(queryExpressionLetClause);
			object result = this.TrackedVisitQueryExpressionLetClause(queryExpressionLetClause, data);
			this.EndVisit(queryExpressionLetClause);
			return result;
		}
コード例 #9
0
ファイル: AbstractASTVisitor.cs プロジェクト: pusp/o2platform
 public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
 {
     Debug.Assert((queryExpressionLetClause != null));
     Debug.Assert((queryExpressionLetClause.Expression != null));
     return queryExpressionLetClause.Expression.AcceptVisitor(this, data);
 }
コード例 #10
0
		public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) {
			Debug.Assert((queryExpressionLetClause != null));
			Debug.Assert((queryExpressionLetClause.Expression != null));
			nodeStack.Push(queryExpressionLetClause.Expression);
			queryExpressionLetClause.Expression.AcceptVisitor(this, data);
			queryExpressionLetClause.Expression = ((Expression)(nodeStack.Pop()));
			return null;
		}
コード例 #11
0
 public object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
 {
     throw new NotImplementedException ();
 }
コード例 #12
0
 public virtual bool VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object d)
 {
     if ((queryExpressionLetClause == null)) {
         return SetFailure();
     }
     if ((d == null)) {
         return SetFailure();
     }
     if ((queryExpressionLetClause.Expression == null)) {
         return SetFailure();
     }
     if(queryExpressionLetClause.GetType() != d.GetType()) {return SetFailure();}
     var data = (QueryExpressionLetClause)d;
     if (!IsMatch(queryExpressionLetClause, data)) {
         return SetFailure();
     }
     return queryExpressionLetClause.Expression.AcceptVisitor(this, data.Expression);
 }
コード例 #13
0
ファイル: LookupTableVisitor.cs プロジェクト: almazik/ILSpy
 public override object VisitQueryExpressionLetClause(QueryExpressionLetClause letClause, object data)
 {
     QueryExpression parentExpression = letClause.Parent as QueryExpression;
     if (parentExpression != null) {
         AddVariable(null, letClause.Identifier,
                     parentExpression.StartLocation, parentExpression.EndLocation,
                     false, false, letClause.Expression);
     }
     return base.VisitQueryExpressionLetClause(letClause, data);
 }
コード例 #14
0
		public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) {
			throw new global::System.NotImplementedException("QueryExpressionLetClause");
		}
コード例 #15
0
ファイル: Parser.cs プロジェクト: okrmartin/monodevelop
	void QueryExpressionLetClause(
#line  2504 "Frames/cs.ATG" 
out QueryExpressionLetClause wc) {

#line  2505 "Frames/cs.ATG" 
		Expression expr; wc = new QueryExpressionLetClause(); wc.StartLocation = la.Location; 
		Expect(141);
		Identifier();

#line  2508 "Frames/cs.ATG" 
		wc.Identifier = t.val; 
		Expect(3);
		Expr(
#line  2510 "Frames/cs.ATG" 
out expr);

#line  2510 "Frames/cs.ATG" 
		wc.Expression = expr; 

#line  2511 "Frames/cs.ATG" 
		wc.EndLocation = t.EndLocation; 
	}
コード例 #16
0
		public virtual object TrackedVisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) {
			return base.VisitQueryExpressionLetClause(queryExpressionLetClause, data);
		}
コード例 #17
0
		public object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
		{
			AddError(queryExpressionLetClause, "QueryExpressionLetClause is not supported.");
			return null;
		}
コード例 #18
0
 public override object TrackedVisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data)
 {
     return null;
 }
コード例 #19
0
 private bool IsMatch(QueryExpressionLetClause left, QueryExpressionLetClause right)
 {
     return left.Identifier == right.Identifier;
 }