@@ -21,7 +21,8 @@ let impItemsExtent items =
21
21
let sigItemsExtent items =
22
22
items |> List. map (fun item -> item.Typedtree. sig_loc) |> locsExtent
23
23
24
- let addItem ~name ~extent ~stamp ~env ~item attributes exported stamps =
24
+ let addItem ~name ~extent ~stamp ~(env : Env.t ) ~item attributes exported stamps
25
+ =
25
26
let declared =
26
27
ProcessAttributes. newDeclared ~item
27
28
~scope:
@@ -490,7 +491,7 @@ let forCmt ~moduleName ~uri ({cmt_modname; cmt_annots} : Cmt_format.cmt_infos) =
490
491
in
491
492
let env =
492
493
{
493
- scope = extent;
494
+ Env. scope = extent;
494
495
stamps = Stamps. init () ;
495
496
modulePath = File (uri, moduleName);
496
497
}
@@ -509,7 +510,7 @@ let forCmt ~moduleName ~uri ({cmt_modname; cmt_annots} : Cmt_format.cmt_infos) =
509
510
in
510
511
let env =
511
512
{
512
- scope = sigItemsExtent items;
513
+ Env. scope = sigItemsExtent items;
513
514
stamps = Stamps. init () ;
514
515
modulePath = File (uri, moduleName);
515
516
}
@@ -519,7 +520,7 @@ let forCmt ~moduleName ~uri ({cmt_modname; cmt_annots} : Cmt_format.cmt_infos) =
519
520
| Implementation structure ->
520
521
let env =
521
522
{
522
- scope = impItemsExtent structure.str_items;
523
+ Env. scope = impItemsExtent structure.str_items;
523
524
stamps = Stamps. init () ;
524
525
modulePath = File (uri, moduleName);
525
526
}
@@ -529,7 +530,7 @@ let forCmt ~moduleName ~uri ({cmt_modname; cmt_annots} : Cmt_format.cmt_infos) =
529
530
| Interface signature ->
530
531
let env =
531
532
{
532
- scope = sigItemsExtent signature.sig_items;
533
+ Env. scope = sigItemsExtent signature.sig_items;
533
534
stamps = Stamps. init () ;
534
535
modulePath = File (uri, moduleName);
535
536
}
0 commit comments