@@ -303,7 +303,7 @@ let rec getModulePath mod_desc =
303
303
| Tmod_constraint (expr , _typ , _constraint , _coercion ) ->
304
304
getModulePath expr.mod_desc
305
305
306
- let rec forItem ~env ~(exported : exported ) item =
306
+ let rec forStructureItem ~env ~(exported : exported ) item =
307
307
match item.str_desc with
308
308
| Tstr_value (_isRec , bindings ) ->
309
309
let declareds = ref [] in
@@ -444,7 +444,7 @@ and forStructure ~env items =
444
444
let exported = initExported () in
445
445
let topLevel =
446
446
List. fold_right
447
- (fun item results -> forItem ~env ~exported item @ results)
447
+ (fun item results -> forStructureItem ~env ~exported item @ results)
448
448
items []
449
449
in
450
450
let attributes =
@@ -1073,7 +1073,7 @@ struct
1073
1073
| _ -> ()
1074
1074
end
1075
1075
1076
- let forItems ~(file : File.t ) items parts =
1076
+ let forStructureItems ~(file : File.t ) items parts =
1077
1077
let extra = extraForFile ~file in
1078
1078
let extent = itemsExtent items in
1079
1079
let extent =
@@ -1122,10 +1122,10 @@ let extraForCmt ~file ({cmt_annots} : Cmt_format.cmt_infos) =
1122
1122
| _ -> None )
1123
1123
|> List. concat
1124
1124
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 [] [||]
1129
1129
1130
1130
let fullForCmt ~moduleName ~package ~uri cmt =
1131
1131
match Shared. tryReadCmt cmt with
0 commit comments