Exemplo n.º 1
0
        /// <summary>
        /// Initializes instance of <see cref="ForeachVar"/> representing PHP list expression.
        /// </summary>
        /// <param name="list"></param>
        public ForeachVar(ListEx /*!*/ list)
        {
            Debug.Assert(list != null);

            _target = list;
            _alias  = false;
        }
Exemplo n.º 2
0
        BoundExpression BindListEx(AST.ListEx expr)
        {
            var vars = expr.Items
                       .Select(lval => (lval != null) ? (BoundReferenceExpression)BindExpression(((AST.ValueItem)lval).ValueExpr, BoundAccess.Write) : null)
                       .ToArray();

            return(new BoundListEx(vars).WithAccess(BoundAccess.Write));
        }