1
0
forked from VimPlug/jedi

support for completions on return statements.

This commit is contained in:
Dave Halter
2014-06-22 12:05:22 +02:00
parent d752907290
commit b7bf8d515c
4 changed files with 9 additions and 0 deletions
+2
View File
@@ -557,6 +557,8 @@ class Parser(object):
if stmt is not None:
stmt.parent = use_as_parent_scope
try:
func.statements.append(pr.KeywordStatement(tok_str, s,
use_as_parent_scope, stmt))
func.returns.append(stmt)
# start_pos is the one of the return statement
stmt.start_pos = s