dmd.initsem

Semantic analysis of initializers.

Members

Functions

inferType
Initializer inferType(Initializer init, Scope* sc)

Translate init to an Expression in order to infer the type.

initializerSemantic
Initializer initializerSemantic(Initializer init, Scope* sc, Type t, NeedInterpret needInterpret)

Perform semantic analysis on init.

initializerToExpression
Expression initializerToExpression(Initializer init, Type itype = null)

Translate init to an Expression.

toAssocArrayLiteral
Expression toAssocArrayLiteral(ArrayInitializer ai)

If possible, convert array initializer to associative array initializer.

Meta