forked from erlang-ls/erlang_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.
Add support for renaming modules (erlang-ls#1196)
- Loading branch information
Showing
6 changed files
with
167 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-module(rename_module_a). | ||
|
||
-export([ function_a/0 | ||
, function_b/0 | ||
]). | ||
-export_type([type_a/0]). | ||
|
||
-type type_a() :: any(). | ||
|
||
-callback function_a() -> type_a(). | ||
|
||
function_a() -> | ||
a. | ||
|
||
function_b() -> | ||
b. |
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,14 @@ | ||
-module(rename_module_b). | ||
|
||
-behaviour(rename_module_a). | ||
-import(rename_module_a, [function_b/0]). | ||
|
||
-export([function_a/0]). | ||
|
||
-type type_a() :: rename_module_a:type_a(). | ||
|
||
-spec function_a() -> type_a(). | ||
function_a() -> | ||
rename_module_a:function_a(), | ||
F = fun rename_module_a:function_a/0, | ||
F(). |
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
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
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
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