mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Merge of the release22 branch changes back into the trunk.
This commit is contained in:
parent
87fa3aa12c
commit
52acb49298
7 changed files with 80 additions and 7 deletions
|
@ -206,6 +206,8 @@ class SymbolVisitor:
|
|||
scope = self.module = self.scopes[node] = ModuleScope()
|
||||
self.visit(node.node, scope)
|
||||
|
||||
visitExpression = visitModule
|
||||
|
||||
def visitFunction(self, node, parent):
|
||||
parent.add_def(node.name)
|
||||
for n in node.defaults:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue