Skip to content

Commit 9f0d775

Browse files
committed
Refactor: more renaming.
1 parent 8b0bd6b commit 9f0d775

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

analysis/src/ProcessCmt.ml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ let rec forTypeSignatureItem ~env ~(exported : SharedTypes.exported)
134134
| Sig_module (ident, {md_type; md_attributes; md_loc}, _) ->
135135
let declared =
136136
addItem ~extent:md_loc
137-
~item:(forModuleType env md_type)
137+
~item:(forTypeModule env md_type)
138138
~name:(Location.mknoloc (Ident.name ident))
139139
~stamp:(Ident.binding_time ident) ~env md_attributes exported.modules
140140
env.stamps.modules
141141
in
142142
[{declared with item = Module declared.item}]
143143
| _ -> []
144144

145-
and forSignatureType env signature =
145+
and forTypeSignature env signature =
146146
let exported = initExported () in
147147
let topLevel =
148148
List.fold_right
@@ -151,13 +151,13 @@ and forSignatureType env signature =
151151
in
152152
{docstring = []; exported; topLevel}
153153

154-
and forModuleType env moduleType =
154+
and forTypeModule env moduleType =
155155
match moduleType with
156156
| Types.Mty_ident path -> Ident path
157157
| Mty_alias (_ (* 402 *), path) -> Ident path
158-
| Mty_signature signature -> Structure (forSignatureType env signature)
158+
| Mty_signature signature -> Structure (forTypeSignature env signature)
159159
| Mty_functor (_argIdent, _argType, resultType) ->
160-
forModuleType env resultType
160+
forTypeModule env resultType
161161

162162
let getModuleTypePath mod_desc =
163163
match mod_desc with
@@ -246,7 +246,7 @@ let forSignatureItem ~env ~(exported : exported)
246246
decl |> forTypeDeclaration ~env ~exported ~recStatus)
247247
| Tsig_module
248248
{md_id; md_attributes; md_loc; md_name = name; md_type = {mty_type}} ->
249-
let item = forModuleType env mty_type in
249+
let item = forTypeModule env mty_type in
250250
let declared =
251251
addItem ~item ~name ~extent:md_loc ~stamp:(Ident.binding_time md_id) ~env
252252
md_attributes exported.modules env.stamps.modules
@@ -350,7 +350,7 @@ let rec forItem ~env ~(exported : exported) item =
350350
let env =
351351
{env with modulePath = ExportedModule (name.txt, env.modulePath)}
352352
in
353-
let modTypeItem = forModuleType env modType in
353+
let modTypeItem = forTypeModule env modType in
354354
let declared =
355355
addItem ~item:modTypeItem ~name ~extent:mtd_loc
356356
~stamp:(Ident.binding_time mtd_id)
@@ -430,14 +430,14 @@ and forModule env mod_desc moduleName =
430430
let env =
431431
{env with modulePath = ExportedModule (moduleName, env.modulePath)}
432432
in
433-
forModuleType env moduleType
433+
forTypeModule env moduleType
434434
| Tmod_constraint (expr, typ, _constraint, _coercion) ->
435435
(* TODO do this better I think *)
436436
let modKind = forModule env expr.mod_desc moduleName in
437437
let env =
438438
{env with modulePath = ExportedModule (moduleName, env.modulePath)}
439439
in
440-
let modTypeKind = forModuleType env typ in
440+
let modTypeKind = forTypeModule env typ in
441441
Constraint (modKind, modTypeKind)
442442

443443
and forStructure ~env items =

0 commit comments

Comments
 (0)