File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,11 +71,10 @@ defmodule ElixirScript do
7171 |> get_modules_from_quoted
7272 |> Enum . map ( fn ( x ) -> % { ast: x , app: :app } end )
7373
74- { loaded_modules , std_lib_quoted } = get_quoted_std_lib ( )
74+ std_lib_quoted = get_quoted_std_lib ( )
7575
76- % { data: std_lib_quoted ++ data , loaded_modules: loaded_modules }
76+ % { data: std_lib_quoted ++ data }
7777 |> ElixirScript.Passes.Init . execute ( opts )
78- |> ElixirScript.Passes.LoadModulesForQuoted . execute ( opts )
7978 |> ElixirScript.Passes.FindModules . execute ( opts )
8079 |> ElixirScript.Passes.FindLoadOnly . execute ( opts )
8180 |> ElixirScript.Passes.FindFunctions . execute ( opts )
@@ -91,24 +90,11 @@ defmodule ElixirScript do
9190 |> Path . join
9291 |> Path . wildcard
9392
94- loaded_modules = if Code . ensure_loaded? ( ElixirScript.Kernel ) do
95- [ ]
96- else
97- case files do
98- [ ] ->
99- [ ]
100- files ->
101- Kernel.ParallelCompiler . files ( files )
102- end
103- end
104-
105- std_lib_quoted = files
93+ files
10694 |> Enum . map ( fn path -> File . read! ( path ) end )
10795 |> Enum . map ( & Code . string_to_quoted! ( & 1 ) )
10896 |> Enum . flat_map ( & get_modules_from_quoted ( & 1 ) )
10997 |> Enum . map ( fn ( x ) -> % { ast: x , app: :elixir } end )
110-
111- { loaded_modules , std_lib_quoted }
11298 end
11399
114100 defp get_modules_from_quoted ( quoted ) do
You can’t perform that action at this time.
0 commit comments