dmd.init

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

Authors

Walter Bright

Source: init.d

  • Declaration

    class Initializer: dmd.ast_node.ASTNode;

  • Declaration

    class VoidInitializer: dmd.init.Initializer;

  • Declaration

    class ErrorInitializer: dmd.init.Initializer;

  • Declaration

    class StructInitializer: dmd.init.Initializer;

  • Declaration

    class ArrayInitializer: dmd.init.Initializer;

  • Declaration

    class ExpInitializer: dmd.init.Initializer;

  • Declaration

    struct Designator;

    Holds the designator for C initializers

    • exp

      Declaration

      Expression exp;

      [ constant-expression ]

    • Declaration

      Identifier ident;

      . identifier

  • Declaration

    struct DesigInit;

    Holds the designation (opt) initializer for C initializers

    • Declaration

      Designators* designatorList;

      designation (opt)

    • Declaration

      Initializer initializer;

      initializer

  • Declaration

    class CInitializer: dmd.init.Initializer;

    C11 6.7.9 Initialization Represents the C initializer-list

    • Declaration

      DesigInits initializerList;

      initializer-list

    • Declaration

      Type type;

      type that array will be used to initialize

    • sem

      Declaration

      bool sem;

      true if semantic() is run

  • Declaration

    Initializer syntaxCopy(Initializer inx);

    Copy the AST for Initializer.

    Parameters

    Initializer inx

    Initializer AST to copy

    Return Value

    the copy