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); }
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); }
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); }
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; }
public override object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { return base.VisitQueryExpressionLetClause(queryExpressionLetClause, data); }
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; }
public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { throw CreateException(queryExpressionLetClause); }
public sealed override object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { this.BeginVisit(queryExpressionLetClause); object result = this.TrackedVisitQueryExpressionLetClause(queryExpressionLetClause, data); this.EndVisit(queryExpressionLetClause); return result; }
public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { Debug.Assert((queryExpressionLetClause != null)); Debug.Assert((queryExpressionLetClause.Expression != null)); return queryExpressionLetClause.Expression.AcceptVisitor(this, data); }
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; }
public object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { throw new NotImplementedException (); }
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); }
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); }
public virtual object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { throw new global::System.NotImplementedException("QueryExpressionLetClause"); }
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; }
public virtual object TrackedVisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { return base.VisitQueryExpressionLetClause(queryExpressionLetClause, data); }
public object VisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { AddError(queryExpressionLetClause, "QueryExpressionLetClause is not supported."); return null; }
public override object TrackedVisitQueryExpressionLetClause(QueryExpressionLetClause queryExpressionLetClause, object data) { return null; }
private bool IsMatch(QueryExpressionLetClause left, QueryExpressionLetClause right) { return left.Identifier == right.Identifier; }