top | up | prev | next

NodeSelectorVisitor Class

Definition at line 14 of Merge.cpp

Constructors

NodeSelectorVisitor(const std::u32string& nodeName_, NodeType nodeType_)

Member Functions

Node* GetSelectedNode() const
void Visit(ClassNode& classNode) override
void Visit(NamespaceNode& namespaceNode) override

Member Variables

std::u32string nodeName
NodeType nodeType
Node* selectedNode

Constructor Details

NodeSelectorVisitor Constructor

sngcm::ast::NodeSelectorVisitor::NodeSelectorVisitor(const std::u32string& nodeName_, NodeType nodeType_)

Definition at line 28 of Merge.cpp :
 28 : nodeName(nodeName_)nodeType(nodeType_)selectedNode(nullptr)
 29 {
 30 }


Declaration at line 17 of Merge.cpp


Member Function Details

GetSelectedNode Member Function

Node * sngcm::ast::NodeSelectorVisitor::GetSelectedNode() const

Definition at line 18 of Merge.cpp :
 18 { return selectedNode; }

Called by: sngcm::ast::MergeVisitor::Visit , sngcm::ast::MergeVisitor::Visit


Visit Member Function

void sngcm::ast::NodeSelectorVisitor::Visit(ClassNode & classNode) override

Definition at line 52 of Merge.cpp
Declaration at line 20 of Merge.cpp

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

Calls: sngcm::ast::ClassNode::Id , sngcm::ast::ClassNode::Members , sngcm::ast::IdentifierNode::Str , sngcm::ast::NodeList::Count


Visit Member Function

void sngcm::ast::NodeSelectorVisitor::Visit(NamespaceNode & namespaceNode) override

Definition at line 32 of Merge.cpp
Declaration at line 19 of Merge.cpp

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

Calls: sngcm::ast::IdentifierNode::Str , sngcm::ast::NamespaceNode::Id , sngcm::ast::NamespaceNode::Members , sngcm::ast::NodeList::Count


top | up | prev | next