Packages

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

Current section

Files

Jump to
proto_def lib compiler gen_ast.ex
Raw

lib/compiler/gen_ast.ex

defmodule ProtoDef.Compiler.GenAst do
def decoder(descr, ctx) do
apply(descr.__struct__, :decoder_ast, [descr, ctx])
end
def encoder(descr, ctx) do
apply(descr.__struct__, :encoder_ast, [descr, ctx])
end
end