initializerSemantic

Perform semantic analysis on init.

extern (C++)
initializerSemantic

Parameters

init Initializer

Initializer AST node

sc Scope*

context

t Type

type that the initializer needs to become

needInterpret NeedInterpret

if CTFE needs to be run on this, such as if it is the initializer for a const declaration

Return Value

Initializer with completed semantic analysis, ErrorInitializer if errors were encountered

Suggestion Box / Bug Report