1
0
forked from VimPlug/jedi

a first very simple implementation of reachable/unreachable return statements.

This commit is contained in:
Dave Halter
2014-08-05 17:02:16 +02:00
parent f5e49e3218
commit 15ec0a77fe
3 changed files with 22 additions and 8 deletions

View File

@@ -476,7 +476,7 @@ class FunctionExecution(Executed):
continue
check = flow_analysis.break_check(self._evaluator, self, r.parent.parent)
if check is not flow_analysis.NOT_REACHABLE:
if check is not flow_analysis.UNREACHABLE:
types += self._evaluator.eval_statement(r)
if check is flow_analysis.REACHABLE:
break