From ca0472138421520131970ff0ef0abcb6bf34f7bb Mon Sep 17 00:00:00 2001 From: Dan Swain Date: Fri, 10 Feb 2017 17:31:52 -0500 Subject: [PATCH] Misc dialyzer fixes --- lib/thrift/exceptions.ex | 2 ++ lib/thrift/parser/file_group.ex | 1 + lib/thrift/parser/models.ex | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) 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