forked from VimPlug/jedi
Removed Scope.statements from the parser tree.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user