Skip to content

Commit f26cb6b

Browse files
committed
Refactor: rename functions for extra.
1 parent afb7905 commit f26cb6b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

analysis/src/ProcessCmt.ml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@ struct
10731073
| _ -> ()
10741074
end
10751075

1076-
let forStructureItems ~(file : File.t) (items : Typedtree.structure_item list)
1077-
parts =
1076+
let extraForStructureItems ~(file : File.t)
1077+
(items : Typedtree.structure_item list) parts =
10781078
let extra = extraForFile ~file in
10791079
let extent = itemsExtent items in
10801080
let extent =
@@ -1110,8 +1110,8 @@ let forStructureItems ~(file : File.t) (items : Typedtree.structure_item list)
11101110
| Partial_structure _ | Partial_structure_item _ -> ());
11111111
extra
11121112

1113-
let forSignatureItems ~(file : File.t) (items : Typedtree.signature_item list)
1114-
parts =
1113+
let extraForSignatureItems ~(file : File.t)
1114+
(items : Typedtree.signature_item list) parts =
11151115
let extra = extraForFile ~file in
11161116
let extent = sigItemsExtent items in
11171117
let extent =
@@ -1149,7 +1149,8 @@ let forSignatureItems ~(file : File.t) (items : Typedtree.signature_item list)
11491149

11501150
let extraForCmt ~file ({cmt_annots} : Cmt_format.cmt_infos) =
11511151
match cmt_annots with
1152-
| Implementation structure -> forStructureItems ~file structure.str_items [||]
1152+
| Implementation structure ->
1153+
extraForStructureItems ~file structure.str_items [||]
11531154
| Partial_implementation parts ->
11541155
let items =
11551156
parts |> Array.to_list
@@ -1161,8 +1162,8 @@ let extraForCmt ~file ({cmt_annots} : Cmt_format.cmt_infos) =
11611162
| _ -> None)
11621163
|> List.concat
11631164
in
1164-
forStructureItems ~file items parts
1165-
| Interface signature -> forSignatureItems ~file signature.sig_items [||]
1165+
extraForStructureItems ~file items parts
1166+
| Interface signature -> extraForSignatureItems ~file signature.sig_items [||]
11661167
| Partial_interface parts ->
11671168
let items =
11681169
parts |> Array.to_list
@@ -1173,8 +1174,8 @@ let extraForCmt ~file ({cmt_annots} : Cmt_format.cmt_infos) =
11731174
| _ -> None)
11741175
|> List.concat
11751176
in
1176-
forSignatureItems ~file items parts
1177-
| _ -> forStructureItems ~file [] [||]
1177+
extraForSignatureItems ~file items parts
1178+
| _ -> extraForStructureItems ~file [] [||]
11781179

11791180
let fullForCmt ~moduleName ~package ~uri cmt =
11801181
match Shared.tryReadCmt cmt with

0 commit comments

Comments
 (0)