hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
ifStmt Class Reference

#include <ast.hpp>

Inheritance diagram for ifStmt:
Collaboration diagram for ifStmt:

Classes

struct  ifBlock
 

Public Member Functions

ifBlockgetIfBlock ()
 
vec< ifBlock > & getElifBlock ()
 
codeBlockgetElseBlock ()
 
bool hasElseBlock () const
 
- Public Member Functions inherited from AST
 AST ()
 
 AST (lexer::token token)
 
std::tuple< yoi::indexT, yoi::indexTgetLocation ()
 
yoi::indexT getLine ()
 
yoi::indexT getColumn ()
 
yoi::lexer::tokengetToken ()
 

Public Attributes

ifBlock ifB
 
vec< ifBlockelifB
 
codeBlockelseB
 

Detailed Description

Definition at line 834 of file ast.hpp.

Member Function Documentation

◆ getElifBlock()

vec< ifStmt::ifBlock > & getElifBlock ( )

Definition at line 407 of file ast.cpp.

References ifStmt::elifB.

◆ getElseBlock()

codeBlock & getElseBlock ( )

Definition at line 411 of file ast.cpp.

References ifStmt::elseB.

◆ getIfBlock()

ifStmt::ifBlock & getIfBlock ( )

Definition at line 403 of file ast.cpp.

References ifStmt::ifB.

Referenced by visitor::visit().

Here is the caller graph for this function:

◆ hasElseBlock()

bool hasElseBlock ( ) const

Definition at line 415 of file ast.cpp.

References ifStmt::elseB.

Referenced by Formatter::format(), and visitor::visit().

Here is the caller graph for this function:

Member Data Documentation

◆ elifB

vec<ifBlock> elifB

Definition at line 846 of file ast.hpp.

Referenced by yoi::finalizeAST(), Formatter::format(), ifStmt::getElifBlock(), and visitor::visit().

◆ elseB

◆ ifB

ifBlock ifB

Definition at line 845 of file ast.hpp.

Referenced by yoi::finalizeAST(), Formatter::format(), and ifStmt::getIfBlock().


The documentation for this class was generated from the following files: