File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ let printCoreType typ ~pos =
59
59
match typ.ptyp_desc with
60
60
| Ptyp_any -> " Ptyp_any"
61
61
| Ptyp_var name -> " Ptyp_var(" ^ str name ^ " )"
62
- | Ptyp_constr (loc , _types ) ->
62
+ | Ptyp_constr (lid , _types ) ->
63
63
" Ptyp_constr("
64
- ^ (loc |> printLocDenominatorLoc ~pos )
65
- ^ (Utils. flattenLongIdent loc .txt |> ident |> str)
64
+ ^ (lid |> printLocDenominatorLoc ~pos )
65
+ ^ (Utils. flattenLongIdent lid .txt |> ident |> str)
66
66
^ " )"
67
67
| Ptyp_variant _ -> " Ptyp_variant(<unimplemented>)"
68
68
| _ -> " <unimplemented_ptyp_desc>"
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ let rec forTypeSignatureItem ~(env : SharedTypes.Env.t) ~(exported : Exported.t)
64
64
~item:
65
65
{
66
66
Type. decl;
67
- name = ident. name;
67
+ name = name.txt ;
68
68
kind =
69
69
(match type_kind with
70
70
| Type_abstract -> (
Original file line number Diff line number Diff line change @@ -381,8 +381,8 @@ let typeIsUnit (typ : Types.type_expr) =
381
381
382
382
let contextPathFromCoreType (coreType : Parsetree.core_type ) =
383
383
match coreType.ptyp_desc with
384
- | Ptyp_constr (loc , [] ) ->
385
- Some (Completable. CPId (loc .txt |> Utils. flattenLongIdent, Type ))
384
+ | Ptyp_constr (lid , [] ) ->
385
+ Some (Completable. CPId (lid .txt |> Utils. flattenLongIdent, Type ))
386
386
| _ -> None
387
387
388
388
let printRecordFromFields ?name (fields : field list ) =
You can’t perform that action at this time.
0 commit comments