createBlockDuplicatedArrayLiteral

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

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

Parameters

pue UnionExp*

where to store result

loc Loc

source location where the interpretation occurs

type Type

target type of the result

elem Expression

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

dim size_t

element number of the result

Return Value

Constructed ArrayLiteralExp

Meta