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 =
5959 match typ.ptyp_desc with
6060 | Ptyp_any -> " Ptyp_any"
6161 | Ptyp_var name -> " Ptyp_var(" ^ str name ^ " )"
62- | Ptyp_constr (loc , _types ) ->
62+ | Ptyp_constr (lid , _types ) ->
6363 " Ptyp_constr("
64- ^ (loc |> printLocDenominatorLoc ~pos )
65- ^ (Utils. flattenLongIdent loc .txt |> ident |> str)
64+ ^ (lid |> printLocDenominatorLoc ~pos )
65+ ^ (Utils. flattenLongIdent lid .txt |> ident |> str)
6666 ^ " )"
6767 | Ptyp_variant _ -> " Ptyp_variant(<unimplemented>)"
6868 | _ -> " <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)
6464 ~item:
6565 {
6666 Type. decl;
67- name = ident. name;
67+ name = name.txt ;
6868 kind =
6969 (match type_kind with
7070 | Type_abstract -> (
Original file line number Diff line number Diff line change @@ -381,8 +381,8 @@ let typeIsUnit (typ : Types.type_expr) =
381381
382382let contextPathFromCoreType (coreType : Parsetree.core_type ) =
383383 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 ))
386386 | _ -> None
387387
388388let printRecordFromFields ?name (fields : field list ) =
You can’t perform that action at this time.
0 commit comments