Calculate fieldi.overlapped and overlapUnsafe, and check that all of explicit field initializers have unique memory space on instance.
Collect all instance fields, then determine instance size.
Fill out remainder of elements[] with default initializers for fields[].
Returns true if there's an extra member which is the 'this' pointer to the enclosing context (enclosing aggregate or function)
Create a new scope from sc. semantic, semantic2 and semantic3 will use this for aggregate members.
Look for constructor declaration.
Flag this aggregate as deprecated
Do byte or word alignment as necessary. Align sizes of 0, as we may not know array sizes yet.
Place a field (mem) into an aggregate (agg), which can be a struct, union or class
aggregate destructor calling userDtors and fieldDtor (and base class aggregate dtor for C++ classes)
forward unresolved lookups to aliasthis
size of struct for alignment purposes
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 ?
CtorDeclaration or TemplateDeclaration
default constructor - should have no arguments, because it would be stored in TypeInfo_Class.defaultConstructor
any deferred semantic2() or semantic3() symbol
disallow allocations using new
the aggregate destructor exposed as __xdtor alias
!=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.
function destructing (non-inherited) fields
VarDeclaration fields
pointer to GC info generated by object.RTInfo(this)
Merged invariant calling all members of invs
Array of invariants
no default construction
overridden symbol with pragma(mangle, "...") if not null
initializer symbol
set when structsize contains valid data
size of struct
(same as aggrDtor, except for C++ classes with virtual dtor on Windows) +//// aggregate destructor used in TypeInfo (must have extern(D) ABI
user-defined destructors (~this()) - mixins can yield multiple ones
'this' parameter if this aggregate is nested
'this' parameter if this aggregate is a template and is nested
This function is #1 on the list of functions that eat cpu time. Be very, very careful about slowing it down.
Look for member of the form: const(MemberInfo)[] getMembers(string); Returns NULL if not found
Insert Dsymbol in table.
Look up identifier in symbol table.
Return true if any of the members are static ctors or static dtors, or if any members have members that are.
Expands attribute declarations in members in depth first order. Calls dg(size_t symidx, Dsymbol *sym) for each member. If dg returns !=0, stops and returns that value else returns 0. Use this function to avoid the O(N + N^2/2) complexity of calculating dim and calling N times getNth.
Abstract aggregate as a common ancestor for Class- and StructDeclaration.