top | up | prev | next

DeleteStatementNode Class

Definition at line 289 of Statement.hpp

Constructors

DeleteStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)
DeleteStatementNode(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

DeleteStatementNode Constructor

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

Definition at line 586 of Statement.cpp :
 586 : StatementNode(NodeType::deleteStatementNodespan_moduleId_)expression()
 587 {
 588 }


Declaration at line 292 of Statement.hpp


DeleteStatementNode Constructor

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

Definition at line 590 of Statement.cpp :
 590 :
 591 StatementNode(NodeType::deleteStatementNodespan_moduleId_)expression(expression_)
 592 {
 593     expression->SetParent(this);
 594 }


Declaration at line 293 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 602 of Statement.cpp :
 603 {
 604     visitor.Visit(*this);
 605 }


Declaration at line 295 of Statement.hpp

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

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


Clone Member Function

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

Definition at line 596 of Statement.cpp :
 597 {
 598     DeleteStatementNode* clone = new DeleteStatementNode(GetSpan()ModuleId()expression->Clone(cloneContext));
 599     return clone;
 600 }


Declaration at line 294 of Statement.hpp

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

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

Called by: sngcm::ast::DeleteStatementNode::Clone


Expression Member Function

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

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


Expression Member Function

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

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

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


Read Member Function

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

Definition at line 613 of Statement.cpp :
 614 {
 615     StatementNode::Read(reader);
 616     expression.reset(reader.ReadNode());
 617     expression->SetParent(this);
 618 }


Declaration at line 297 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::DeleteStatementNode::Write(AstWriter & writer) override

Definition at line 607 of Statement.cpp :
 608 {
 609     StatementNode::Write(writer);
 610     writer.Write(expression.get());
 611 }


Declaration at line 296 of Statement.hpp

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

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


top | up | prev | next