top | up | prev | next

GotoCaseStatementNode Class

Definition at line 455 of Statement.hpp

Constructors

GotoCaseStatementNode(const Span& span_)
GotoCaseStatementNode(const Span& span_, Node* caseExpr_)

Member Functions

void Accept(Visitor& visitor) override
const Node* CaseExpr() const
Node* CaseExpr()
Node* Clone(CloneContext& cloneContext) const override
bool IsCaseTerminatingNode() const override
bool IsDefaultTerminatingNode() const override
void Read(AstReader& reader) override
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<Node> caseExpr

Constructor Details

GotoCaseStatementNode Constructor

sngcm::ast::GotoCaseStatementNode::GotoCaseStatementNode(const Span& span_)

Definition at line 940 of Statement.cpp :
 940 : StatementNode(NodeType::gotoCaseStatementNodespan_)caseExpr()
 941 {
 942 }


Declaration at line 458 of Statement.hpp


GotoCaseStatementNode Constructor

sngcm::ast::GotoCaseStatementNode::GotoCaseStatementNode(const Span& span_, Node * caseExpr_)

Definition at line 944 of Statement.cpp :
 944 : StatementNode(NodeType::gotoCaseStatementNodespan_)caseExpr(caseExpr_)
 945 {
 946     caseExpr->SetParent(this);
 947 }


Declaration at line 459 of Statement.hpp


Member Function Details

Accept Member Function

void sngcm::ast::GotoCaseStatementNode::Accept(Visitor & visitor) override

Definition at line 955 of Statement.cpp :
 956 {
 957     visitor.Visit(*this);
 958 }


Declaration at line 461 of Statement.hpp

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

Calls: sngcm::ast::Visitor::Visit


CaseExpr Member Function

const Node * sngcm::ast::GotoCaseStatementNode::CaseExpr() const

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


CaseExpr Member Function

Node * sngcm::ast::GotoCaseStatementNode::CaseExpr()

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

Called by: sngcm::ast::SourceWriter::Visit


Clone Member Function

Node * sngcm::ast::GotoCaseStatementNode::Clone(CloneContext & cloneContext) const override

Definition at line 949 of Statement.cpp :
 950 {
 951     GotoCaseStatementNode* clone = new GotoCaseStatementNode(GetSpan()caseExpr->Clone(cloneContext));
 952     return clone;
 953 }


Declaration at line 460 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::GotoCaseStatementNode::Clone , sngcm::ast::Node::GetSpan

Called by: sngcm::ast::GotoCaseStatementNode::Clone


IsCaseTerminatingNode Member Function

bool sngcm::ast::GotoCaseStatementNode::IsCaseTerminatingNode() const override

Definition at line 464 of Statement.hpp :
464 { return true; }

Base class overridden functions: sngcm::ast::StatementNode::IsCaseTerminatingNode


IsDefaultTerminatingNode Member Function

bool sngcm::ast::GotoCaseStatementNode::IsDefaultTerminatingNode() const override

Definition at line 465 of Statement.hpp :
465 { return true; }

Base class overridden functions: sngcm::ast::StatementNode::IsDefaultTerminatingNode


Read Member Function

void sngcm::ast::GotoCaseStatementNode::Read(AstReader & reader) override

Definition at line 966 of Statement.cpp :
 967 {
 968     StatementNode::Read(reader);
 969     caseExpr.reset(reader.ReadNode());
 970 }


Declaration at line 463 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Read , sngcm::ast::StatementNode::Read

Calls: sngcm::ast::AstReader::ReadNode , sngcm::ast::StatementNode::Read


Write Member Function

void sngcm::ast::GotoCaseStatementNode::Write(AstWriter & writer) override

Definition at line 960 of Statement.cpp :
 961 {
 962     StatementNode::Write(writer);
 963     writer.Write(caseExpr.get());
 964 }


Declaration at line 462 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Write , sngcm::ast::StatementNode::Write

Calls: sngcm::ast::StatementNode::Write


top | up | prev | next