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

Public Member Functions

 UnaryOp (const CodeLocation &l, BlockPtr parent, ExpPtr a, TokenType op) noexcept
 
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

CodeLocation location
 
TokenType operation
 
BlockPtr parentBlock
 
ExpPtr source
 

Constructor & Destructor Documentation

◆ UnaryOp()

juce::littlefoot::Compiler::UnaryOp::UnaryOp ( const CodeLocation l,
BlockPtr  parent,
ExpPtr  a,
TokenType  op 
)
inlinenoexcept

Member Function Documentation

◆ alwaysReturns()

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

◆ emit()

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

◆ getType()

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

◆ simplify()

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

◆ visitSubStatements()

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

Member Data Documentation

◆ location

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

◆ operation

TokenType juce::littlefoot::Compiler::UnaryOp::operation

◆ parentBlock

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

◆ source

ExpPtr juce::littlefoot::Compiler::UnaryOp::source

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