top | up | prev | next

CaseStatementNode Class

Definition at line 26 of Statement.hpp

Constructors

CaseStatementNode()
CaseStatementNode(const Span& span_, Node* caseExpr_, Node* statement_)

Member Functions

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

Member Variables

std::unique_ptr<Node> caseExpr

Constructor Details

CaseStatementNode Constructor

sngcpp::ast::CaseStatementNode::CaseStatementNode()

Definition at line 38 of Statement.cpp :
 38 : UnaryNode(NodeType::caseStatementNode)
 39 {
 40 }


Declaration at line 29 of Statement.hpp


CaseStatementNode Constructor

sngcpp::ast::CaseStatementNode::CaseStatementNode(const Span& span_, Node * caseExpr_, Node * statement_)

Definition at line 42 of Statement.cpp :
 42 : UnaryNode(NodeType::caseStatementNodespan_statement_)caseExpr(caseExpr_)
 43 {
 44 }


Declaration at line 30 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 46 of Statement.cpp :
 47 {
 48     visitor.Visit(*this);
 49 }


Declaration at line 31 of Statement.hpp

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

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


CaseExpr Member Function

Node * sngcpp::ast::CaseStatementNode::CaseExpr()

Definition at line 34 of Statement.hpp :
 34 { return caseExpr.get(); }


Read Member Function

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

Definition at line 57 of Statement.cpp :
 58 {
 59     UnaryNode::Read(reader);
 60     caseExpr.reset(reader.ReadNode());
 61 }


Declaration at line 33 of Statement.hpp

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

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


Write Member Function

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

Definition at line 51 of Statement.cpp :
 52 {
 53     UnaryNode::Write(writer);
 54     caseExpr->Write(writer);
 55 }


Declaration at line 32 of Statement.hpp

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

Calls: sngcpp::ast::CaseStatementNode::Write , sngcpp::ast::UnaryNode::Write

Called by: sngcpp::ast::CaseStatementNode::Write


top | up | prev | next