View Source Igniter.Refactors.Rename (igniter v0.5.2)

Refactors for renaming things in a project

Summary

Functions

rename_function(igniter, old, new, opts \\ [])

@spec rename_function(
  Igniter.t(),
  old :: {module(), atom()},
  new :: {module(), atom()},
  opts :: Keyword.t()
) :: Igniter.t()

Renames a function globally across a project.

Options

  • :arity - :any | integer | [integer]. The arity or arities of the function to rename. Defaults to :any.

  • :deprecate - :soft | :hard. Leave the original function in place, but with a deprecation. Soft deprecations appear in documentation but do not cause warnings. Hard deprecations warn when they are called.

subsume_module_attrs(zipper)