本文整理汇总了C++中ASTVisitor类的典型用法代码示例。如果您正苦于以下问题:C++ ASTVisitor类的具体用法?C++ ASTVisitor怎么用?C++ ASTVisitor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ASTVisitor类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: accept
void ASTNode::accept(ASTVisitor &visitor) {
visitor.visit(this);
}
示例2: accept
void ASTElem::accept(ASTVisitor &v)
{
v.addToPath(this);
v.visit(*this);
v.removeFromPath(this);
}
示例3: accept
void ScopeBody::accept(ASTVisitor& visitor)
{
visitor.visit(*this);
for(auto it = children.begin() ; it != children.end() ; ++it)
(*it)->accept(visitor);
}
示例4: accept
void ModuleMemberAccessNode::accept(ASTVisitor& visitor) { visitor.visit(this); }
示例5: accept
void ASTAttribTest::accept(ASTVisitor &v)
{
v.addToPath(this);
v.visit(*this);
v.removeFromPath(this);
}
示例6: accept
void NonTerminal::accept(ASTVisitor& visitor)
{
visitor.visit(*this);
for(auto it = children.begin() ; it != children.end() ; ++it)
(*it)->accept(visitor);
}
示例7: accept
void Op_PostfixDecrement::accept(ASTVisitor& visitor)
{
visitor.visit(*this);
for(auto it = children.begin() ; it != children.end() ; ++it)
(*it)->accept(visitor);
}
示例8: accept
void AtomicExpressionNode::accept(ASTVisitor& visitor) {
visitor.visit(*this);
}
示例9: accept
void ASTDefCollation::accept(ASTVisitor &v)
{
v.addToPath(this);
v.visit(*this);
v.removeFromPath(this);
}
示例10: accept
void VariableDeclarationNode::accept(ASTVisitor& visitor) {
visitor.visit(*this);
}
示例11: accept
void NT_FunctionCall::accept(ASTVisitor& visitor)
{
visitor.visit(*this);
for(auto it = children.begin() ; it != children.end() ; ++it)
(*it)->accept(visitor);
}
示例12: accept
void ASTCreateFtIndex::accept(ASTVisitor &v)
{
v.addToPath(this);
v.visit(*this);
v.removeFromPath(this);
}
示例13: accept
void FunctionDeclarationNode::accept(ASTVisitor& visitor) { visitor.visit(this); }
示例14: accept
void ClosingChevr::accept(ASTVisitor& visitor)
{
visitor.visit(*this);
for(auto it = children.begin() ; it != children.end() ; ++it)
(*it)->accept(visitor);
}