support for completions on return statements.
This commit is contained in:
1 parent
d752907290
commit
b7bf8d515c
4 files changed
+9
No files matched your search
@@ -274,6 +274,8 @@ class Script(object):
|
||||
stmt = r.module.statements[-1]
|
||||
except IndexError:
|
||||
raise NotFoundError()
|
||||
if isinstance(stmt, pr.KeywordStatement):
|
||||
stmt = stmt.stmt
|
||||
if not isinstance(stmt, pr.Statement):
|
||||
raise NotFoundError()
|
||||
|
||||
|
||||
Reference in new issue
Block a user