top | up | prev | next

DeleteStatementNode Class

Definition at line 277 of Statement.hpp

Constructors

DeleteStatementNode(const Span& span_)
DeleteStatementNode(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

DeleteStatementNode Constructor

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

Definition at line 542 of Statement.cpp :
 542 : StatementNode(NodeType::deleteStatementNodespan_)expression()
 543 {
 544 }


Declaration at line 280 of Statement.hpp


DeleteStatementNode Constructor

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

Definition at line 546 of Statement.cpp :
 546 : StatementNode(NodeType::deleteStatementNodespan_)expression(expression_)
 547 {
 548     expression->SetParent(this);
 549 }


Declaration at line 281 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 557 of Statement.cpp :
 558 {
 559     visitor.Visit(*this);
 560 }


Declaration at line 283 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 551 of Statement.cpp :
 552 {
 553     DeleteStatementNode* clone = new DeleteStatementNode(GetSpan()expression->Clone(cloneContext));
 554     return clone;
 555 }


Declaration at line 282 of Statement.hpp

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

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

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


Expression Member Function

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

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


Expression Member Function

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

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

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


Read Member Function

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

Definition at line 568 of Statement.cpp :
 569 {
 570     StatementNode::Read(reader);
 571     expression.reset(reader.ReadNode());
 572     expression->SetParent(this);
 573 }


Declaration at line 285 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 562 of Statement.cpp :
 563 {
 564     StatementNode::Write(writer);
 565     writer.Write(expression.get());
 566 }


Declaration at line 284 of Statement.hpp

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

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


top | up | prev | next