1
0
forked from VimPlug/jedi

first dynamic array work

This commit is contained in:
David Halter
2013-02-17 22:15:11 +04:30
parent 79216f189f
commit 779ce6509d
2 changed files with 25 additions and 17 deletions

View File

@@ -34,8 +34,10 @@ class RecursionDecorator(object):
def push_stmt(self, stmt):
self.current = RecursionNode(stmt, self.current)
if self._check_recursion():
debug.warning('catched recursion', stmt, stmt.start_pos)
check = self._check_recursion()
if check:
debug.warning('catched stmt recursion: %s against %s @%s'
% (stmt, stmt.start_pos, check.stmt))
self.pop_stmt()
return True
return False
@@ -51,7 +53,7 @@ class RecursionDecorator(object):
while True:
test = test.parent
if self.current == test:
return True
return test
if not test:
return False