Compiler implementation of the D programming language.
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'.
Package pkg
| possible subpackage |
Checks for the existence of a package.d to set isPkgMod appropriately if isPkgMod == PKG.unknown
Deinitializes the global state of the compiler.
This can be used to restore the state set by _init
to its original state.
Return true if module imports itself.
Return true if module imports root module.
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 to this
. This is used to determine ownership of template instantiation.
Combines things into output file name for .html and .di files.
Loads the source buffer from the given read result into this.srcBuffer
.
Will take ownership of the buffer located inside readResult
.
Loc loc
| the location |
File.ReadResult readResult
| the result of reading a file containing the source code |
true
if successfulReads the file from srcfile
and loads the source buffer.
Loc loc
| the location |
true
if successful syntactic parse
Determine if we need to generate an instance of ModuleInfo for this Module.
Can't run semantic on s now, try again later.
Run semantic() on deferred symbols.
Recursively look at every module this module imports, return true if it imports m. Can be used to detect circular imports.
Writes this module's fully-qualified name to buf
OutBuffer buf
| The buffer to write to |
Provide a human readable representation
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_dmodule.html