rope.refactor.inline ==================== .. py:module:: rope.refactor.inline Classes ------- .. autoapisummary:: rope.refactor.inline.InlineMethod rope.refactor.inline.InlineVariable rope.refactor.inline.InlineParameter Functions --------- .. autoapisummary:: rope.refactor.inline.unique_prefix rope.refactor.inline.create_inline Module Contents --------------- .. py:function:: unique_prefix() .. py:function:: 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`. .. py:class:: InlineMethod(*args, **kwds) Bases: :py:obj:`_Inliner` .. py:attribute:: pyfunction .. py:attribute:: pymodule .. py:attribute:: resource .. py:attribute:: occurrence_finder .. py:attribute:: normal_generator .. py:method:: 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. .. py:method:: get_kind() Return either 'variable', 'method' or 'parameter' .. py:attribute:: project .. py:attribute:: pyname .. py:attribute:: region .. py:attribute:: name .. py:attribute:: offset .. py:attribute:: original .. py:class:: InlineVariable(*args, **kwds) Bases: :py:obj:`_Inliner` .. py:attribute:: pymodule .. py:attribute:: resource .. py:method:: get_changes(remove=True, only_current=False, resources=None, docs=False, task_handle=taskhandle.DEFAULT_TASK_HANDLE) .. py:method:: get_kind() Return either 'variable', 'method' or 'parameter' .. py:attribute:: project .. py:attribute:: pyname .. py:attribute:: region .. py:attribute:: name .. py:attribute:: offset .. py:attribute:: original .. py:class:: InlineParameter(*args, **kwds) Bases: :py:obj:`_Inliner` .. py:attribute:: changers .. py:attribute:: signature .. py:method:: get_changes(**kwds) Get the changes needed by this refactoring See `rope.refactor.change_signature.ChangeSignature.get_changes()` for arguments. .. py:method:: get_kind() Return either 'variable', 'method' or 'parameter' .. py:attribute:: project .. py:attribute:: pyname .. py:attribute:: region .. py:attribute:: name .. py:attribute:: offset .. py:attribute:: original