330 try: |
330 try: |
331 assignments = script.goto( |
331 assignments = script.goto( |
332 line, index, follow_imports=True, follow_builtin_imports=True) |
332 line, index, follow_imports=True, follow_builtin_imports=True) |
333 for assignment in assignments: |
333 for assignment in assignments: |
334 if bool(assignment.module_path): |
334 if bool(assignment.module_path): |
335 # TODO: call __getReferences if |
|
336 # assignment.module_path == filename and |
|
337 # assignment.line == line |
|
338 gotoDefinition = { |
335 gotoDefinition = { |
339 'ModulePath': str(assignment.module_path), |
336 'ModulePath': str(assignment.module_path), |
340 'Line': (0 if assignment.line is None else |
337 'Line': (0 if assignment.line is None else |
341 assignment.line), |
338 assignment.line), |
342 'Column': assignment.column, |
339 'Column': assignment.column, |