initializerToExpression

Translate init to an Expression.

extern (C++)
initializerToExpression
(,
Type itype = null
,
const bool isCfile = false
)

Parameters

init Initializer

Initializer AST node

itype Type

if not null, type to coerce expression to

isCfile bool

default initializers are different with C

Return Value

Expression created, null if cannot, ErrorExp for other errors

Meta