@@ -369,7 +369,7 @@ let rec pathFromVisibility visibilityPath current =
369
369
let pathFromVisibility visibilityPath tipName =
370
370
pathFromVisibility visibilityPath (Tip tipName)
371
371
372
- let forLocalStamp ~package ~file ~extra ~allModules ~ getExtra stamp tip =
372
+ let forLocalStamp ~package ~file ~extra ~getExtra stamp tip =
373
373
let env = ProcessCmt. fileEnv file in
374
374
let open Infix in
375
375
match
@@ -416,7 +416,7 @@ let forLocalStamp ~package ~file ~extra ~allModules ~getExtra stamp tip =
416
416
maybeLog (" Now checking path " ^ pathToString path);
417
417
let thisModuleName = file.moduleName in
418
418
let externals =
419
- allModules
419
+ package.localModules
420
420
|> List. filter (fun name -> name <> file.moduleName)
421
421
|> Utils. filterMap (fun name ->
422
422
match ProcessCmt. fileForModule ~package name with
@@ -447,22 +447,21 @@ let forLocalStamp ~package ~file ~extra ~allModules ~getExtra stamp tip =
447
447
in
448
448
(file.uri, local) :: externals)
449
449
450
- let allReferencesForLoc ~package ~getUri ~file ~extra ~allModules ~getExtra loc
451
- =
450
+ let allReferencesForLoc ~package ~getUri ~file ~extra ~getExtra loc =
452
451
match loc with
453
452
| Explanation _
454
453
| Typed (_, NotFound )
455
454
| LModule NotFound
456
455
| TopLevelModule _ | Constant _ ->
457
456
[]
458
457
| TypeDefinition (_ , _ , stamp ) ->
459
- forLocalStamp ~package ~file ~extra ~all Modules ~ get Extra stamp Type
458
+ forLocalStamp ~package ~file ~extra ~get Extra stamp Type
460
459
| Typed (_, (LocalReference (stamp, tip) | Definition (stamp, tip)))
461
460
| LModule (LocalReference (stamp , tip ) | Definition (stamp , tip )) ->
462
461
maybeLog
463
462
(" Finding references for " ^ Uri2. toString file.uri ^ " and stamp "
464
463
^ string_of_int stamp ^ " and tip " ^ tipToString tip);
465
- forLocalStamp ~package ~file ~extra ~all Modules ~ get Extra stamp tip
464
+ forLocalStamp ~package ~file ~extra ~get Extra stamp tip
466
465
| LModule (GlobalReference (moduleName, path, tip))
467
466
| Typed (_ , GlobalReference (moduleName , path , tip )) -> (
468
467
match ProcessCmt. fileForModule ~package moduleName with
@@ -482,5 +481,4 @@ let allReferencesForLoc ~package ~getUri ~file ~extra ~allModules ~getExtra loc
482
481
(" Finding references for (global) " ^ Uri2. toString env.file.uri
483
482
^ " and stamp " ^ string_of_int stamp ^ " and tip "
484
483
^ tipToString tip);
485
- forLocalStamp ~package ~file ~extra ~all Modules ~get Extra stamp tip)
486
- )))
484
+ forLocalStamp ~package ~file ~extra ~get Extra stamp tip))))
0 commit comments