top | up | prev | next

BracedInitializerListNode Class

Definition at line 126 of Declarator.hpp

Constructors

BracedInitializerListNode()
BracedInitializerListNode(const Span& span_)

Member Functions

void Accept(Visitor& visitor) override
void AddInitializer(const Span& span, Node* initializer)
const Span& EndBraceSpan() const
void Read(Reader& reader) override
void SetEndBraceSpan(const Span& endBraceSpan_)
void Write(Writer& writer) override

Member Variables

Span endBraceSpan

Constructor Details

BracedInitializerListNode Constructor

sngcpp::ast::BracedInitializerListNode::BracedInitializerListNode()

Definition at line 239 of Declarator.cpp :
239 : UnaryNode(NodeType::bracedInitializerListNode)
240 {
241 }


Declaration at line 129 of Declarator.hpp


BracedInitializerListNode Constructor

sngcpp::ast::BracedInitializerListNode::BracedInitializerListNode(const Span& span_)

Definition at line 243 of Declarator.cpp :
243 : UnaryNode(NodeType::bracedInitializerListNodespan_)
244 {
245 }


Declaration at line 130 of Declarator.hpp


Member Function Details

Accept Member Function

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

Definition at line 247 of Declarator.cpp :
248 {
249     visitor.Visit(*this);
250 }


Declaration at line 131 of Declarator.hpp

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

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


AddInitializer Member Function

void sngcpp::ast::BracedInitializerListNode::AddInitializer(const Span& span, Node * initializer)

Definition at line 252 of Declarator.cpp :
253 {
254     if (Child())
255     {
256         SetChild(new ExpressionSequenceNode(spanReleaseChild()initializer));
257     }
258     else
259     {
260         SetChild(initializer);
261     }
262 }


Declaration at line 134 of Declarator.hpp

Calls: sngcpp::ast::UnaryNode::Child , sngcpp::ast::UnaryNode::ReleaseChild , sngcpp::ast::UnaryNode::SetChild


EndBraceSpan Member Function

const Span& sngcpp::ast::BracedInitializerListNode::EndBraceSpan() const

Definition at line 136 of Declarator.hpp :
136 { return endBraceSpan; }


Read Member Function

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

Definition at line 270 of Declarator.cpp :
271 {
272     UnaryNode::Read(reader);
273     reader.Read(endBraceSpan);
274 }


Declaration at line 133 of Declarator.hpp

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

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


SetEndBraceSpan Member Function

void sngcpp::ast::BracedInitializerListNode::SetEndBraceSpan(const Span& endBraceSpan_)

Definition at line 135 of Declarator.hpp :
135 { endBraceSpan = endBraceSpan_; }


Write Member Function

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

Definition at line 264 of Declarator.cpp :
265 {
266     UnaryNode::Write(writer);
267     writer.Write(endBraceSpan);
268 }


Declaration at line 132 of Declarator.hpp

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

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


top | up | prev | next