Skip to content

Commit

Permalink
remove dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jul 18, 2024
1 parent eb6ef4f commit 0181de2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions test/elixir_sense/core/compiler_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ if true or Version.match?(System.version(), ">= 1.17.0-dev") do
quote do
ast = to_quoted!(unquote(code), unquote(ast))
{elixir_expanded, elixir_state, elixir_env} = elixir_expand(ast)
dbg(elixir_expanded)
# dbg(elixir_expanded)
{expanded, state, env} = expand(ast)
dbg(expanded)
# dbg(expanded)

assert clean_capture_arg(expanded) == clean_capture_arg_elixir(elixir_expanded)
assert env == elixir_env
Expand All @@ -100,11 +100,11 @@ if true or Version.match?(System.version(), ">= 1.17.0-dev") do
quote do
ast = to_quoted!(unquote(code), unquote(ast))
{elixir_expanded, elixir_state, elixir_env} = elixir_expand(ast)
dbg(elixir_expanded)
dbg(elixir_ex_to_map(elixir_state))
# dbg(elixir_expanded)
# dbg(elixir_ex_to_map(elixir_state))
{expanded, state, env} = expand(ast)
dbg(expanded)
dbg(state_to_map(state))
# dbg(expanded)
# dbg(state_to_map(state))

assert env == elixir_env
assert state_to_map(state) == elixir_ex_to_map(elixir_state)
Expand Down
3 changes: 1 addition & 2 deletions test/elixir_sense/core/metadata_builder_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
# type: {:map, [b: {:integer, 2}], nil}
# } = Enum.find(vars, &(&1.name == :a1))

vars = state |> get_line_vars(8) |> dbg
vars = state |> get_line_vars(8)

assert %VarInfo{
name: :a2,
Expand Down Expand Up @@ -8166,7 +8166,6 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
[]

env ->
dbg(state)
state.vars_info_per_scope_id[env.scope_id]
end
|> Enum.sort()
Expand Down

0 comments on commit 0181de2

Please sign in to comment.