Skip to content

Commit 7ee892e

Browse files
committed
cleanup
1 parent 300a700 commit 7ee892e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

analysis/src/DumpAst.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>"

analysis/src/ProcessCmt.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 -> (

analysis/src/TypeUtils.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ let typeIsUnit (typ : Types.type_expr) =
381381

382382
let 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

388388
let printRecordFromFields ?name (fields : field list) =

0 commit comments

Comments
 (0)