top | up | prev | next

DotNode Class

Definition at line 281 of Expression.hpp

Constructors

DotNode()
DotNode(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

DotNode Constructor

sngcpp::ast::DotNode::DotNode()

Definition at line 564 of Expression.cpp :
 564 : UnaryNode(NodeType::dotNode)
 565 {
 566 }


Declaration at line 284 of Expression.hpp


DotNode Constructor

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

Definition at line 568 of Expression.cpp :
 568 : UnaryNode(NodeType::dotNodespan_subject_)id(id_)
 569 {
 570 }


Declaration at line 285 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 572 of Expression.cpp :
 573 {
 574     visitor.Visit(*this);
 575 }


Declaration at line 286 of Expression.hpp

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

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


Id Member Function

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

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


Read Member Function

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

Definition at line 583 of Expression.cpp :
 584 {
 585     UnaryNode::Read(reader);
 586     id.reset(reader.ReadNode());
 587 }


Declaration at line 288 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::DotNode::Write(Writer & writer) override

Definition at line 577 of Expression.cpp :
 578 {
 579     UnaryNode::Write(writer);
 580     id->Write(writer);
 581 }


Declaration at line 287 of Expression.hpp

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

Calls: sngcpp::ast::DotNode::Write , sngcpp::ast::UnaryNode::Write

Called by: sngcpp::ast::DotNode::Write


top | up | prev | next