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.initsem
Compiler implementation of the
 D programming language.
Authors: 
License: 
Source initsem.d
Documentation https://dlang.org/phobos/dmd_initsem.html
- ExpressiontoAssocArrayLiteral(ArrayInitializerai);
- If possible, convert array initializer to associative array initializer.Parameters:ArrayInitializer aiarray initializer to be converted Returns:The converted associative array initializer or ErrorExp ifaiis not an associative array initializer.
- InitializerinitializerSemantic(Initializerinit, Scope*sc, Typet, NeedInterpretneedInterpret);
- Perform semantic analysis on init.Parameters:Initializer initInitializer AST node Scope* sccontext Type ttype that the initializer needs to become NeedInterpret needInterpretif CTFE needs to be run on this, such as if it is the initializer for a const declaration Returns:Initializer with completed semantic analysis, ErrorInitializer if errors were encountered
- InitializerinferType(Initializerinit, Scope*sc);
- Translate init to an Expression in order to infer the type.Parameters:Initializer initInitializer AST node Scope* sccontext Returns:an equivalent ExpInitializer if successful, or ErrorInitializer if it cannot be translated
- ExpressioninitializerToExpression(Initializerinit, Typeitype= null);
- Translate init to an Expression.Parameters:Initializer initInitializer AST node Type itypeif not null, type to coerce expression to Returns:Expression created, null if cannot, ErrorExp for other errors
Copyright © 1999-2022 by the D Language Foundation | Page generated by
Ddoc on (no date time)