top | up | prev | next

ClassMemberArranger Class

Definition at line 109 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 131 of CompileUnit.cpp :
132 {
133     int n = classNode.Members().Count();
134     for (int i = 0; i < n; ++i)
135     {
136         classNode.Members()[i]->Accept(*this);
137     }
138     classNode.ArrangeMembers();
139 }


Declaration at line 114 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 117 of CompileUnit.cpp :
118 {
119     compileUnitNode.GlobalNs()->Accept(*this);
120 }


Declaration at line 112 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 122 of CompileUnit.cpp :
123 {
124     int n = namespaceNode.Members().Count();
125     for (int i = 0; i < n; ++i)
126     {
127         namespaceNode.Members()[i]->Accept(*this);
128     }
129 }


Declaration at line 113 of CompileUnit.cpp

Base class overridden functions: sngcm::ast::Visitor::Visit

Calls: sngcm::ast::NamespaceNode::Members , sngcm::ast::NodeList::Count


top | up | prev | next