Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NewArrayExpression.cs
Go to the documentation of this file.
5
7
8[DebuggerTypeProxy(typeof(NewArrayExpressionProxy))]
10{
11 public sealed override Type Type { get; }
12
13 public ReadOnlyCollection<Expression> Expressions { get; }
14
20
22 {
23 if (nodeType == ExpressionType.NewArrayInit)
24 {
26 }
28 }
29
30 protected internal override Expression Accept(ExpressionVisitor visitor)
31 {
32 return visitor.VisitNewArray(this);
33 }
34
36 {
38 if (ExpressionUtils.SameElements(ref expressions, Expressions))
39 {
40 return this;
41 }
42 if (NodeType != ExpressionType.NewArrayInit)
43 {
45 }
47 }
48}
static void RequiresNotNull(object value, string paramName)
static NewArrayExpression NewArrayBounds(Type type, params Expression[] bounds)
virtual ExpressionType NodeType
static NewArrayExpression NewArrayInit(Type type, params Expression[] initializers)
NewArrayExpression(Type type, ReadOnlyCollection< Expression > expressions)
static NewArrayExpression Make(ExpressionType nodeType, Type type, ReadOnlyCollection< Expression > expressions)
override Expression Accept(ExpressionVisitor visitor)
NewArrayExpression Update(IEnumerable< Expression > expressions)
Type? GetElementType()