1
0
forked from VimPlug/jedi

Actual forward reference annotations are working pretty smooth now.

This commit is contained in:
Dave Halter
2015-12-20 22:57:24 +01:00
parent c4906e0e3f
commit 5791860861
5 changed files with 16 additions and 11 deletions

View File

@@ -322,12 +322,10 @@ class Script(object):
@memoize_default()
def _get_under_cursor_stmt(self, cursor_txt, start_pos=None):
node = Parser(self._grammar, cursor_txt, 'eval_input').get_parsed_node()
if node is None:
stmt = Parser(self._grammar, cursor_txt, 'eval_input').get_parsed_node()
if stmt is None:
return None
stmt = node.children[0]
user_stmt = self._parser.user_stmt()
if user_stmt is None:
# Set the start_pos to a pseudo position, that doesn't exist but