Example #1
0
        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);
        }
Example #2
0
        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);
        }