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