1
0
forked from VimPlug/jedi

Removed Scope.statements from the parser tree.

This commit is contained in:
Dave Halter
2017-04-28 18:18:37 +02:00
parent 307adc2026
commit eaa5100372
5 changed files with 21 additions and 14 deletions

View File

@@ -273,13 +273,15 @@ class Scope(PythonBaseNode, DocstringMixin):
return scan(self.children)
@property
def statements(self):
return self._search_in_scope((ExprStmt, KeywordStatement))
def is_scope(self):
return True
def get_suite(self):
"""
Returns the part that is executed by the function.
"""
return self.children[-1]
def __repr__(self):
try:
name = self.name.value