- accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
- argType
Type argType(uint index)
Undocumented in source. Be warned that the author may not have intended to support it.
- finalizeSize
void finalizeSize()
Undocumented in source. Be warned that the author may not have intended to support it.
- fit
bool fit(Loc loc, Scope* sc, Expressions* elements, Type stype)
Fit elements[] to the corresponding types of the struct's fields.
- hasRegularCtor
bool hasRegularCtor(bool checkDisabled)
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.
- isPOD
bool isPOD()
Determine if struct is POD (Plain Old Data).
- isStructDeclaration
inout(StructDeclaration) isStructDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
- kind
const(char)* kind()
Undocumented in source. Be warned that the author may not have intended to support it.
- numArgTypes
uint numArgTypes()
Undocumented in source. Be warned that the author may not have intended to support it.
- search
Dsymbol search(Loc loc, Identifier ident, int flags)
Undocumented in source. Be warned that the author may not have intended to support it.
- semanticTypeInfoMembers
void semanticTypeInfoMembers()
Undocumented in source. Be warned that the author may not have intended to support it.
- syntaxCopy
StructDeclaration syntaxCopy(Dsymbol s)
Undocumented in source. Be warned that the author may not have intended to support it.
- type
Type type;
- storage_class
StorageClass storage_class;
- structsize
uint structsize;
- alignsize
uint alignsize;
size of struct for alignment purposes
- fields
VarDeclarations fields;
- deferred
Dsymbol deferred;
any deferred semantic2() or semantic3() symbol
- classKind
ClassKind classKind;
specifies whether this is a D, C++, Objective-C or anonymous struct/class/interface
- cppmangle
CPPMANGLE cppmangle;
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 ?
- enclosing
Dsymbol enclosing;
!=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.
- vthis
VarDeclaration vthis;
'this' parameter if this aggregate is nested
- vthis2
VarDeclaration vthis2;
'this' parameter if this aggregate is a template and is nested
- invs
FuncDeclarations invs;
- inv
FuncDeclaration inv;
Merged invariant calling all members of invs
- aggNew
NewDeclaration aggNew;
- ctor
Dsymbol ctor;
CtorDeclaration or TemplateDeclaration
- defaultCtor
CtorDeclaration defaultCtor;
default constructor - should have no arguments, because
it would be stored in TypeInfo_Class.defaultConstructor
- aliasthis
AliasThis aliasthis;
forward unresolved lookups to aliasthis
- dtors
DtorDeclarations dtors;
- dtor
DtorDeclaration dtor;
aggregate destructor calling dtors and member constructors
- primaryDtor
DtorDeclaration primaryDtor;
non-deleting C++ destructor, same as dtor for D
- tidtor
DtorDeclaration tidtor;
aggregate destructor used in TypeInfo (must have extern(D) ABI)
- fieldDtor
FuncDeclaration fieldDtor;
aggregate destructor for just the fields
- getRTInfo
Expression getRTInfo;
pointer to GC info generated by object.RTInfo(this)
- visibility
Visibility visibility;
- noDefaultCtor
bool noDefaultCtor;
- sizeok
Sizeok sizeok;
set when structsize contains valid data
- newScope
Scope* newScope(Scope* sc)
Create a new scope from sc.
semantic, semantic2 and semantic3 will use this for aggregate members.
- setScope
void setScope(Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
- determineFields
bool determineFields()
Find all instance fields, then push them into fields.
- nonHiddenFields
size_t nonHiddenFields()
- determineSize
bool determineSize(Loc loc)
Collect all instance fields, then determine instance size.
- finalizeSize
void finalizeSize()
Undocumented in source.
- size
d_uns64 size(Loc loc)
Undocumented in source. Be warned that the author may not have intended to support it.
- checkOverlappedFields
bool checkOverlappedFields()
Calculate fieldi.overlapped and overlapUnsafe, and check that all of explicit
field initializers have unique memory space on instance.
- fill
bool fill(Loc loc, Expressions* elements, bool ctorinit)
Fill out remainder of elements[] with default initializers for fields[].
- alignmember
void alignmember(structalign_t alignment, uint size, uint* poffset)
Do byte or word alignment as necessary.
Align sizes of 0, as we may not know array sizes yet.
- placeField
uint placeField(uint* nextoffset, uint memsize, uint memalignsize, structalign_t alignment, uint* paggsize, uint* paggalignsize, bool isunion)
Place a member (mem) into an aggregate (agg), which can be a struct, union or class
- getType
Type getType()
Undocumented in source. Be warned that the author may not have intended to support it.
- isDeprecated
bool isDeprecated()
Undocumented in source. Be warned that the author may not have intended to support it.
- setDeprecated
void setDeprecated()
Flag this aggregate as deprecated
- isNested
bool isNested()
Returns true if there's an extra member which is the 'this'
pointer to the enclosing context (enclosing aggregate or function)
- makeNested
void makeNested()
Undocumented in source. Be warned that the author may not have intended to support it.
- makeNested2
void makeNested2()
Undocumented in source. Be warned that the author may not have intended to support it.
- isExport
bool isExport()
Undocumented in source. Be warned that the author may not have intended to support it.
- searchCtor
Dsymbol searchCtor()
Look for constructor declaration.
- visible
Visibility visible()
Undocumented in source. Be warned that the author may not have intended to support it.
- handleType
Type handleType()
Undocumented in source. Be warned that the author may not have intended to support it.
- stag
Symbol* stag;
tag symbol for debug data
- sinit
Symbol* sinit;
- isAggregateDeclaration
inout(AggregateDeclaration) isAggregateDeclaration()
Undocumented in source. Be warned that the author may not have intended to support it.
- accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
All struct declarations are an instance of this.