|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
Represents a while or do-while loop. More...
#include <bond/compiler/parsenodes.h>
Public Member Functions | |
| WhileStatement (const Token *keyword, Expression *condition, ParseNode *body) | |
| Constructs a while/do-while statement. | |
| virtual | ~WhileStatement () |
| Destroys a WhileStatement object. | |
| virtual void | Accept (ParseNodeVisitor &visitor) override |
| Dispatches this node to the given visitor. | |
| virtual void | Accept (ParseNodeVisitor &visitor) const override |
| Dispatches this node to the given visitor. | |
| virtual const Token * | GetContextToken () const override |
| Returns the token used as source context for diagnostics. | |
| const Token * | GetKeyword () const |
| Returns the loop keyword token. | |
| Expression * | GetCondition () |
| Returns the loop condition expression. | |
| const Expression * | GetCondition () const |
| Returns the loop condition expression. | |
| ParseNode * | GetBody () |
| Returns the loop body. | |
| const ParseNode * | GetBody () const |
| Returns the loop body. | |
| bool | IsDoLoop () const |
| Returns true when this node represents a do-while loop. | |
| Public Member Functions inherited from Bond::ListParseNode | |
| virtual | ~ListParseNode () |
| Destroys a ListParseNode object. | |
| ListParseNode * | GetNextNode () |
| Returns the next node in the list. | |
| const ListParseNode * | GetNextNode () const |
| Returns the next node in the list. | |
| void | SetNextNode (ListParseNode *next) |
| Sets the next node in the list. | |
| Public Member Functions inherited from Bond::ParseNode | |
| virtual | ~ParseNode () |
| Destroys a ParseNode object. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Bond::ListParseNode | |
| ListParseNode () | |
| Protected Member Functions inherited from Bond::ParseNode | |
| ParseNode () | |
Represents a while or do-while loop.
|
inline |
Constructs a while/do-while statement.
| keyword | Loop keyword token. |
| condition | Loop condition expression. |
| body | Loop body. |
|
inlinevirtual |
Destroys a WhileStatement object.
|
inlineoverridevirtual |
Dispatches this node to the given visitor.
| visitor | Visitor that handles this node type. |
Implements Bond::ParseNode.
|
inlineoverridevirtual |
Dispatches this node to the given visitor.
| visitor | Visitor that handles this node type. |
Implements Bond::ParseNode.
|
inline |
Returns the loop body.
|
inline |
Returns the loop body.
|
inline |
Returns the loop condition expression.
|
inline |
Returns the loop condition expression.
|
inlineoverridevirtual |
Returns the token used as source context for diagnostics.
Implements Bond::ParseNode.
|
inline |
Returns the loop keyword token.
|
inline |
Returns true when this node represents a do-while loop.