@@ -359,7 +359,7 @@ let rec pathFromVisibility visibilityPath current =
359
359
let pathFromVisibility visibilityPath tipName =
360
360
pathFromVisibility visibilityPath (Tip tipName)
361
361
362
- let forLocalStamp ~package ~ file ~ extra stamp tip =
362
+ let forLocalStamp ~full : { file; extra; package} stamp tip =
363
363
let env = ProcessCmt. fileEnv file in
364
364
let open Infix in
365
365
match
@@ -436,17 +436,16 @@ let forLocalStamp ~package ~file ~extra stamp tip =
436
436
in
437
437
(file.uri, local) :: externals)
438
438
439
- let allReferencesForLocItem ~package ~ file ~ extra locItem =
439
+ let allReferencesForLocItem ~full :( {file; package} as full ) locItem =
440
440
match locItem.locType with
441
441
| Typed (_ , NotFound ) | LModule NotFound | TopLevelModule _ | Constant _ -> []
442
- | TypeDefinition (_ , _ , stamp ) ->
443
- forLocalStamp ~package ~file ~extra stamp Type
442
+ | TypeDefinition (_ , _ , stamp ) -> forLocalStamp ~full stamp Type
444
443
| Typed (_, (LocalReference (stamp, tip) | Definition (stamp, tip)))
445
444
| LModule (LocalReference (stamp , tip ) | Definition (stamp , tip )) ->
446
445
maybeLog
447
446
(" Finding references for " ^ Uri2. toString file.uri ^ " and stamp "
448
447
^ string_of_int stamp ^ " and tip " ^ tipToString tip);
449
- forLocalStamp ~package ~file ~extra stamp tip
448
+ forLocalStamp ~full stamp tip
450
449
| LModule (GlobalReference (moduleName, path, tip))
451
450
| Typed (_ , GlobalReference (moduleName , path , tip )) -> (
452
451
match ProcessCmt. fileForModule ~package moduleName with
@@ -461,10 +460,10 @@ let allReferencesForLocItem ~package ~file ~extra locItem =
461
460
| Some stamp -> (
462
461
match ProcessCmt. getFullFromCmt ~uri: env.qFile.uri with
463
462
| None -> []
464
- | Some {file; extra} ->
463
+ | Some full ->
465
464
maybeLog
466
465
(" Finding references for (global) "
467
466
^ Uri2. toString env.qFile.uri
468
467
^ " and stamp " ^ string_of_int stamp ^ " and tip "
469
468
^ tipToString tip);
470
- forLocalStamp ~package ~file ~extra stamp tip))))
469
+ forLocalStamp ~full stamp tip))))
0 commit comments