top | up | prev | next

RangeForStatementNode Class

Definition at line 144 of Statement.hpp

Constructors

RangeForStatementNode()
RangeForStatementNode(const Span& span_, Node* forRangeDeclaration_, Node* forRangeInitializer_, Node* statement_)

Member Functions

void Accept(Visitor& visitor) override
Node* ForRangeDeclaration()
Node* ForRangeInitializer()
void Read(Reader& reader) override
Node* Statement()
void Write(Writer& writer) override

Member Variables

std::unique_ptr<Node> forRangeDeclaration
std::unique_ptr<Node> forRangeInitializer
std::unique_ptr<Node> statement

Constructor Details

RangeForStatementNode Constructor

sngcpp::ast::RangeForStatementNode::RangeForStatementNode()

Definition at line 263 of Statement.cpp :
263 : Node(NodeType::rangeForStatementNode)
264 {
265 }


Declaration at line 147 of Statement.hpp


RangeForStatementNode Constructor

sngcpp::ast::RangeForStatementNode::RangeForStatementNode(const Span& span_, Node * forRangeDeclaration_, Node * forRangeInitializer_, Node * statement_)

Definition at line 267 of Statement.cpp :
267 :
268 Node(NodeType::rangeForStatementNodespan_)forRangeDeclaration(forRangeDeclaration_)forRangeInitializer(forRangeInitializer_)statement(statement_)
269 {
270 }


Declaration at line 148 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 272 of Statement.cpp :
273 {
274     visitor.Visit(*this);
275 }


Declaration at line 149 of Statement.hpp

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

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


ForRangeDeclaration Member Function

Node * sngcpp::ast::RangeForStatementNode::ForRangeDeclaration()

Definition at line 152 of Statement.hpp :
152 { return forRangeDeclaration.get(); }


ForRangeInitializer Member Function

Node * sngcpp::ast::RangeForStatementNode::ForRangeInitializer()

Definition at line 153 of Statement.hpp :
153 { return forRangeInitializer.get(); }


Read Member Function

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

Definition at line 285 of Statement.cpp :
286 {
287     Node::Read(reader);
288     forRangeDeclaration.reset(reader.ReadNode());
289     forRangeInitializer.reset(reader.ReadNode());
290     statement.reset(reader.ReadNode());
291 }


Declaration at line 151 of Statement.hpp

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

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


Statement Member Function

Node * sngcpp::ast::RangeForStatementNode::Statement()

Definition at line 154 of Statement.hpp :
154 { return statement.get(); }


Write Member Function

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

Definition at line 277 of Statement.cpp :
278 {
279     Node::Write(writer);
280     forRangeDeclaration->Write(writer);
281     forRangeInitializer->Write(writer);
282     statement->Write(writer);
283 }


Declaration at line 150 of Statement.hpp

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

Calls: sngcpp::ast::Node::Write , sngcpp::ast::RangeForStatementNode::Write

Called by: sngcpp::ast::RangeForStatementNode::Write


top | up | prev | next