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