Skip to content

Commit 3644354

Browse files
committed
renaming
1 parent 9f0d775 commit 3644354

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

analysis/src/ProcessCmt.ml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ let rec getModulePath mod_desc =
303303
| Tmod_constraint (expr, _typ, _constraint, _coercion) ->
304304
getModulePath expr.mod_desc
305305

306-
let rec forItem ~env ~(exported : exported) item =
306+
let rec forStructureItem ~env ~(exported : exported) item =
307307
match item.str_desc with
308308
| Tstr_value (_isRec, bindings) ->
309309
let declareds = ref [] in
@@ -444,7 +444,7 @@ and forStructure ~env items =
444444
let exported = initExported () in
445445
let topLevel =
446446
List.fold_right
447-
(fun item results -> forItem ~env ~exported item @ results)
447+
(fun item results -> forStructureItem ~env ~exported item @ results)
448448
items []
449449
in
450450
let attributes =
@@ -1073,7 +1073,7 @@ struct
10731073
| _ -> ()
10741074
end
10751075

1076-
let forItems ~(file : File.t) items parts =
1076+
let forStructureItems ~(file : File.t) items parts =
10771077
let extra = extraForFile ~file in
10781078
let extent = itemsExtent items in
10791079
let extent =
@@ -1122,10 +1122,10 @@ let extraForCmt ~file ({cmt_annots} : Cmt_format.cmt_infos) =
11221122
| _ -> None)
11231123
|> List.concat
11241124
in
1125-
forItems ~file items parts
1126-
| Implementation structure -> forItems ~file structure.str_items [||]
1127-
| Partial_interface _ | Interface _ -> forItems ~file [] [||]
1128-
| _ -> forItems ~file [] [||]
1125+
forStructureItems ~file items parts
1126+
| Implementation structure -> forStructureItems ~file structure.str_items [||]
1127+
| Partial_interface _ | Interface _ -> forStructureItems ~file [] [||]
1128+
| _ -> forStructureItems ~file [] [||]
11291129

11301130
let fullForCmt ~moduleName ~package ~uri cmt =
11311131
match Shared.tryReadCmt cmt with

0 commit comments

Comments
 (0)