Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_HIR_If_Stmt Struct Referencefinal

Structured conditional statement. More...

#include <Compiler_HIR_Model.H>

Inheritance diagram for Aleph::Compiler_HIR_If_Stmt:
[legend]
Collaboration diagram for Aleph::Compiler_HIR_If_Stmt:
[legend]

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.
 

Detailed Description

Structured conditional statement.

Definition at line 456 of file Compiler_HIR_Model.H.

Constructor & Destructor Documentation

◆ Compiler_HIR_If_Stmt()

Aleph::Compiler_HIR_If_Stmt::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 = {} 
)
inlinenoexcept

Definition at line 464 of file Compiler_HIR_Model.H.

Member Data Documentation

◆ condition

Compiler_HIR_Expr* Aleph::Compiler_HIR_If_Stmt::condition = nullptr

Condition expression.

Definition at line 458 of file Compiler_HIR_Model.H.

◆ else_branch

Compiler_HIR_Stmt* Aleph::Compiler_HIR_If_Stmt::else_branch = nullptr

Optional false branch.

Definition at line 460 of file Compiler_HIR_Model.H.

◆ else_span

Source_Span Aleph::Compiler_HIR_If_Stmt::else_span

Span of else, if present.

Definition at line 462 of file Compiler_HIR_Model.H.

◆ if_span

Source_Span Aleph::Compiler_HIR_If_Stmt::if_span

Span of if.

Definition at line 461 of file Compiler_HIR_Model.H.

◆ then_branch

Compiler_HIR_Stmt* Aleph::Compiler_HIR_If_Stmt::then_branch = nullptr

True branch.

Definition at line 459 of file Compiler_HIR_Model.H.


The documentation for this struct was generated from the following file: