Skip to content

Commit

Permalink
[#59] Handle 'fun(...) ->' type expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jfacorro committed Jun 19, 2015
1 parent 09f112e commit be52ee6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ktn_code.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit be52ee6

Please sign in to comment.