$search
#include <tree.h>
Public Member Functions | |
virtual void | checkVectorSize () const |
Check the consistency in vectors' size. | |
virtual void | emit (PreLinkBytecode &bytecodes) const |
Generate bytecode. | |
FoldedWhileNode (const SourcePos &sourcePos) | |
Constructor. | |
virtual unsigned | getStackDepth () const |
Return the stack depth requirement for this node and its children. | |
virtual Node * | optimize (std::wostream *dump) |
Optimize this node, return the optimized node. | |
virtual FoldedWhileNode * | shallowCopy () |
Return a shallow copy of the object (children point to the same objects). | |
virtual std::wstring | toNodeName () const |
Return a string representation of the name of this node. | |
virtual std::wstring | toWString () const |
Return a string representation of this node. | |
Public Attributes | |
AsebaBinaryOperator | op |
operator |
Node for L"while" with operator folded inside. children[0] is left part of expression children[1] is right part of expression children[2] is block
Definition at line 210 of file tree.h.
Aseba::FoldedWhileNode::FoldedWhileNode | ( | const SourcePos & | sourcePos | ) | [inline] |
void Aseba::FoldedWhileNode::checkVectorSize | ( | ) | const [virtual] |
Check the consistency in vectors' size.
Reimplemented from Aseba::Node.
Definition at line 266 of file tree-expand.cpp.
virtual FoldedWhileNode* Aseba::FoldedWhileNode::shallowCopy | ( | ) | [inline, virtual] |
Return a shallow copy of the object (children point to the same objects).
Implements Aseba::Node.
virtual std::wstring Aseba::FoldedWhileNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.