psyclone.psyir.nodes.array_constructor#
This module contains the ArrayConstructor node implementation.
Classes#
ArrayConstructor: Node representing an array constructor.
- class psyclone.psyir.nodes.array_constructor.ArrayConstructor(**kwargs)[source]#
Node representing an array constructor.
Inheritance

- static create(elems)[source]#
Create an ArrayConstructor instance representing an array with the given elements.
- Parameters:
elems (
list[DataNode]) – the elements of the array being constructed.- Return type:
- Returns:
an ArrayConstructor instance.
- Raises:
GenerationError – if the arguments are not of the expected type.
- property datatype: DataType | DataTypeSymbol#
- Returns:
the type of this array constructor.