forked from VimPlug/jedi
Fix and test CallSignature.bracket_start.
This commit is contained in:
@@ -613,11 +613,11 @@ class CallSignature(Definition):
|
||||
It knows what functions you are currently in. e.g. `isinstance(` would
|
||||
return the `isinstance` function. without `(` it would return nothing.
|
||||
"""
|
||||
def __init__(self, evaluator, executable_name, call, index, key_name):
|
||||
def __init__(self, evaluator, executable_name, call_stmt, index, key_name):
|
||||
super(CallSignature, self).__init__(evaluator, executable_name)
|
||||
self._index = index
|
||||
self._key_name = key_name
|
||||
self._call = call
|
||||
self._call_stmt = call_stmt
|
||||
|
||||
@property
|
||||
def index(self):
|
||||
@@ -649,10 +649,7 @@ class CallSignature(Definition):
|
||||
The indent of the bracket that is responsible for the last function
|
||||
call.
|
||||
"""
|
||||
c = self._call
|
||||
while c.next is not None:
|
||||
c = c.next
|
||||
return c.name.end_pos
|
||||
return self._call_stmt.end_pos
|
||||
|
||||
@property
|
||||
def call_name(self):
|
||||
|
||||
Reference in New Issue
Block a user