top | up | prev | next

CastExpressionNode Class

Definition at line 197 of Expression.hpp

Constructors

CastExpressionNode()
CastExpressionNode(const Span& span_, Node* typeExpr_, Node* expr_)

Member Functions

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

Member Variables

std::unique_ptr<Node> expr
std::unique_ptr<Node> typeExpr

Constructor Details

CastExpressionNode Constructor

sngcpp::ast::CastExpressionNode::CastExpressionNode()

Definition at line 383 of Expression.cpp :
 383 : Node(NodeType::castExpressionNode)
 384 {
 385 }


Declaration at line 200 of Expression.hpp


CastExpressionNode Constructor

sngcpp::ast::CastExpressionNode::CastExpressionNode(const Span& span_, Node * typeExpr_, Node * expr_)

Definition at line 387 of Expression.cpp :
 387 : Node(NodeType::castExpressionNodespan_)typeExpr(typeExpr_)expr(expr_)
 388 {
 389 }


Declaration at line 201 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 391 of Expression.cpp :
 392 {
 393     visitor.Visit(*this);
 394 }


Declaration at line 202 of Expression.hpp

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

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


Expr Member Function

Node * sngcpp::ast::CastExpressionNode::Expr()

Definition at line 206 of Expression.hpp :
206 { return expr.get(); }


Read Member Function

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

Definition at line 403 of Expression.cpp :
 404 {
 405     Node::Read(reader);
 406     typeExpr.reset(reader.ReadNode());
 407     expr.reset(reader.ReadNode());
 408 }


Declaration at line 204 of Expression.hpp

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

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


TypeExpr Member Function

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

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


Write Member Function

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

Definition at line 396 of Expression.cpp :
 397 {
 398     Node::Write(writer);
 399     typeExpr->Write(writer);
 400     expr->Write(writer);
 401 }


Declaration at line 203 of Expression.hpp

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

Calls: sngcpp::ast::CastExpressionNode::Write , sngcpp::ast::Node::Write

Called by: sngcpp::ast::CastExpressionNode::Write


top | up | prev | next