AST node for a break statement.
More...
#include <ast.hpp>
|
| void | accept (ASTVisitor &visitor) override |
| | Accept an ASTVisitor (double-dispatch).
|
| std::string | toString () const override |
| | Return a human-readable description of this node.
|
| | BreakNode ()=default |
| | BreakNode (std::unique_ptr< ASTNode > e) |
| virtual | ~ASTNode ()=default |
| virtual void | print (std::ostream &out, int indent=0) const |
| | Pretty-print this node to a stream with indentation.
|
| void | setLineNumber (int line) |
| | Set the originating source line number.
|
| int | getLineNumber () const |
| | Get the originating source line number.
|
|
| std::unique_ptr< ASTNode > | expr |
| | reserved expression (unused)
|
AST node for a break statement.
Definition at line 65 of file ast.hpp.
◆ BreakNode() [1/2]
| pascal::BreakNode::BreakNode |
( |
| ) |
|
|
default |
◆ BreakNode() [2/2]
| pascal::BreakNode::BreakNode |
( |
std::unique_ptr< ASTNode > | e | ) |
|
|
inlineexplicit |
◆ accept()
| void pascal::BreakNode::accept |
( |
ASTVisitor & | visitor | ) |
|
|
overridevirtual |
◆ toString()
| std::string pascal::BreakNode::toString |
( |
| ) |
const |
|
overridevirtual |
◆ expr
| std::unique_ptr<ASTNode> pascal::BreakNode::expr |
The documentation for this class was generated from the following files: