CxExpressionNew

Description

sealed class Tinman.Core.Cx.Expressions.CxExpressionNew

Derived from

CxExpression abstract

Represents an expression that creates an object or array from zero or more arguments or an array of the given length:

new Type(argument0, argument1, ..., argumentN)
new Type[] { argument0, argument1, ..., argumentN }
new Type[length]

Public / Constructors

CxExpressionNew

2 overloads


public constructor CxExpressionNew1 → (2)

type in : CxType

[not-null]
The type to instantiate (CxType.CanNew must return true).

arguments opt : IBagConst<CxExpression> = null

The constructor argument list or array initializer list or null for an empty list. See Arguments.

Creates a new instance of CxExpressionNew.


public constructor CxExpressionNew2 → (2)

type in : CxTypeArray

[not-null]
The array type. See Type.

length in : CxExpression

[not-null]
The array length expression. See Length.

Creates a new instance of CxExpressionNew.

Public / Attributes

Arguments


public attribute Arguments → (get)

value : IVector<CxExpression>

The expression list or null iff Length is not null.

Returns the constructor argument list or array initializer list.

Length


public attribute Length → (get)

value : CxExpression

The array length expression or null iff Arguments is not null.

Returns the array length expression.

Type


public attribute Type → (get)

value : CxType

[not-null]
The created type. Will be CxTypeName or CxTypeArray.

Returns the type of the created object or array.