top
|
up
|
prev
|
next
IdDeclaratorNode Class
Definition at line
13
of
Declarator.hpp
Constructors
IdDeclaratorNode
()
IdDeclaratorNode
(
const
Span& span_,
Node
* idNode_)
Member Functions
void
Accept
(
Visitor
& visitor)
override
Node
*
IdNode
()
const
void
Read
(
Reader
& reader)
override
void
Write
(
Writer
& writer)
override
Member Variables
std::unique_ptr<
Node
>
idNode
Constructor Details
IdDeclaratorNode Constructor
sngcpp::ast::IdDeclaratorNode::IdDeclaratorNode()
Definition at line
14
of
Declarator.cpp
:
14
:
Node
(
NodeType
::
idDeclaratorNode
)
15
{
16
}
Declaration at line
16
of
Declarator.hpp
IdDeclaratorNode Constructor
sngcpp::ast::IdDeclaratorNode::IdDeclaratorNode(
const
Span& span_,
Node
* idNode_)
Definition at line
18
of
Declarator.cpp
:
18
:
Node
(
NodeType
::
idDeclaratorNode
,
span_
)
,
idNode
(
idNode_
)
19
{
20
}
Declaration at line
17
of
Declarator.hpp
Member Function Details
Accept Member Function
void
sngcpp::ast::IdDeclaratorNode::Accept(
Visitor
& visitor)
override
Definition at line
22
of
Declarator.cpp
:
23
{
24
visitor
.
Visit
(
*
this
)
;
25
}
Declaration at line
18
of
Declarator.hpp
Base class overridden functions:
sngcpp::ast::Node::Accept
Calls:
sngcpp::ast::Visitor::Visit
IdNode Member Function
Node
* sngcpp::ast::IdDeclaratorNode::IdNode()
const
Definition at line
21
of
Declarator.hpp
:
21
{
return
idNode
.
get
(
)
;
}
Read Member Function
void
sngcpp::ast::IdDeclaratorNode::Read(
Reader
& reader)
override
Definition at line
33
of
Declarator.cpp
:
34
{
35
Node
::
Read
(
reader
)
;
36
idNode
.
reset
(
reader
.
ReadNode
(
)
)
;
37
}
Declaration at line
20
of
Declarator.hpp
Base class overridden functions:
sngcpp::ast::Node::Read
Calls:
sngcpp::ast::Node::Read
,
sngcpp::ast::Reader::ReadNode
Write Member Function
void
sngcpp::ast::IdDeclaratorNode::Write(
Writer
& writer)
override
Definition at line
27
of
Declarator.cpp
:
28
{
29
Node
::
Write
(
writer
)
;
30
idNode
->
Write
(
writer
)
;
31
}
Declaration at line
19
of
Declarator.hpp
Base class overridden functions:
sngcpp::ast::Node::Write
Calls:
sngcpp::ast::IdDeclaratorNode::Write
,
sngcpp::ast::Node::Write
Called by:
sngcpp::ast::IdDeclaratorNode::Write
top
|
up
|
prev
|
next