rope.contrib.findit =================== .. py:module:: rope.contrib.findit Classes ------- .. autoapisummary:: rope.contrib.findit.Location Functions --------- .. autoapisummary:: rope.contrib.findit.find_occurrences rope.contrib.findit.find_implementations rope.contrib.findit.find_definition Module Contents --------------- .. py:function:: find_occurrences(project, resource, offset, unsure=False, resources=None, in_hierarchy=False, task_handle=taskhandle.DEFAULT_TASK_HANDLE) Return a list of `Location` If `unsure` is `True`, possible matches are returned, too. You can use `Location.unsure` to see which are unsure occurrences. `resources` can be a list of `rope.base.resource.File` that should be searched for occurrences; if `None` all python files in the project are searched. .. py:function:: find_implementations(project, resource, offset, resources=None, task_handle=taskhandle.DEFAULT_TASK_HANDLE) Find the places a given method is overridden. Finds the places a method is implemented. Returns a list of `Location`. .. py:function:: find_definition(project, code, offset, resource=None, maxfixes=1) Return the definition location of the python name at `offset` A `Location` object is returned if the definition location can be determined, otherwise ``None`` is returned. .. py:class:: Location(occurrence) .. py:attribute:: resource .. py:attribute:: region .. py:attribute:: offset .. py:attribute:: unsure .. py:attribute:: lineno