示例#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);
 }