Packages

ProtoDef compiler for Elixir. (mostly) Compatible with https://github.com/ProtoDef-io/ProtoDef.

Current section

Files

Jump to
proto_def lib compiler structure.ex
Raw

lib/compiler/structure.ex

defmodule ProtoDef.Compiler.Structure do
def gen_for_type({:type_ref, typ, _}, _ctx), do: {:type_ref, typ}
def gen_for_type(type, ctx) do
apply(type.__struct__, :structure, [type, ctx])
end
end