Fit elements[] to the corresponding types of the struct's fields.
Verifies whether the struct declaration has a constructor that is not a copy constructor. Optionally, it can check whether the struct declaration has a regular constructor, that is not disabled.
Determine if struct is POD (Plain Old Data).
size of struct
size of struct for alignment purposes
VarDeclaration fields
any deferred semantic2() or semantic3() symbol
specifies whether this is a D, C++, Objective-C or anonymous struct/class/interface
Specify whether to mangle the aggregate as a class or a struct This information is used by the MSVC mangler Only valid for class and struct. TODO: Merge with ClassKind ?
overridden symbol with pragma(mangle, "...") if not null
!=null if is nested pointing to the dsymbol that directly enclosing it. 1. The function that enclosing it (nested struct and class) 2. The class that enclosing it (nested class only) 3. If enclosing aggregate is template, its enclosing dsymbol.
'this' parameter if this aggregate is nested
'this' parameter if this aggregate is a template and is nested
Array of invariants
Merged invariant calling all members of invs
allocator
CtorDeclaration or TemplateDeclaration
default constructor - should have no arguments, because it would be stored in TypeInfo_Class.defaultConstructor
forward unresolved lookups to aliasthis
Array of destructors
aggregate destructor calling dtors and member constructors
non-deleting C++ destructor, same as dtor for D
aggregate destructor used in TypeInfo (must have extern(D) ABI)
aggregate destructor for just the fields
pointer to GC info generated by object.RTInfo(this)
no default construction
set when structsize contains valid data
Create a new scope from sc. semantic, semantic2 and semantic3 will use this for aggregate members.
Find all instance fields, then push them into fields.
Collect all instance fields, then determine instance size.
Calculate fieldi.overlapped and overlapUnsafe, and check that all of explicit field initializers have unique memory space on instance.
Fill out remainder of elements[] with default initializers for fields[].
Do byte or word alignment as necessary. Align sizes of 0, as we may not know array sizes yet.
Place a member (mem) into an aggregate (agg), which can be a struct, union or class
Flag this aggregate as deprecated
Returns true if there's an extra member which is the 'this' pointer to the enclosing context (enclosing aggregate or function)
Look for constructor declaration.
tag symbol for debug data
initializer symbol
All struct declarations are an instance of this.