Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

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 usinga local clone.

dmd.dmodule

Defines a package and module.

SpecificationModules

Authors:
Walter Bright
License:
Boost License 1.0

Sourcedmodule.d

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

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

nothrow voidremoveHdrFilesAndFail(ref Paramparams, ref Modulesmodules);
Remove generated .di files on error and exit
classPackage:dmd.dsymbol.ScopeDsymbol;
static DsymbolTableresolve(Identifier[]packages, Dsymbol*pparent, Package*ppkg);

Inputpackages[] the pkg1.pkg2 of pkg1.pkg2.mod

Returns:
the symbol table that mod should be inserted into

Output*pparent the rightmost package, i.e. pkg2, or NULL if no packages *ppkg the leftmost package, i.e. pkg1, or NULL if no packages

final boolisAncestorPackageOf(const Packagepkg) const;
Checks if pkg is a sub-package of this
For example, if this qualifies to 'a1.a2' and pkg - to 'a1.a2.a3', this function returns 'true'. If it is other way around or qualified package paths conflict function returns 'false'.
Parameters:
Packagepkgpossible subpackage
Returns:
see description
final voidresolvePKGunknown();
Checks for the existence of a package.d to set isPkgMod appropriately if isPkgMod == PKG.unknown
classModule:dmd.dmodule.Package;
static voiddeinitialize();
Deinitializes the global state of the compiler.
This can be used to restore the state set by_init to its original state.
const(ubyte)[]src;
Raw content of the file
Dsymbol[void*]tagSymTab;

ImportCtag symbols that conflict with other symbols used as the index

boolselfImports();
Return true if module imports itself.
boolrootImports();
Return true if module imports root module.
ModuleimportedFrom;
A root module is one that will be compiled all the way to object code. This field holds the root module that caused this module to be loaded. If this module is a root module, then it will be set tothis. This is used to determine ownership of template instantiation.
FileNamesetOutfilename(const(char)[]name, const(char)[]dir, const(char)[]arg, const(char)[]ext);
Combines things into output file name for .html and .di files.

Inputname Command line name given for the file, NULL if none dir Command line directory given for the file, NULL if none arg Name of the source file ext File name extension to use if 'name' is NULL global.params.preservePaths get output path from arg srcfile Input file - output file name must not match input file

boolread(Locloc);
Reads the file fromsrcfile and loads the source buffer.
If makefile module dependency is requested, we add this module to the list of dependencies from here.
Parameters:
Loclocthe location
Returns:
true if successful
Moduleparse();

ModuleparseModule(AST)();
syntactic parse
intneedModuleInfo();
Determine if we need to generate an instance of ModuleInfo for this Module.
nothrow intimports(Modulem);
Recursively look at every module this module imports, return true if it imports m. Can be used to detect circular imports.
nothrow boolisCoreModule(Identifierident);
Returns:
Whether this module is in thecore package and has nameident
uint[uint]ctfe_cov;
coverage information from ctfe execution_count[line]
nothrow voidfullyQualifiedName(ref OutBufferbuf);
Writes this module's fully-qualified name to buf
Parameters:
OutBufferbufThe buffer to write to
nothrow Escape*escapetable();
Lazily initializes and returns the escape table. Turns out it eats a lot of memory.
structModuleDeclaration;
const(char)[]toString() const;
Provide a human readable representation
FuncDeclarationfindGetMembers(ScopeDsymboldsym);
Look for member of the form: const(MemberInfo)[] getMembers(string); Returns NULL if not found
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 06:40:46 2026

[8]ページ先頭

©2009-2026 Movatter.jp