1
0
forked from VimPlug/jedi

Better working flow scopes.

This commit is contained in:
Dave Halter
2016-10-28 00:36:17 +02:00
parent a620c7dbdb
commit bbb1d1e04c
4 changed files with 27 additions and 32 deletions

View File

@@ -689,8 +689,7 @@ class FunctionExecutionContext(Executed):
for r in returns:
types |= self.eval_node(r.children[1])
continue # TODO REMOVE
check = flow_analysis.break_check(self._evaluator, self, r)
check = flow_analysis.reachability_check(self, funcdef, r)
if check is flow_analysis.UNREACHABLE:
debug.dbg('Return unreachable: %s', r)
else: