top | up | prev | next

DestroyStatementNode Class

Definition at line 292 of Statement.hpp

Constructors

DestroyStatementNode(const Span& span_)
DestroyStatementNode(const Span& span_, 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_)

Definition at line 575 of Statement.cpp :
 575 : StatementNode(NodeType::destroyStatementNodespan_)expression()
 576 {
 577 }


Declaration at line 295 of Statement.hpp


DestroyStatementNode Constructor

sngcm::ast::DestroyStatementNode::DestroyStatementNode(const Span& span_, Node * expression_)

Definition at line 579 of Statement.cpp :
 579 : StatementNode(NodeType::destroyStatementNodespan_)expression(expression_)
 580 {
 581     expression->SetParent(this);
 582 }


Declaration at line 296 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 590 of Statement.cpp :
 591 {
 592     visitor.Visit(*this);
 593 }


Declaration at line 298 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 584 of Statement.cpp :
 585 {
 586     DestroyStatementNode* clone = new DestroyStatementNode(GetSpan()expression->Clone(cloneContext));
 587     return clone;
 588 }


Declaration at line 297 of Statement.hpp

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

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

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


Expression Member Function

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

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


Expression Member Function

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

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

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


Read Member Function

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

Definition at line 601 of Statement.cpp :
 602 {
 603     StatementNode::Read(reader);
 604     expression.reset(reader.ReadNode());
 605     expression->SetParent(this);
 606 }


Declaration at line 300 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 595 of Statement.cpp :
 596 {
 597     StatementNode::Write(writer);
 598     writer.Write(expression.get());
 599 }


Declaration at line 299 of Statement.hpp

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

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


top | up | prev | next