Skip to content

Commit 8b0bd6b

Browse files
committed
Refactor: renaming.
1 parent eafc2f3 commit 8b0bd6b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

analysis/src/ProcessCmt.ml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ let addItem ~name ~extent ~stamp ~env ~item attributes exported stamps =
4848
Hashtbl.add stamps stamp declared;
4949
declared
5050

51-
let rec forSignatureTypeItem env (exported : SharedTypes.exported) item =
51+
let rec forTypeSignatureItem ~env ~(exported : SharedTypes.exported)
52+
(item : Types.signature_item) =
5253
let open Types in
5354
match item with
5455
| Sig_value (ident, {val_type; val_attributes; val_loc = loc}) ->
@@ -145,7 +146,7 @@ and forSignatureType env signature =
145146
let exported = initExported () in
146147
let topLevel =
147148
List.fold_right
148-
(fun item items -> forSignatureTypeItem env exported item @ items)
149+
(fun item items -> forTypeSignatureItem ~env ~exported item @ items)
149150
signature []
150151
in
151152
{docstring = []; exported; topLevel}
@@ -222,7 +223,8 @@ let forTypeDeclaration ~env ~(exported : exported)
222223
in
223224
{declared with item = MType (declared.item, recStatus)}
224225

225-
let forSignatureItem ~env ~(exported : exported) item =
226+
let forSignatureItem ~env ~(exported : exported)
227+
(item : Typedtree.signature_item) =
226228
match item.sig_desc with
227229
| Tsig_value {val_id; val_loc; val_name = name; val_desc; val_attributes} ->
228230
let declared =
@@ -259,7 +261,7 @@ let forSignatureItem ~env ~(exported : exported) item =
259261
in
260262
let topLevel =
261263
List.fold_right
262-
(fun item items -> forSignatureTypeItem env exported item @ items)
264+
(fun item items -> forTypeSignatureItem ~env ~exported item @ items)
263265
incl_type []
264266
in
265267
topLevel
@@ -364,7 +366,7 @@ let rec forItem ~env ~(exported : exported) item =
364366
in
365367
let topLevel =
366368
List.fold_right
367-
(fun item items -> forSignatureTypeItem env exported item @ items)
369+
(fun item items -> forTypeSignatureItem ~env ~exported item @ items)
368370
incl_type []
369371
in
370372
topLevel

analysis/src/SharedTypes.ml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,11 @@ type extra = {
199199
(* OPTIMIZE: using a stack to come up with this would cut the computation time of this considerably. *)
200200
opens : (Location.t, openTracker) Hashtbl.t;
201201
}
202-
(** These are the bits of info that we need to make in-app stuff awesome *)
203202

204203
type moduleName = string
205204

206-
(* Here are the things that will be different between jbuilder things *)
207205
type package = {
208206
rootPath : filePath;
209-
(* Depend on bsb having already run *)
210207
localModules : moduleName list;
211208
interModuleDependencies : (moduleName, moduleName list) Hashtbl.t;
212209
dependencyModules : moduleName list;

0 commit comments

Comments
 (0)