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

Refactors for renaming things in a project

Summary

Functions

Link to this function

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

View Source
@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.

Link to this function

subsume_module_attrs(zipper)

View Source