Skip to content

Commit 3b650a1

Browse files
committed
Fix names after rebase to gradient
1 parent 315ca2e commit 3b650a1

File tree

15 files changed

+22
-2386
lines changed

15 files changed

+22
-2386
lines changed

lib/gradient.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ defmodule Gradient do
77
- `code_path` - Path to a file with code (e.g. when beam was compiled without project).
88
"""
99

10-
alias GradualizerEx.ElixirFileUtils
11-
alias GradualizerEx.ElixirFmt
12-
alias GradualizerEx.AstSpecifier
10+
alias Gradient.ElixirFileUtils
11+
alias Gradient.ElixirFmt
12+
alias Gradient.AstSpecifier
1313

1414
require Logger
1515

lib/gradualizer_ex/ast_specifier.ex renamed to lib/gradient/ast_specifier.ex

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
<<<<<<< HEAD:lib/gradient/specify_erl_ast.ex
2-
defmodule Gradient.SpecifyErlAst do
3-
=======
4-
defmodule GradualizerEx.AstSpecifier do
5-
>>>>>>> 9a63ccd (Code refactoring, Add docs):lib/gradualizer_ex/ast_specifier.ex
1+
defmodule Gradient.AstSpecifier do
62
@moduledoc """
73
Module adds missing location information to the Erlang abstract code produced
84
from Elixir AST. Moreover it can be used to catch some ast pattern and replace
@@ -48,15 +44,11 @@ defmodule GradualizerEx.AstSpecifier do
4844
- guards [X]
4945
"""
5046

51-
<<<<<<< HEAD:lib/gradient/specify_erl_ast.ex
52-
import Gradient.Utils
53-
=======
54-
import GradualizerEx.Tokens
55-
>>>>>>> 9a63ccd (Code refactoring, Add docs):lib/gradualizer_ex/ast_specifier.ex
47+
import Gradient.Tokens
5648

5749
require Logger
5850

59-
alias GradualizerEx.Types
51+
alias Gradient.Types
6052

6153
@type token :: Types.token()
6254
@type tokens :: Types.tokens()
@@ -75,13 +67,8 @@ defmodule GradualizerEx.AstSpecifier do
7567
with {:attribute, line, :file, {path, _}} <- hd(forms),
7668
path <- to_string(path),
7769
{:ok, code} <- File.read(path),
78-
<<<<<<< HEAD:lib/gradient/specify_erl_ast.ex
7970
{:ok, tokens} <- :elixir.string_to_tokens(String.to_charlist(code), line, line, path, []) do
80-
add_missing_loc_literals(forms, tokens)
81-
=======
82-
{:ok, tokens} <- :elixir.string_to_tokens(String.to_charlist(code), 1, 1, path, []) do
8371
run_mappers(forms, tokens)
84-
>>>>>>> 9a63ccd (Code refactoring, Add docs):lib/gradualizer_ex/ast_specifier.ex
8572
else
8673
error ->
8774
IO.puts("Error occured when specifying forms : #{inspect(error)}")

lib/gradient/elixir_fmt.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Gradient.ElixirFmt do
55
@behaviour Gradient.Fmt
66

77
alias :gradualizer_fmt, as: FmtLib
8-
alias GradualizerEx.ElixirType
8+
alias Gradient.ElixirType
99

1010
def print_errors(errors, opts) do
1111
for {file, e} <- errors do

lib/gradualizer_ex/elixir_type.ex renamed to lib/gradient/elixir_type.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule GradualizerEx.ElixirType do
1+
defmodule Gradient.ElixirType do
22
@moduledoc """
33
Module to format types.
44

0 commit comments

Comments
 (0)