|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Node representing a braced sequence of statements. More...
#include <Compiler_AST.H>
Public Member Functions | |
| Compiler_Block_Stmt (const Source_Span &lbrace={}, const Source_Span &rbrace={}) noexcept | |
| Constructs a block statement. | |
Public Member Functions inherited from Aleph::Compiler_Stmt | |
| Compiler_Stmt (const Compiler_Stmt_Kind k=Compiler_Stmt_Kind::Invalid, const Source_Span &sp={}) noexcept | |
| Constructs a statement base. | |
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_Stmt * > | statements |
| Sequential statements in the block. | |
| Source_Span | lbrace_span |
| Location of the opening ‘’{'`. | |
| Source_Span | rbrace_span |
| Location of the closing ‘’}'`. | |
Public Attributes inherited from Aleph::Compiler_Stmt | |
| Compiler_Stmt_Kind | kind = Compiler_Stmt_Kind::Invalid |
| Specific statement type. | |
Public Attributes inherited from Aleph::Compiler_Ast_Node | |
| Source_Span | span |
| Source region covered by this node. | |
Node representing a braced sequence of statements.
Provides scope for variables declared within it.
Definition at line 945 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs a block statement.
Definition at line 952 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Block_Stmt::lbrace_span |
Location of the opening ‘’{'`.
Definition at line 948 of file Compiler_AST.H.
| Source_Span Aleph::Compiler_Block_Stmt::rbrace_span |
Location of the closing ‘’}'`.
Definition at line 949 of file Compiler_AST.H.
| DynArray<Compiler_Stmt *> Aleph::Compiler_Block_Stmt::statements |
Sequential statements in the block.
Definition at line 947 of file Compiler_AST.H.