createBlockDuplicatedArrayLiteral

Helper for NewExp Create an array literal consisting of 'elem' duplicated 'dim' times.

createBlockDuplicatedArrayLiteral
(,
const ref Loc loc
,,,
size_t dim
)

Parameters

pue
Type: UnionExp*

where to store result

loc
Type: Loc

source location where the interpretation occurs

type
Type: Type

target type of the result

elem

the source of array element, it will be owned by the result

dim
Type: size_t

element number of the result

Return Value

Constructed ArrayLiteralExp

Meta