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

Public Member Functions

 TernaryOp (const CodeLocation &l, BlockPtr parent)
 
virtual bool alwaysReturns () const
 
void emit (CodeGenerator &cg, Type requiredType, int stackDepth) const override
 
Type getType (CodeGenerator &cg) const override
 
ExpPtr simplify (SyntaxTreeBuilder &stb) override
 
void visitSubStatements (Statement::Visitor &visit) const override
 

Public Attributes

ExpPtr condition
 
ExpPtr falseBranch
 
CodeLocation location
 
BlockPtr parentBlock
 
ExpPtr trueBranch
 

Constructor & Destructor Documentation

◆ TernaryOp()

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

Member Function Documentation

◆ alwaysReturns()

virtual bool juce::littlefoot::Compiler::Statement::alwaysReturns ( ) const
inlinevirtualinherited

◆ emit()

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

◆ getType()

Type juce::littlefoot::Compiler::TernaryOp::getType ( CodeGenerator cg) const
inlineoverridevirtual

◆ simplify()

ExpPtr juce::littlefoot::Compiler::TernaryOp::simplify ( SyntaxTreeBuilder stb)
inlineoverridevirtual

◆ visitSubStatements()

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

Member Data Documentation

◆ condition

ExpPtr juce::littlefoot::Compiler::TernaryOp::condition

◆ falseBranch

ExpPtr juce::littlefoot::Compiler::TernaryOp::falseBranch

◆ location

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

◆ parentBlock

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

◆ trueBranch

ExpPtr juce::littlefoot::Compiler::TernaryOp::trueBranch

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