1
0
forked from VimPlug/jedi

fix the named param issue in the autocompletion

This commit is contained in:
Dave Halter
2014-04-19 22:57:41 +02:00
parent 34488d1bb6
commit 2b091076c1
4 changed files with 16 additions and 5 deletions

View File

@@ -1181,6 +1181,13 @@ class Param(Statement):
debug.warning("Multiple param names (%s).", n)
return n[0]
@property
def stars(self):
exp = self.expression_list()
if exp and isinstance(exp[0], Operator):
return exp[0].string.count('*')
return 0
class StatementElement(Simple):
__slots__ = ('parent', 'next', 'execution')