top | up | prev | next

BitAndNode Class

Definition at line 105 of Expression.hpp

Constructors

BitAndNode(const Span& span_)
BitAndNode(const Span& span_, Node* left_, Node* right_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

BitAndNode Constructor

sngcm::ast::BitAndNode::BitAndNode(const Span& span_)

Definition at line 224 of Expression.cpp :
 224 : BinaryNode(NodeType::bitAndNodespan_)
 225 {
 226 }


Declaration at line 108 of Expression.hpp


BitAndNode Constructor

sngcm::ast::BitAndNode::BitAndNode(const Span& span_, Node * left_, Node * right_)

Definition at line 228 of Expression.cpp :
 228 : BinaryNode(NodeType::bitAndNodespan_left_right_)
 229 {
 230 }


Declaration at line 109 of Expression.hpp


Member Function Details

Accept Member Function

void sngcm::ast::BitAndNode::Accept(Visitor & visitor) override

Definition at line 237 of Expression.cpp :
 238 {
 239     visitor.Visit(*this);
 240 }


Declaration at line 111 of Expression.hpp

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

Calls: sngcm::ast::Visitor::Visit


Clone Member Function

Node * sngcm::ast::BitAndNode::Clone(CloneContext & cloneContext) const override

Definition at line 232 of Expression.cpp :
 233 {
 234     return new BitAndNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 235 }


Declaration at line 110 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan


ToString Member Function

std::string sngcm::ast::BitAndNode::ToString() const override

Definition at line 242 of Expression.cpp :
 243 {
 244     return Left()->ToString() + " & " + Right()->ToString();
 245 }


Declaration at line 112 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::ToString

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::ToString


top | up | prev | next