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.semantic2

Performs the semantic2 stage, which deals with initializer expressions.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcesemantic2.d

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

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

voidsemantic2(Dsymboldsym, Scope*sc);
Does semantic analysis on initializers and members of aggregates.
FuncDeclarationfindFunc(ClassDeclaration_this, Identifierident, TypeFunctiontf);
Find virtual function matching identifier and type. Used to build virtual function tables for interface implementations.
Parameters:
ClassDeclaration_thisClassDeclaration's vtbl to search
Identifieridentfunction's identifier
TypeFunctiontffunction's type
Returns:
function symbol if found, null if not

Errorsprints error message if more than one match

voidlowerStaticAAs(VarDeclarationvd, Scope*sc);
Try lower a variable's Associative Array initializer to a newaa struct so it can be put in static data.
Parameters:
VarDeclarationvdVariable to lower
Scope*scScope
voidlowerStaticAAs(Expressione, Scope*sc);
Try lower all Associative Array literals in an expression to a newaa struct so it can be put in static data.
Parameters:
ExpressioneExpression to traverse
Scope*scScope
voidstaticAssertFail(StaticAssertsa, Scope*sc);
Given a static assert with a failing condition, print an error
Parameters:
StaticAssertsaStatic assert with failing condition
Scope*scscope for evaluating assert message and printing context
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 17:56:34 2026

[8]ページ先頭

©2009-2026 Movatter.jp