forked from elixir-lsp/elixir-ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make rename_example a `.ex` file so we can later test multi-file refactors - Simplify rename_example to make it easier to follow - Extract some common patterns out in the tests
- Loading branch information
Showing
3 changed files
with
128 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
apps/language_server/test/support/fixtures/rename_example.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule ElixirLS.Test.RenameExample do | ||
def main do | ||
a = 5 | ||
b = 10 | ||
c = add(a, b) | ||
d = subtract(a, b) | ||
add(c, d) | ||
end | ||
|
||
defp add(a, b) | ||
defp add(a, b) when is_integer(a) and is_integer(b), do: a + b | ||
defp add(a, b) when is_binary(a) and is_binary(b), do: a <> b | ||
|
||
defp subtract(a, b), do: a - b | ||
end |
67 changes: 0 additions & 67 deletions
67
apps/language_server/test/support/fixtures/rename_example.exs
This file was deleted.
Oops, something went wrong.