top | up | prev | next

ForStatementNode Class

Definition at line 161 of Statement.hpp

Constructors

ForStatementNode()
ForStatementNode(const Span& span_, Node* initS_, Node* condition_, Node* loopExpr_, Node* actionS_)

Member Functions

void Accept(Visitor& visitor) override
Node* ActionS()
Node* Condition()
Node* InitS()
Node* LoopExpr()
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

std::unique_ptr<Node> actionS
std::unique_ptr<Node> condition
std::unique_ptr<Node> initS
std::unique_ptr<Node> loopExpr

Constructor Details

ForStatementNode Constructor

sngcpp::ast::ForStatementNode::ForStatementNode()

Definition at line 293 of Statement.cpp :
293 : Node(NodeType::forStatementNode)
294 {
295 }


Declaration at line 164 of Statement.hpp


ForStatementNode Constructor

sngcpp::ast::ForStatementNode::ForStatementNode(const Span& span_, Node * initS_, Node * condition_, Node * loopExpr_, Node * actionS_)

Definition at line 297 of Statement.cpp :
297 :
298 Node(NodeType::forStatementNodespan_)initS(initS_)condition(condition_)loopExpr(loopExpr_)actionS(actionS_)
299 {
300 }


Declaration at line 165 of Statement.hpp


Member Function Details

Accept Member Function

void sngcpp::ast::ForStatementNode::Accept(Visitor & visitor) override

Definition at line 302 of Statement.cpp :
303 {
304     visitor.Visit(*this);
305 }


Declaration at line 166 of Statement.hpp

Base class overridden functions: sngcpp::ast::Node::Accept

Calls: sngcpp::ast::Visitor::Visit


ActionS Member Function

Node * sngcpp::ast::ForStatementNode::ActionS()

Definition at line 172 of Statement.hpp :
172 { return actionS.get(); }


Condition Member Function

Node * sngcpp::ast::ForStatementNode::Condition()

Definition at line 170 of Statement.hpp :
170 { return condition.get(); }


InitS Member Function

Node * sngcpp::ast::ForStatementNode::InitS()

Definition at line 169 of Statement.hpp :
169 { return initS.get(); }


LoopExpr Member Function

Node * sngcpp::ast::ForStatementNode::LoopExpr()

Definition at line 171 of Statement.hpp :
171 { return loopExpr.get(); }


Read Member Function

void sngcpp::ast::ForStatementNode::Read(Reader & reader) override

Definition at line 324 of Statement.cpp
Declaration at line 168 of Statement.hpp

Base class overridden functions: sngcpp::ast::Node::Read

Calls: sngcpp::ast::Node::Read , sngcpp::ast::Reader::GetBinaryReader , sngcpp::ast::Reader::ReadNode


Write Member Function

void sngcpp::ast::ForStatementNode::Write(Writer & writer) override

Definition at line 307 of Statement.cpp
Declaration at line 167 of Statement.hpp

Base class overridden functions: sngcpp::ast::Node::Write

Calls: sngcpp::ast::ForStatementNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::GetBinaryWriter

Called by: sngcpp::ast::ForStatementNode::Write


top | up | prev | next