def visit_VarDecl(self, node):
        ident = node.identifier
        symbol = VarSymbol(name=ident.value)
        if symbol not in self.current_scope:
            self.current_scope.define(symbol)
        ident.scope = self.current_scope
        self.visit(node.initializer)
dataset/ETHPy150Open rspivak/slimit/src/slimit/visitors/scopevisitor.py/ScopeTreeVisitor.visit_VarDecl/original