private static bool Prefix(ref IAst ast) { var intoExpression = ast as IntoClause; if (intoExpression != null) { ast = new QueryStartClause { RangeVariable = intoExpression.RangeVariable, Initializer = intoExpression.Initializer, Next = intoExpression.Next }; } return(true); }
public override Expression DoResolve(ParseContext ec) { //var currentScope = ec.CurrentScope; //ec.CurrentScope = this.Scope; var nestedFrom = new QueryStartClause { RangeVariable = RangeVariable, Initializer = Initializer, Next = Next, Scope = Scope }.DoResolve(ec); //ec.CurrentScope = currentScope; return(nestedFrom); }