Skip to content

Commit

Permalink
transform private types by just using their name path
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Jun 25, 2015
1 parent 51409af commit 040f21a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions type.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,16 @@ module TExprToExpr = struct
(match !r with
| None -> raise Exit
| Some t -> convert_type t)
| TInst ({cl_private = true; cl_path=_,name},tl)
| TEnum ({e_private = true; e_path=_,name},tl)
| TType ({t_private = true; t_path=_,name},tl)
| TAbstract ({a_private = true; a_path=_,name},tl) ->
CTPath {
tpackage = [];
tname = name;
tparams = List.map (fun t -> TPType (convert_type t)) tl;
tsub = None;
}
| TEnum (e,pl) ->
tpath e.e_path e.e_module.m_path (List.map convert_type pl)
| TInst({cl_kind = KTypeParameter _} as c,pl) ->
Expand Down

0 comments on commit 040f21a

Please sign in to comment.