Skip to content

Commit 31bbe74

Browse files
committed
Rename find_declaration_uid to scrape_alias
1 parent 5a3d791 commit 31bbe74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analysis/locate.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ let load_cmt ~config comp_unit ml_or_mli =
310310
Ok (source_file, cmt_infos)
311311
| None -> Error ()
312312

313-
let find_declaration_uid ~env ~fallback_uid path =
313+
let scrape_alias ~env ~fallback_uid path =
314314
let rec non_alias_declaration_uid ~fallback_uid path =
315315
match Env.find_module path env with
316316
| { md_type = Mty_alias path; md_uid = fallback_uid; _ } ->
@@ -344,7 +344,7 @@ let uid_of_path ~config ~env ~ml_or_mli ~decl_uid path ns =
344344
end)
345345
in
346346
match ml_or_mli with
347-
| `MLI -> Some (find_declaration_uid ~fallback_uid:decl_uid ~env path)
347+
| `MLI -> Some (scrape_alias ~fallback_uid:decl_uid ~env path)
348348
| `ML ->
349349
let shape = Env.shape_of_path ~namespace:ns env path in
350350
log ~title:"shape_of_path" "initial: %a"

0 commit comments

Comments
 (0)