|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Nominal top-level struct declaration.
More...
#include <Compiler_AST.H>
Public Member Functions | |
| Compiler_Struct_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 struct 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_Struct_Field > | fields |
| Declared fields 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 struct declaration.
Definition at line 677 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs one struct declaration.
Definition at line 684 of file Compiler_AST.H.
| DynArray<Compiler_Struct_Field> Aleph::Compiler_Struct_Decl::fields |
Declared fields in source order.
Definition at line 679 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Struct_Decl::lbrace_span |
Span of the opening {.
Definition at line 680 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Struct_Decl::rbrace_span |
Span of the closing }.
Definition at line 681 of file Compiler_AST.H.