View source code
Display the source code in dmd/dmodule.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module dmd.dmodule

Defines a package and module.

Specification

Modules

Documentation

https://dlang.org/phobos/dmd_dmodule.html

Coverage

https://codecov.io/gh/dlang/dmd/src/master/src/dmd/dmodule.d

Functions

NameDescription
_foreach(sc, members, dg, pn) Expands attribute declarations in members in depth first order. Calls dg(size_t symidx, Dsymbol *sym) for each member. If dg returns !=0, stops and returns that value else returns 0. Use this function to avoid the O(N + N^2/2) complexity of calculating dim and calling N times getNth.
findGetMembers(dsym) Look for member of the form: const(MemberInfo)[] getMembers(string); Returns NULL if not found
getLocalClasses(mod, aclasses) Create array of the local classes in the Module, suitable for inclusion in ModuleInfo
removeHdrFilesAndFail(params, modules) Remove generated .di files on error and exit

Classes

NameDescription
Module
Package

Structs

NameDescription
ModuleDeclaration

Authors

Walter Bright

License

Boost License 1.0