vox ~master (2022-05-02T18:23:10Z)
Dub
Repo
EnumDeclaration
vox
fe
ast
decl
enum_
Undocumented in source.
@
AstType
.
decl_enum
struct
EnumDeclaration {
mixin
ScopeDeclNodeData
!(
AstType
.
decl_enum
,
AstFlags
.
isType
)
;
ScopeIndex
parentScope
;
ScopeIndex
memberScope
;
AstIndex
memberType
;
Identifier
id
;
this
(TokenIndex loc, ScopeIndex parentScope, ScopeIndex memberScope, AstNodes members, AstIndex memberType, Identifier id);
this
(TokenIndex loc, ScopeIndex parentScope, ScopeIndex memberScope, AstNodes members, AstIndex memberType);
bool
isAnonymous
();
SizeAndAlignment
sizealign
(CompilationContext* c);
}
Constructors
this
this
(TokenIndex loc, ScopeIndex parentScope, ScopeIndex memberScope, AstNodes members, AstIndex memberType, Identifier id)
Undocumented in source.
this
this
(TokenIndex loc, ScopeIndex parentScope, ScopeIndex memberScope, AstNodes members, AstIndex memberType)
Anonymous / not a type
Members
Functions
isAnonymous
bool
isAnonymous
()
Undocumented in source. Be warned that the author may not have intended to support it.
sizealign
SizeAndAlignment
sizealign
(CompilationContext* c)
Undocumented in source. Be warned that the author may not have intended to support it.
Mixins
__anonymous
mixin
ScopeDeclNodeData
!(
AstType
.
decl_enum
,
AstFlags
.
isType
)
Undocumented in source.
Variables
id
Identifier
id
;
Undocumented in source.
memberScope
ScopeIndex
memberScope
;
Undocumented in source.
memberType
AstIndex
memberType
;
Undocumented in source.
parentScope
ScopeIndex
parentScope
;
Undocumented in source.
Meta
Source
See Implementation
vox
fe
ast
decl
enum_
functions
gen_init_value_enum
gen_init_value_enum_member
gen_ir_type_enum
name_register_nested_enum
name_register_nested_enum_member
name_register_self_enum
name_register_self_enum_member
name_resolve_enum
name_resolve_enum_member
post_clone_enum
post_clone_enum_member
print_enum
print_enum_member
type_check_enum
type_check_enum_member
structs
EnumDeclaration
EnumMemberDecl