339 'ModulePath': str(assignment.module_path), |
339 'ModulePath': str(assignment.module_path), |
340 'Line': (0 if assignment.line is None else |
340 'Line': (0 if assignment.line is None else |
341 assignment.line), |
341 assignment.line), |
342 'Column': assignment.column, |
342 'Column': assignment.column, |
343 } |
343 } |
|
344 |
|
345 if ( |
|
346 gotoDefinition["ModulePath"] == filename and |
|
347 gotoDefinition["Line"] == line |
|
348 ): |
|
349 # user called for the definition itself |
|
350 # => send the references instead |
|
351 self.__getReferences(params) |
|
352 return |
344 break |
353 break |
345 except SuppressedException as err: |
354 except SuppressedException as err: |
346 errorDict = self.__handleError(err) |
355 errorDict = self.__handleError(err) |
347 |
356 |
348 result = { |
357 result = { |