#include <tree.h>

Public Member Functions | |
| virtual void | emit (PreLinkBytecode &bytecodes) const |
| Generate bytecode. | |
| FoldedIfWhenNode (const SourcePos &sourcePos) | |
| Constructor. | |
| virtual unsigned | getStackDepth () const |
| Return the stack depth requirement for this node and its children. | |
| virtual Node * | optimize (std::ostream *dump) |
| Optimize this node, return the optimized node. | |
| virtual std::string | toNodeName () const |
| Return a string representation of the name of this node. | |
| virtual std::string | toString () const |
| Return a string representation of this node. | |
Public Attributes | |
| bool | edgeSensitive |
| if true, true block is triggered only if previous comparison was false ("when" block). If false, true block is triggered every time comparison is true | |
| unsigned | endLine |
| line of end keyword | |
| AsebaBinaryOperator | op |
| operator | |
Node for "if" and "when" with operator folded inside. children[0] is left part of expression children[1] is right part of expression children[2] is true block children[3] is false block
Definition at line 150 of file tree.h.
| Aseba::FoldedIfWhenNode::FoldedIfWhenNode | ( | const SourcePos & | sourcePos | ) | [inline] |
| virtual std::string Aseba::FoldedIfWhenNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.
| unsigned Aseba::FoldedIfWhenNode::endLine |