|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Abstract base class for statement nodes. More...
#include <Compiler_AST.H>
Public Member Functions | |
| 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 | |
| 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. | |
Abstract base class for statement nodes.
Statements define the structure and flow of the program.
Definition at line 461 of file Compiler_AST.H.
|
inlinenoexcept |
Constructs a statement base.
Definition at line 466 of file Compiler_AST.H.
| Compiler_Stmt_Kind Aleph::Compiler_Stmt::kind = Compiler_Stmt_Kind::Invalid |
Specific statement type.
Definition at line 463 of file Compiler_AST.H.
Referenced by Aleph::Compiler_Semantic_Analyzer::analyze_stmt(), Aleph::Compiler_Typed_Semantic_Analyzer::analyze_stmt(), Aleph::Compiler_Ast_Detail::dump_stmt(), and Aleph::Compiler_HIR_Lowering::lower_stmt().