View source code
Display the source code in dmd/func.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla 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 usinglocal clone.
Module dmd.func
Defines a function declaration.
Includes
- function/delegate literals
- function aliases
- (static/shared) constructors/destructors/post-blits
- invariant
- unittest
Documentation
https://dlang.org/phobos/dmd_func.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/func.d
Functions
Name | Description |
---|---|
checkEscapingSiblings(f, outerFunc, p)
|
Given a nested function f inside a function outerFunc, check if any sibling callers of f have escaped. If so, mark all the enclosing functions as needing closures. This is recursive: we need to check the callers of our siblings. Note that nested functions can only call lexically earlier nested functions, so loops are impossible. |
MODMatchToBuffer(buf, lhsMod, rhsMod)
|
Checks for mismatching modifiers between lhsMod and rhsMod and prints the
mismatching modifiers to buf .
|
Classes
Name | Description |
---|---|
CtorDeclaration
|
|
DtorDeclaration
|
|
FuncAliasDeclaration
|
Used as a way to import a set of functions from another scope into this one. |
FuncDeclaration
|
|
FuncLiteralDeclaration
|
|
InvariantDeclaration
|
|
NewDeclaration
|
|
PostBlitDeclaration
|
|
SharedStaticCtorDeclaration
|
|
SharedStaticDtorDeclaration
|
|
StaticCtorDeclaration
|
|
StaticDtorDeclaration
|
|
UnitTestDeclaration
|
Structs
Name | Description |
---|---|
AttributeViolation
|
Stores a reason why a function failed to infer a function attribute like @safe or pure
|
Ensure
|
Tuple of result identifier (possibly null) and statement. This is used to store out contracts: out(id){ ensure } |
Enums
Name | Description |
---|---|
ILS
|
Inline Status |
Authors
License
Copyright © 1999-2025 by the D Language Foundation | Page generated by ddox.