Kinda.CodeGen behaviour (kinda v0.2.3)

Behavior for customizing your source code generation.

Link to this section Summary

Link to this section Callbacks

Link to this callback

filter_functions(list)

@callback filter_functions([Kinda.CodeGen.Function.t()]) :: [Kinda.CodeGen.Function.t()]
@callback kinds() :: Kinda.CodeGen.Type.t()
@callback nif_gen(Kinda.CodeGen.Function.t()) :: Kinda.CodeGen.NIF.t()
Link to this callback

type_gen(atom, t)

@callback type_gen(atom(), String.t()) :: {:ok, Kinda.CodeGen.Type.t()} | :skip

Link to this section Functions