1
0
forked from VimPlug/jedi

Fix and test CallSignature.bracket_start.

This commit is contained in:
Dave Halter
2015-03-04 12:15:43 +01:00
parent 1ce96f2581
commit a3c2108ecf
4 changed files with 22 additions and 15 deletions

View File

@@ -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):