top | up | prev | next

NewExpressionNode Class

Definition at line 225 of Expression.hpp

Constructors

NewExpressionNode()
NewExpressionNode(const Span& span_, Node* placement_, Node* typeExpr_, Node* initializer_)

Member Functions

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

Member Variables

std::unique_ptr<Node> initializer
std::unique_ptr<Node> placement
std::unique_ptr<Node> typeExpr

Constructor Details

NewExpressionNode Constructor

sngcpp::ast::NewExpressionNode::NewExpressionNode()

Definition at line 435 of Expression.cpp :
 435 : Node(NodeType::newExpressionNode)
 436 {
 437 }


Declaration at line 228 of Expression.hpp


NewExpressionNode Constructor

sngcpp::ast::NewExpressionNode::NewExpressionNode(const Span& span_, Node * placement_, Node * typeExpr_, Node * initializer_)

Definition at line 439 of Expression.cpp :
 439 :
 440 Node(NodeType::newExpressionNodespan_)placement(placement_)typeExpr(typeExpr_)initializer(initializer_)
 441 {
 442 }


Declaration at line 229 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 444 of Expression.cpp :
 445 {
 446     visitor.Visit(*this);
 447 }


Declaration at line 230 of Expression.hpp

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

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


Initializer Member Function

Node * sngcpp::ast::NewExpressionNode::Initializer()

Definition at line 235 of Expression.hpp :
235 { return initializer.get(); }


Placement Member Function

Node * sngcpp::ast::NewExpressionNode::Placement()

Definition at line 233 of Expression.hpp :
233 { return placement.get(); }


Read Member Function

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

Definition at line 465 of Expression.cpp
Declaration at line 232 of Expression.hpp

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

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


TypeExpr Member Function

Node * sngcpp::ast::NewExpressionNode::TypeExpr()

Definition at line 234 of Expression.hpp :
234 { return typeExpr.get(); }


Write Member Function

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

Definition at line 449 of Expression.cpp
Declaration at line 231 of Expression.hpp

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

Calls: sngcpp::ast::NewExpressionNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::GetBinaryWriter

Called by: sngcpp::ast::NewExpressionNode::Write


top | up | prev | next