dmd.init

Defines initializers of variables, e.g. the array literal in int[3] x = [0, 1, 2].

Members

Classes

ArrayInitializer
class ArrayInitializer
CInitializer
class CInitializer

C11 6.7.9 Initialization Represents the C initializer-list

ErrorInitializer
class ErrorInitializer
ExpInitializer
class ExpInitializer
Initializer
class Initializer
StructInitializer
class StructInitializer
VoidInitializer
class VoidInitializer

Functions

syntaxCopy
Initializer syntaxCopy(Initializer inx)

Copy the AST for Initializer.

visitCase
string visitCase(string handler)

CTFE-only helper function for VisitInitializer.

Mixin templates

VisitInitializer
mixintemplate VisitInitializer(Result)

Visit each Initializer in init. Call a function visit%s(init) for each node, where %s is the op of the node. Otherwise call visitDefault(init) for that node. If the visit function returns R.init, continue visiting each node, otherwise return the value of R.

Structs

DesigInit
struct DesigInit

Holds the designation (opt) initializer for C initializers

Designator
struct Designator

Holds the designator for C initializers

Meta