1
0
forked from VimPlug/jedi

Create an ExprStatement class to replace the Statement class in the future and separate array parts of actual statements

This commit is contained in:
Dave Halter
2014-09-05 22:21:26 +02:00
parent 12154fdecf
commit 6c07c7acfe
3 changed files with 22 additions and 6 deletions

View File

@@ -153,7 +153,11 @@ class BaseDefinition(object):
stripped = stripped.parent
if isinstance(stripped, iterable.Array):
return 'instance'
return type(stripped).__name__.lower().replace('wrapper', '')
string = type(stripped).__name__.lower().replace('wrapper', '')
if string == 'exprstatement':
return 'statement'
else:
return string
def _path(self):
"""The module path."""