View source code
Display the source code in dmd/func.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.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/src/dmd/func.d
Functions
Name | Description |
---|---|
addInvariant(loc, sc, ad, vthis)
|
Generate Expression to call the invariant. |
getIndirection(t)
|
Returns an indirect type one step from t. |
MODMatchToBuffer(buf, lhsMod, rhsMod)
|
Checks for mismatching modifiers between lhsMod and rhsMod and prints the
mismatching modifiers to buf .
|
overloadApply(fstart, dg, sc)
|
Visit each overloaded function/template in turn, and call dg(s) on it. Exit when no more, or dg(s) returns nonzero. |
resolveFuncCall(loc, sc, s, tiargs, tthis, fargs, flags)
|
Given a symbol that could be either a FuncDeclaration or a function template, resolve it to a function symbol. |
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 |
---|---|
Ensure
|
Tuple of result identifier (possibly null) and statement. This is used to store out contracts: out(id){ ensure } |
Enums
Name | Description |
---|---|
FuncResolveFlag
|
Flag used by resolveFuncCall .
|
ILS
|
Inline Status |
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.