Example #1
0
        BoundExpression BindArrayEx(AST.ArrayEx x, BoundAccess access)
        {
            Debug.Assert(access.IsRead && !access.IsReadRef);

            return(new BoundArrayEx(BindArrayItems(x.Items))
            {
                PhpSyntax = x
            }.WithAccess(access));
        }
Example #2
0
        public virtual LangElement NewArray(Span span, IEnumerable <Item> itemsOpt, bool isOldNotation)
        {
            var items = itemsOpt.AsArray();

            return(ArrayEx.CreateArray(span, items.All(IsNull) ? null : items, !isOldNotation));
        }
Example #3
0
        public virtual LangElement List(Span span, IEnumerable <Item> targets, bool isOldNotation)
        {
            var items = targets.AsArray();

            return(ArrayEx.CreateList(span, items.All(IsNull) ? null : items, !isOldNotation));
        }