Node for L"block", i.e. a vector of statements. More...
#include <tree.h>
Public Member Functions | |
BlockNode (const SourcePos &sourcePos) | |
Constructor. | |
virtual void | emit (PreLinkBytecode &bytecodes) const |
Generate bytecode. | |
virtual Node * | optimize (std::wostream *dump) |
Optimize this node, return the optimized node. | |
virtual BlockNode * | 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. |
Aseba::BlockNode::BlockNode | ( | const SourcePos & | sourcePos | ) | [inline] |
virtual BlockNode* Aseba::BlockNode::shallowCopy | ( | ) | [inline, virtual] |
Return a shallow copy of the object (children point to the same objects)
Implements Aseba::Node.
Reimplemented in Aseba::ProgramNode.
virtual std::wstring Aseba::BlockNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.
Reimplemented in Aseba::ProgramNode.
virtual std::wstring Aseba::BlockNode::toWString | ( | ) | const [inline, virtual] |
Return a string representation of this node.
Implements Aseba::Node.
Reimplemented in Aseba::ProgramNode.