top | up | prev | next

DestroyStatementNode Class

Definition at line 304 of Statement.hpp

Constructors

DestroyStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)
DestroyStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node* expression_)

Member Functions

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

Member Variables

std::unique_ptr<Node> expression

Constructor Details

DestroyStatementNode Constructor

sngcm::ast::DestroyStatementNode::DestroyStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 620 of Statement.cpp :
 620 :
 621 StatementNode(NodeType::destroyStatementNodespan_moduleId_)expression()
 622 {
 623 }


Declaration at line 307 of Statement.hpp


DestroyStatementNode Constructor

sngcm::ast::DestroyStatementNode::DestroyStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * expression_)

Definition at line 625 of Statement.cpp :
 625 :
 626 StatementNode(NodeType::destroyStatementNodespan_moduleId_)expression(expression_)
 627 {
 628     expression->SetParent(this);
 629 }


Declaration at line 308 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 637 of Statement.cpp :
 638 {
 639     visitor.Visit(*this);
 640 }


Declaration at line 310 of Statement.hpp

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

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


Clone Member Function

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

Definition at line 631 of Statement.cpp :
 632 {
 633     DestroyStatementNode* clone = new DestroyStatementNode(GetSpan()ModuleId()expression->Clone(cloneContext));
 634     return clone;
 635 }


Declaration at line 309 of Statement.hpp

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

Calls: sngcm::ast::DestroyStatementNode::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId

Called by: sngcm::ast::DestroyStatementNode::Clone


Expression Member Function

const Node * sngcm::ast::DestroyStatementNode::Expression() const

Definition at line 313 of Statement.hpp :
313 { return expression.get(); }


Expression Member Function

Node * sngcm::ast::DestroyStatementNode::Expression()

Definition at line 314 of Statement.hpp :
314 { return expression.get(); }

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


Read Member Function

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

Definition at line 648 of Statement.cpp :
 649 {
 650     StatementNode::Read(reader);
 651     expression.reset(reader.ReadNode());
 652     expression->SetParent(this);
 653 }


Declaration at line 312 of Statement.hpp

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

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


Write Member Function

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

Definition at line 642 of Statement.cpp :
 643 {
 644     StatementNode::Write(writer);
 645     writer.Write(expression.get());
 646 }


Declaration at line 311 of Statement.hpp

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

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


top | up | prev | next