Current section

Files

Jump to
bin_struct lib bin_struct macro macro_debug.ex
Raw

lib/bin_struct/macro/macro_debug.ex

defmodule BinStruct.Macro.MacroDebug do
@moduledoc false
def code(ast) do
Macro.to_string(ast)
|> Code.format_string!()
end
def puts_code(ast) do
code(ast)
|> IO.puts()
end
end