def visit_Function(self, t):
all_args = list(t.args.args) + [t.args.vararg, t.args.kwarg]
subscope = Scope(t, [arg.arg for arg in all_args if arg])
self.children[t] = subscope
for stmt in t.body: subscope.visit(stmt)
评论列表
文章目录