top | up | prev | next

ArrowNode Class

Definition at line 294 of Expression.hpp

Constructors

ArrowNode()
ArrowNode(const Span& span_, Node* subject_, Node* id_)

Member Functions

void Accept(Visitor& visitor) override
Node* Id()
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

std::unique_ptr<Node> id

Constructor Details

ArrowNode Constructor

sngcpp::ast::ArrowNode::ArrowNode()

Definition at line 589 of Expression.cpp :
 589 : UnaryNode(NodeType::arrowNode)
 590 {
 591 }


Declaration at line 297 of Expression.hpp


ArrowNode Constructor

sngcpp::ast::ArrowNode::ArrowNode(const Span& span_, Node * subject_, Node * id_)

Definition at line 593 of Expression.cpp :
 593 : UnaryNode(NodeType::arrowNodespan_subject_)id(id_)
 594 {
 595 }


Declaration at line 298 of Expression.hpp


Member Function Details

Accept Member Function

void sngcpp::ast::ArrowNode::Accept(Visitor & visitor) override

Definition at line 597 of Expression.cpp :
 598 {
 599     visitor.Visit(*this);
 600 }


Declaration at line 299 of Expression.hpp

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

Calls: sngcpp::ast::Visitor::Visit


Id Member Function

Node * sngcpp::ast::ArrowNode::Id()

Definition at line 302 of Expression.hpp :
302 { return id.get(); }


Read Member Function

void sngcpp::ast::ArrowNode::Read(Reader & reader) override

Definition at line 608 of Expression.cpp :
 609 {
 610     UnaryNode::Read(reader);
 611     id.reset(reader.ReadNode());
 612 }


Declaration at line 301 of Expression.hpp

Base class overridden functions: sngcpp::ast::Node::Read , sngcpp::ast::UnaryNode::Read

Calls: sngcpp::ast::Reader::ReadNode , sngcpp::ast::UnaryNode::Read


Write Member Function

void sngcpp::ast::ArrowNode::Write(Writer & writer) override

Definition at line 602 of Expression.cpp :
 603 {
 604     UnaryNode::Write(writer);
 605     id->Write(writer);
 606 }


Declaration at line 300 of Expression.hpp

Base class overridden functions: sngcpp::ast::Node::Write , sngcpp::ast::UnaryNode::Write

Calls: sngcpp::ast::ArrowNode::Write , sngcpp::ast::UnaryNode::Write

Called by: sngcpp::ast::ArrowNode::Write


top | up | prev | next