StructDeclaration.fit

Fit elements[] to the corresponding types of the struct's fields.

class StructDeclaration
final
bool
fit

Parameters

loc Loc

location to use for error messages

sc Scope*

context

elements Expressions*

explicit arguments used to construct object

stype Type

the constructed object type.

Return Value

Type: bool

false if any errors occur, otherwise true and elements[] are rewritten for the output.

Meta