From be52ee603b18eeed20f74d8c9c8240d655577663 Mon Sep 17 00:00:00 2001 From: Juan Facorro Date: Fri, 19 Jun 2015 10:58:26 -0300 Subject: [PATCH] [#59] Handle 'fun(...) ->' type expression --- src/ktn_code.erl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ktn_code.erl b/src/ktn_code.erl index 7a6162d..7c59cf3 100644 --- a/src/ktn_code.erl +++ b/src/ktn_code.erl @@ -648,6 +648,11 @@ to_map({type, Attrs, bounded_fun, [FunType, Defs]}) -> content => to_map(Defs)}; to_map({type, Attrs, Name, any}) -> to_map({type, Attrs, Name, [any]}); +to_map({type, Attrs, any}) -> + #{type => type, + attrs => #{location => get_location(Attrs), + text => "...", + name => '...'}}; to_map({type, Attrs, Name, Types}) -> #{type => type, attrs => #{location => get_location(Attrs),