rope.contrib.findit

Classes

Location

Functions

find_occurrences(project, resource, offset[, unsure, ...])

Return a list of Location

find_implementations(project, resource, offset[, ...])

Find the places a given method is overridden.

find_definition(project, code, offset[, resource, ...])

Return the definition location of the python name at offset

Module Contents

rope.contrib.findit.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.

rope.contrib.findit.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.

rope.contrib.findit.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.

class rope.contrib.findit.Location(occurrence)
resource
region
offset
unsure
lineno