JUCE  v5.2.0-514-g49784a029
JUCE API
juce::littlefoot::Compiler::IfStatement Struct Reference
Inheritance diagram for juce::littlefoot::Compiler::IfStatement:
Collaboration diagram for juce::littlefoot::Compiler::IfStatement:

Public Member Functions

 IfStatement (const CodeLocation &l, BlockPtr parent)
 
bool alwaysReturns () const override
 
void emit (CodeGenerator &cg, Type requiredType, int stackDepth) const override
 
Statementsimplify (SyntaxTreeBuilder &stb) override
 
void visitSubStatements (Statement::Visitor &visit) const override
 

Public Attributes

ExpPtr condition
 
StatementPtr falseBranch
 
CodeLocation location
 
BlockPtr parentBlock
 
StatementPtr trueBranch
 

Constructor & Destructor Documentation

◆ IfStatement()

juce::littlefoot::Compiler::IfStatement::IfStatement ( const CodeLocation l,
BlockPtr  parent 
)
inline

Member Function Documentation

◆ alwaysReturns()

bool juce::littlefoot::Compiler::IfStatement::alwaysReturns ( ) const
inlineoverridevirtual

◆ emit()

void juce::littlefoot::Compiler::IfStatement::emit ( CodeGenerator cg,
Type  requiredType,
int  stackDepth 
) const
inlineoverridevirtual

◆ simplify()

Statement* juce::littlefoot::Compiler::IfStatement::simplify ( SyntaxTreeBuilder stb)
inlineoverridevirtual

◆ visitSubStatements()

void juce::littlefoot::Compiler::IfStatement::visitSubStatements ( Statement::Visitor visit) const
inlineoverridevirtual

Member Data Documentation

◆ condition

ExpPtr juce::littlefoot::Compiler::IfStatement::condition

◆ falseBranch

StatementPtr juce::littlefoot::Compiler::IfStatement::falseBranch

◆ location

CodeLocation juce::littlefoot::Compiler::Statement::location
inherited

◆ parentBlock

BlockPtr juce::littlefoot::Compiler::Statement::parentBlock
inherited

◆ trueBranch

StatementPtr juce::littlefoot::Compiler::IfStatement::trueBranch

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