Exemplo n.º 1
0
        public ComposedType(FullNamedExpression left, ComposedTypeSpecifier spec)
        {
            if (spec == null)
            {
                throw new ArgumentNullException("spec");
            }

            this.left = left;
            this.spec = spec;
            this.loc  = left.Location;
        }
Exemplo n.º 2
0
        //
        // For expressions like int[] foo = new int[] { 1, 2, 3 };
        //
        public ArrayCreation(FullNamedExpression requested_base_type, ComposedTypeSpecifier rank, ArrayInitializer initializers, Location loc)
        {
            this.requested_base_type = requested_base_type;
            this.rank         = rank;
            this.initializers = initializers;
            this.loc          = loc;

            if (rank != null)
            {
                num_arguments = rank.Dimension;
            }
        }
Exemplo n.º 3
0
 public ArrayCreation(FullNamedExpression requested_base_type, List <Expression> exprs, ComposedTypeSpecifier rank, ArrayInitializer initializers, Location l)
     : this(requested_base_type, rank, initializers, l)
 {
     arguments     = new List <Expression>(exprs);
     num_arguments = arguments.Count;
 }
 public ImplicitlyTypedArrayCreation(ComposedTypeSpecifier rank, ArrayInitializer initializers, Location loc)
     : base(null, rank, initializers, loc)
 {
 }