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
			a local clone.
		
	dmd.declaration
Miscellaneous declarations, including typedef, alias, variable declarations including the
 implicit this declaration, type tuples, ClassInfo, ModuleInfo and various TypeInfos.
Authors: 
License: 
Source declaration.d
Documentation https://dlang.org/phobos/dmd_declaration.html
- voidObjectNotFound(Locloc, Identifierid);
- abstract classDeclaration: dmd.dsymbol.Dsymbol;
- 
- final LINKresolvedLinkage() const;
- Returns the linkage, resolving the target-specific System one.
- final pure nothrow @nogc @safe boolisReference() const;
- Returns:Whether the variable is a reference, annotated with out or ref
 
- classTupleDeclaration: dmd.declaration.Declaration;
- 
- voidforeachVar(scope void delegate(Dsymbol)dg);
- Calls dg(Dsymbol) for each Dsymbol, which should be a VarDeclaration inside VarExp (isexp == true).Parameters:void delegate(Dsymbol) dgdelegate to call for each Dsymbol 
- intforeachVar(scope int delegate(Dsymbol)dg);
- Calls dg(Dsymbol) for each Dsymbol, which should be a VarDeclaration inside VarExp (isexp == true). If dg returns !=0, stops and returns that value else returns 0.Parameters:int delegate(Dsymbol) dgdelegate to call for each Dsymbol Returns:last value returned by dg()
 
- classAliasDeclaration: dmd.declaration.Declaration;
- 
- boolisAliasedTemplateParameter() const;
- Returns:true if this instance was created to make a template parameter visible in the scope of a template body, false otherwise
 
- classOverDeclaration: dmd.declaration.Declaration;
- classVarDeclaration: dmd.declaration.Declaration;
- 
- final boolisDataseg();
- Does symbol go into data segment? Includes extern variables.
- final boolisThreadlocal();
- Does symbol go into thread local storage?
- final boolisCTFE();
- Can variable be read and written by CTFE?
- final @safe boolcanTakeAddressOf();
- Return true if we can take the address of this variable.
- final @safe boolneedsScopeDtor();
- Return true if variable needs to call the destructor.
- final ExpressiongetConstInitializer(boolneedFullType= true);
- If variable has a constant expression initializer, get it. Otherwise, return null.
- final boolcheckNestedReference(Scope*sc, Locloc);
- Check to see if this variable is actually in an enclosing function rather than the current one. Update nestedrefs[], closureVars[] and outerVars[].Returns:true if error occurs.
 
- classBitFieldDeclaration: dmd.declaration.VarDeclaration;
- C11 6.7.2.1-4 bit fields- final ulonggetMinMax(Identifierid);
- Retrieve the .min or .max values. Only valid after semantic analysis.Parameters:Identifier idId.min or Id.max Returns:the min or max value
 
- classSymbolDeclaration: dmd.declaration.Declaration;
- This is a shell around a back end symbol
- classTypeInfoStructDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoClassDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoInterfaceDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoPointerDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoArrayDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoStaticArrayDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoAssociativeArrayDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoEnumDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoFunctionDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoDelegateDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoTupleDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoConstDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoInvariantDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoSharedDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoWildDeclaration: dmd.declaration.TypeInfoDeclaration;
- classTypeInfoVectorDeclaration: dmd.declaration.TypeInfoDeclaration;
- classThisDeclaration: dmd.declaration.VarDeclaration;
- For the "this" parameter to member functions
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:49 2025