dmd.hdrgen

Generate D interface files.

Discussion

Also used to convert AST nodes to D code in general, e.g. for error messages or printf debugging.

Authors

Walter Bright

Source: hdrgen.d

  • Declaration

    void moduleToBuffer(OutBuffer* buf, Module m);

    Dumps the full contents of module m to buf.

    Parameters

    OutBuffer* buf

    buffer to write to.

    Module m

    module to visit all members of.

  • Declaration

    string stcToString(ref StorageClass stc);
    pure nothrow string trustToString(TRUST trust);

    Pick off one of the storage classes from stc, and return a string representation of it. stc is reduced by the one picked.

  • Declaration

    const(char)* protectionToChars(Prot.Kind kind);
    pure nothrow string protectionToString(Prot.Kind kind);

    Return Value

    a human readable representation of kind

  • Declaration

    void argExpTypesToCBuffer(OutBuffer* buf, Expressions* arguments);

    Write out argument types to buf.

  • Declaration

    const(char)* parametersTypeToChars(ParameterList pl);

    Pretty print function parameters.

    Parameters

    ParameterList pl

    parameter list to print

    Return Value

    Null-terminated string representing parameters.

  • Declaration

    const(char)* parameterToChars(Parameter parameter, TypeFunction tf, bool fullQual);

    Pretty print function parameter.

    Parameters

    Parameter parameter

    parameter to print.

    TypeFunction tf

    TypeFunction which holds parameter.

    bool fullQual

    whether to fully qualify types.

    Return Value

    Null-terminated string representing parameters.