Example #1
0
void AstProvider::accept(AstVisitor& visitor)
{
	visitor.preVisit(*this);

	for (AstCounterSetPtr n : *this)
		n->accept(visitor);

	visitor.postVisit(*this);
}
Example #2
0
void AstCounterSet::accept(AstVisitor& visitor)
{
	visitor.preVisit(*this);

	for (shared_ptr<AstCounter> n : *this)
		n->accept(visitor);

	visitor.postVisit(*this);
}