Commit 4c4c8674 authored by Stefan Behnel's avatar Stefan Behnel

make sure def-node decorators get analysed even if there is no synthesised assignment node

--HG--
extra : rebase_source : 30e348d1b7f02fdece9508e9718fe8d3f41de523
parent 69d8ad5f
......@@ -2295,6 +2295,9 @@ class DefNode(FuncDefNode):
if self.needs_assignment_synthesis(env):
# Shouldn't we be doing this at the module level too?
self.synthesize_assignment_node(env)
elif self.decorators:
for decorator in self.decorators[::-1]:
decorator.decorator.analyse_expressions(env)
def needs_assignment_synthesis(self, env, code=None):
if self.no_assignment_synthesis:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment