Public Member Functions | |
LiteralValue (const CodeLocation &l, BlockPtr parent, const var &v) noexcept | |
virtual bool | alwaysReturns () const |
void | emit (CodeGenerator &cg, Type requiredType, int) const override |
Type | getType (CodeGenerator &) const override |
virtual ExpPtr | simplify (SyntaxTreeBuilder &) override |
virtual void | visitSubStatements (Visitor &) const |
Public Attributes | |
CodeLocation | location |
BlockPtr | parentBlock |
var | value |
|
inlinenoexcept |
|
inlinevirtualinherited |
|
inlineoverridevirtual |
Reimplemented from juce::littlefoot::Compiler::Statement.
|
inlineoverridevirtual |
Implements juce::littlefoot::Compiler::Expression.
|
inlineoverridevirtualinherited |
Reimplemented from juce::littlefoot::Compiler::Statement.
Reimplemented in juce::littlefoot::Compiler::ArraySubscript, juce::littlefoot::Compiler::FunctionCall, juce::littlefoot::Compiler::Assignment, juce::littlefoot::Compiler::BinaryOperator, juce::littlefoot::Compiler::UnaryOp, juce::littlefoot::Compiler::Identifier, and juce::littlefoot::Compiler::TernaryOp.
|
inlinevirtualinherited |
Reimplemented in juce::littlefoot::Compiler::ArraySubscript, juce::littlefoot::Compiler::FunctionCall, juce::littlefoot::Compiler::Assignment, juce::littlefoot::Compiler::BinaryOperator, juce::littlefoot::Compiler::UnaryOp, juce::littlefoot::Compiler::ReturnStatement, juce::littlefoot::Compiler::LoopStatement, juce::littlefoot::Compiler::TernaryOp, juce::littlefoot::Compiler::IfStatement, and juce::littlefoot::Compiler::BlockStatement.
|
inherited |
|
inherited |
var juce::littlefoot::Compiler::LiteralValue::value |