Skip to content

Commit

Permalink
Handle the map() type in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis committed Oct 25, 2022
1 parent 0b13e53 commit 3bbd252
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/make_doc
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env escript

%%% -*- coding: utf-8 -*-
%%% -*- erlang-indent-level: 2 -*-
%%% -*- coding: utf-8; erlang-indent-level: 2 -*-
%%% -------------------------------------------------------------------
%%% Copyright 2010-2020 Manolis Papadakis <[email protected]>,
%%% Copyright 2010-2022 Manolis Papadakis <[email protected]>,
%%% Eirini Arvaniti <[email protected]>
%%% and Kostis Sagonas <[email protected]>
%%%
Expand Down Expand Up @@ -354,6 +353,8 @@ replace({Kind,Line,Args}, Alias, Value) when Kind =:= ann_type
{Kind, Line, NewArgs};
replace(Type = {type,_Line,tuple,any}, _Alias, _Value) ->
Type;
replace(Type = {type,_Line,map,any}, _Alias, _Value) ->
Type;
replace({type,_Line,SameName,Args}, Alias = {type,SameName,Arity},
Value = {TypeForm,VarForms}) when length(Args) =:= Arity ->
FixedArgs = [replace(Arg,Alias,Value) || Arg <- Args],
Expand Down

0 comments on commit 3bbd252

Please sign in to comment.