initializerSemantic

Perform semantic analysis on init.

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

Meta