initializerSemantic

Perform semantic analysis on init.

extern (C++)
initializerSemantic

Parameters

init Initializer

Initializer AST node

sc Scope*

context

tx Type

type that the initializer needs to become. If tx is an incomplete type and the initializer completes it, it is updated to be the complete type. ImportC has incomplete types

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