rope.refactor.inline
Classes
Functions
|
Create a refactoring object for inlining |
Module Contents
- rope.refactor.inline.unique_prefix()
- rope.refactor.inline.create_inline(project, resource, offset)
Create a refactoring object for inlining
Based on resource and offset it returns an instance of InlineMethod, InlineVariable or InlineParameter.
- class rope.refactor.inline.InlineMethod(*args, **kwds)
Bases:
_Inliner- pyfunction
- pymodule
- resource
- occurrence_finder
- normal_generator
- get_changes(remove=True, only_current=False, resources=None, task_handle=taskhandle.DEFAULT_TASK_HANDLE)
Get the changes this refactoring makes
If remove is False the definition will not be removed. If only_current is True, the the current occurrence will be inlined, only.
- get_kind()
Return either ‘variable’, ‘method’ or ‘parameter’
- project
- pyname
- region
- name
- offset
- original
- class rope.refactor.inline.InlineVariable(*args, **kwds)
Bases:
_Inliner- pymodule
- resource
- get_changes(remove=True, only_current=False, resources=None, docs=False, task_handle=taskhandle.DEFAULT_TASK_HANDLE)
- get_kind()
Return either ‘variable’, ‘method’ or ‘parameter’
- project
- pyname
- region
- name
- offset
- original
- class rope.refactor.inline.InlineParameter(*args, **kwds)
Bases:
_Inliner- changers
- signature
- get_changes(**kwds)
Get the changes needed by this refactoring
See rope.refactor.change_signature.ChangeSignature.get_changes() for arguments.
- get_kind()
Return either ‘variable’, ‘method’ or ‘parameter’
- project
- pyname
- region
- name
- offset
- original