예제 #1
0
void SLintVisitor::visit(const ast::VarDec & e)
{
    auto range = preCheck(e);
    e.getInit().accept(*this);
    postCheck(e, range);
}
예제 #2
0
 void GlobalsCollector::visit(ast::VarDec & e)
 {
     locals.emplace(e.getSymbol());
     e.getInit().accept(*this);
 }