Current section

Files

Jump to
bin_struct lib bin_struct macro preprocess remap_interface_implementation.ex
Raw

lib/bin_struct/macro/preprocess/remap_interface_implementation.ex

defmodule BinStruct.Macro.Preprocess.RemapInterfaceImplementation do
@moduledoc false
alias BinStruct.Macro.Structs.InterfaceImplementation
alias BinStruct.Macro.Preprocess.RemapCallback
def remap_raw_interface_implementation(raw_interface_implementation, env) do
{ interface, raw_callback } = raw_interface_implementation
callback = RemapCallback.remap_callback(raw_callback, env)
%InterfaceImplementation{
interface: interface,
callback: callback
}
end
end