topazc
AST::IfElseStmt Class Reference

Statement of control flow operator. More...

#include <ast.hpp>

Inheritance diagram for AST::IfElseStmt:
Collaboration diagram for AST::IfElseStmt:

Public Member Functions

 IfElseStmt (ExprPtr c, std::vector< StmtPtr > tb, std::vector< StmtPtr > eb, uint32_t l)
Public Member Functions inherited from AST::Stmt
 Stmt (uint32_t l)
virtual ~Stmt ()=default

Public Attributes

ExprPtr cond
std::vector< StmtPtrthen_block
std::vector< StmtPtrelse_block
Public Attributes inherited from AST::Stmt
uint32_t line

Detailed Description

Statement of control flow operator.

Definition at line 351 of file ast.hpp.

Constructor & Destructor Documentation

◆ IfElseStmt()

AST::IfElseStmt::IfElseStmt ( ExprPtr c,
std::vector< StmtPtr > tb,
std::vector< StmtPtr > eb,
uint32_t l )
inline

Definition at line 357 of file ast.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ cond

ExprPtr AST::IfElseStmt::cond

Condition

Definition at line 353 of file ast.hpp.

◆ else_block

std::vector<StmtPtr> AST::IfElseStmt::else_block

Block for false branch (not necessary)

Definition at line 355 of file ast.hpp.

◆ then_block

std::vector<StmtPtr> AST::IfElseStmt::then_block

Block for true branch

Definition at line 354 of file ast.hpp.


The documentation for this class was generated from the following file:
  • /mnt/disk_ext4_0/topazlang/include/parser/ast.hpp