|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Nominal top-level enum declaration with unit variants.
More...
#include <Compiler_AST.H>
Public Member Functions | |
| Compiler_Enum_Decl (const Source_Span &kw={}, std::string value="", const Source_Span &name_sp={}, const Source_Span &lbrace_sp={}, const Source_Span &rbrace_sp={}) noexcept | |
Constructs one enum declaration. | |
Public Member Functions inherited from Aleph::Compiler_Type_Decl | |
| Compiler_Type_Decl (const Compiler_Type_Decl_Kind k=Compiler_Type_Decl_Kind::Invalid, const Source_Span &kw={}, std::string value="", const Source_Span &name_sp={}, const Source_Span &sp={}) noexcept | |
| Constructs a type-declaration base node. | |
Public Member Functions inherited from Aleph::Compiler_Ast_Node | |
| Compiler_Ast_Node (const Source_Span &sp={}) noexcept | |
| Constructs a node with an optional span. | |
| virtual | ~Compiler_Ast_Node () noexcept=default |
| Virtual destructor to ensure proper cleanup of derived nodes. | |
Public Attributes | |
| DynArray< Compiler_Enum_Variant > | variants |
| Declared unit variants in source order. | |
| Source_Span | lbrace_span |
Span of the opening {. | |
| Source_Span | rbrace_span |
Span of the closing }. | |
Public Attributes inherited from Aleph::Compiler_Type_Decl | |
| Compiler_Type_Decl_Kind | kind = Compiler_Type_Decl_Kind::Invalid |
| Specific declaration variant. | |
| Source_Span | keyword_span |
| Span of the introducing keyword. | |
| std::string | name |
| Declared type name. | |
| Source_Span | name_span |
| Span of the declared type name. | |
Public Attributes inherited from Aleph::Compiler_Ast_Node | |
| Source_Span | span |
| Source region covered by this node. | |
Nominal top-level enum declaration with unit variants.
Definition at line 701 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs one enum declaration.
Definition at line 708 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Enum_Decl::lbrace_span |
Span of the opening {.
Definition at line 704 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Enum_Decl::rbrace_span |
Span of the closing }.
Definition at line 705 of file Compiler_AST.H.
| DynArray<Compiler_Enum_Variant> Aleph::Compiler_Enum_Decl::variants |
Declared unit variants in source order.
Definition at line 703 of file Compiler_AST.H.