|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Structured conditional statement. More...
#include <Compiler_HIR_Model.H>
Public Member Functions | |
| Compiler_HIR_If_Stmt (Compiler_HIR_Expr *cond=nullptr, Compiler_HIR_Stmt *then_stmt=nullptr, Compiler_HIR_Stmt *else_stmt=nullptr, const Source_Span &if_sp={}, const Source_Span &else_sp={}) noexcept | |
Public Member Functions inherited from Aleph::Compiler_HIR_Stmt | |
| Compiler_HIR_Stmt (const Compiler_HIR_Stmt_Kind k=Compiler_HIR_Stmt_Kind::Invalid, const Source_Span &sp={}) noexcept | |
Public Member Functions inherited from Aleph::Compiler_HIR_Node | |
| Compiler_HIR_Node (const Source_Span &sp={}) noexcept | |
Public Attributes | |
| Compiler_HIR_Expr * | condition = nullptr |
| Condition expression. | |
| Compiler_HIR_Stmt * | then_branch = nullptr |
| True branch. | |
| Compiler_HIR_Stmt * | else_branch = nullptr |
| Optional false branch. | |
| Source_Span | if_span |
Span of if. | |
| Source_Span | else_span |
Span of else, if present. | |
Public Attributes inherited from Aleph::Compiler_HIR_Stmt | |
| Compiler_HIR_Stmt_Kind | kind = Compiler_HIR_Stmt_Kind::Invalid |
| Runtime node kind. | |
Public Attributes inherited from Aleph::Compiler_HIR_Node | |
| Source_Span | span |
| Source region associated with the HIR node. | |
Structured conditional statement.
Definition at line 456 of file Compiler_HIR_Model.H.
|
inlinenoexcept |
Definition at line 464 of file Compiler_HIR_Model.H.
| Compiler_HIR_Expr* Aleph::Compiler_HIR_If_Stmt::condition = nullptr |
Condition expression.
Definition at line 458 of file Compiler_HIR_Model.H.
| Compiler_HIR_Stmt* Aleph::Compiler_HIR_If_Stmt::else_branch = nullptr |
Optional false branch.
Definition at line 460 of file Compiler_HIR_Model.H.
| Source_Span Aleph::Compiler_HIR_If_Stmt::else_span |
Span of else, if present.
Definition at line 462 of file Compiler_HIR_Model.H.
| Source_Span Aleph::Compiler_HIR_If_Stmt::if_span |
Span of if.
Definition at line 461 of file Compiler_HIR_Model.H.
| Compiler_HIR_Stmt* Aleph::Compiler_HIR_If_Stmt::then_branch = nullptr |
True branch.
Definition at line 459 of file Compiler_HIR_Model.H.