top | up | prev | next

InvokeExpressionNode Class

Definition at line 268 of Expression.hpp

Constructors

InvokeExpressionNode()
InvokeExpressionNode(const Span& span_, Node* subject_, Node* arguments_)

Member Functions

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

Member Variables

std::unique_ptr<Node> arguments

Constructor Details

InvokeExpressionNode Constructor

sngcpp::ast::InvokeExpressionNode::InvokeExpressionNode()

Definition at line 531 of Expression.cpp :
 531 : UnaryNode(NodeType::invokeExpressionNode)
 532 {
 533 }


Declaration at line 271 of Expression.hpp


InvokeExpressionNode Constructor

sngcpp::ast::InvokeExpressionNode::InvokeExpressionNode(const Span& span_, Node * subject_, Node * arguments_)

Definition at line 535 of Expression.cpp :
 535 : UnaryNode(NodeType::invokeExpressionNodespan_subject_)arguments(arguments_)
 536 {
 537 }


Declaration at line 272 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 539 of Expression.cpp :
 540 {
 541     visitor.Visit(*this);
 542 }


Declaration at line 273 of Expression.hpp

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

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


Arguments Member Function

Node * sngcpp::ast::InvokeExpressionNode::Arguments()

Definition at line 276 of Expression.hpp :
276 { return arguments.get(); }


Read Member Function

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

Definition at line 554 of Expression.cpp :
 555 {
 556     UnaryNode::Read(reader);
 557     bool hasArguments = reader.GetBinaryReader().ReadBool();
 558     if (hasArguments)
 559     {
 560         arguments.reset(reader.ReadNode());
 561     }
 562 }


Declaration at line 275 of Expression.hpp

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

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


Write Member Function

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

Definition at line 544 of Expression.cpp :
 545 {
 546     UnaryNode::Write(writer);
 547     writer.GetBinaryWriter().Write(arguments != nullptr);
 548     if (arguments)
 549     {
 550         arguments->Write(writer);
 551     }
 552 }


Declaration at line 274 of Expression.hpp

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

Calls: sngcpp::ast::InvokeExpressionNode::Write , sngcpp::ast::UnaryNode::Write , sngcpp::ast::Writer::GetBinaryWriter

Called by: sngcpp::ast::InvokeExpressionNode::Write


top | up | prev | next