diff --git a/lib/thrift/exceptions.ex b/lib/thrift/exceptions.ex index ae03470..c017b60 100644 --- a/lib/thrift/exceptions.ex +++ b/lib/thrift/exceptions.ex @@ -1,6 +1,8 @@ defmodule Thrift.TApplicationException do defexception message: nil, type: nil + alias Thrift.Protocol + @exception_mappings %{ unknown_method: 1, invalid_message_type: 2, diff --git a/lib/thrift/parser/file_group.ex b/lib/thrift/parser/file_group.ex index c7f860a..1f7b429 100644 --- a/lib/thrift/parser/file_group.ex +++ b/lib/thrift/parser/file_group.ex @@ -8,6 +8,7 @@ defmodule Thrift.Parser.FileGroup do files. """ + alias Thrift.Parser alias Thrift.Parser.{ FileGroup, FileRef, diff --git a/lib/thrift/parser/models.ex b/lib/thrift/parser/models.ex index 916a696..085e70f 100644 --- a/lib/thrift/parser/models.ex +++ b/lib/thrift/parser/models.ex @@ -49,7 +49,7 @@ defmodule Thrift.Parser.Models do Constants of any primitive or container type can be created in Thrift. """ - @type t :: %Constant{name: String.t, value: Literal.t, type: Types.t} + @type t :: %Constant{name: String.t, value: Literals.t, type: Types.t} @enforce_keys [:name, :value, :type] defstruct name: nil, value: nil, type: nil