top
|
up
|
prev
|
next
ClassMemberArranger Class
Definition at line
139
of
CompileUnit.cpp
Member Functions
void
Visit
(
ClassNode
& classNode)
override
void
Visit
(
CompileUnitNode
& compileUnitNode)
override
void
Visit
(
NamespaceNode
& namespaceNode)
override
Member Function Details
Visit Member Function
void
sngcm::ast::ClassMemberArranger::Visit(
ClassNode
& classNode)
override
Definition at line
161
of
CompileUnit.cpp
:
162
{
163
int
n
=
classNode
.
Members
(
)
.
Count
(
)
;
164
for
(
int
i
=
0
;
i
<
n
;
++
i
)
165
{
166
classNode
.
Members
(
)
[
i
]
->
Accept
(
*
this
)
;
167
}
168
classNode
.
ArrangeMembers
(
)
;
169
}
Declaration at line
144
of
CompileUnit.cpp
Base class overridden functions:
sngcm::ast::Visitor::Visit
Calls:
sngcm::ast::ClassNode::ArrangeMembers
,
sngcm::ast::ClassNode::Members
,
sngcm::ast::NodeList::Count
Visit Member Function
void
sngcm::ast::ClassMemberArranger::Visit(
CompileUnitNode
& compileUnitNode)
override
Definition at line
147
of
CompileUnit.cpp
:
148
{
149
compileUnitNode
.
GlobalNs
(
)
->
Accept
(
*
this
)
;
150
}
Declaration at line
142
of
CompileUnit.cpp
Base class overridden functions:
sngcm::ast::Visitor::Visit
Calls:
sngcm::ast::CompileUnitNode::GlobalNs
,
sngcm::ast::NamespaceNode::Accept
Visit Member Function
void
sngcm::ast::ClassMemberArranger::Visit(
NamespaceNode
& namespaceNode)
override
Definition at line
152
of
CompileUnit.cpp
:
153
{
154
int
n
=
namespaceNode
.
Members
(
)
.
Count
(
)
;
155
for
(
int
i
=
0
;
i
<
n
;
++
i
)
156
{
157
namespaceNode
.
Members
(
)
[
i
]
->
Accept
(
*
this
)
;
158
}
159
}
Declaration at line
143
of
CompileUnit.cpp
Base class overridden functions:
sngcm::ast::Visitor::Visit
Calls:
sngcm::ast::NamespaceNode::Members
,
sngcm::ast::NodeList::Count
top
|
up
|
prev
|
next