Skip to content

Commit d545fdd

Browse files
committed
rename
1 parent 052bae1 commit d545fdd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

analysis/src/Cmt.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ let fromUri ~uri =
1010
in
1111
match Hashtbl.find_opt package.pathsForModule moduleName with
1212
| Some paths ->
13-
let cmt = SharedTypes.getCmt ~interface:(Utils.endsWith path "i") paths in
13+
let cmt =
14+
SharedTypes.getCmtPath ~interface:(Utils.endsWith path "i") paths
15+
in
1416
ProcessCmt.fullForCmt ~moduleName ~package ~uri cmt
1517
| None ->
1618
prerr_endline ("can't find module " ^ moduleName);

analysis/src/ProcessCmt.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ let fileForModule modname ~package =
12601260
if Hashtbl.mem package.pathsForModule modname then (
12611261
let paths = Hashtbl.find package.pathsForModule modname in
12621262
(* TODO: do better *)
1263-
let cmt = SharedTypes.getCmt ~interface:false paths in
1263+
let cmt = SharedTypes.getCmtPath ~interface:false paths in
12641264
let uri = SharedTypes.getUri paths in
12651265
Log.log ("FINDING docs for module " ^ SharedTypes.showPaths paths);
12661266
Log.log ("FINDING " ^ cmt ^ " uri " ^ Uri2.toString uri);

analysis/src/SharedTypes.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ let getUri p =
142142
| Namespace {cmt} -> Uri2.fromPath cmt
143143
| IntfAndImpl {resi} -> Uri2.fromPath resi
144144

145-
let getCmt ~interface p =
145+
let getCmtPath ~interface p =
146146
match p with
147147
| Impl {cmt} -> cmt
148148
| Namespace {cmt} -> cmt

0 commit comments

Comments
 (0)