top | up | prev | next

SourceFileResolverVisitor Class

Definition at line 127 of SourceFile.cpp

Constructors

SourceFileResolverVisitor(std::vector<SourceFileNode*>& sourceFiles_)

Member Functions

void Visit(SourceFileNode& sourceFileNode) override
void Visit(SourceFileSequenceNode& sourceFileSequenceNode) override

Member Variables

std::vector<SourceFileNode*>& sourceFiles

Constructor Details

SourceFileResolverVisitor Constructor

sngcpp::ast::SourceFileResolverVisitor::SourceFileResolverVisitor(std::vector<SourceFileNode *>& sourceFiles_)

Definition at line 130 of SourceFile.cpp :
130 : sourceFiles(sourceFiles_)
131 {
132 }



Member Function Details

Visit Member Function

void sngcpp::ast::SourceFileResolverVisitor::Visit(SourceFileNode & sourceFileNode) override

Definition at line 133 of SourceFile.cpp :
134 {
135     sourceFiles.push_back(&sourceFileNode);
136 }


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


Visit Member Function

void sngcpp::ast::SourceFileResolverVisitor::Visit(SourceFileSequenceNode & sourceFileSequenceNode) override

Definition at line 137 of SourceFile.cpp :
138 {
139     sourceFileSequenceNode.Left()->Accept(*this);
140     sourceFileSequenceNode.Right()->Accept(*this);
141 }


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

Calls: sngcpp::ast::BinaryNode::Left , sngcpp::ast::BinaryNode::Right , sngcpp::ast::Node::Accept


top | up | prev | next