예제 #1
0
 void GlobalsCollector::visit(ast::ArrayListExp & e)
 {
     for (auto _e : e.getExps())
     {
         _e->accept(*this);
     }
 }
예제 #2
0
void SLintVisitor::visit(const ast::ArrayListExp & e)
{
    auto range = preCheck(e);
    const ast::exps_t & exps = e.getExps();
    for (ast::exps_t::const_iterator it = exps.begin(), itEnd = exps.end(); it != itEnd; ++it)
    {
        (*it)->accept(*this);
    }
    postCheck(e, range);
}