Skip to content

Commit

Permalink
Cleaner fix for looping alias scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Sep 26, 2023
1 parent b39a80a commit a335fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analysis/locate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ let scrape_alias ~env ~fallback_uid ~namespace path =
match find_type_and_uid ~env ~namespace path with
| Mty_alias path, fallback_uid ->
non_alias_declaration_uid ~fallback_uid path
| Mty_ident alias_path, fallback_uid when not (Path.same path alias_path) ->
| Mty_ident alias_path, fallback_uid
when namespace = Shape.Sig_component_kind.Module_type ->
(* This case is necessary to traverse module type aliases *)
non_alias_declaration_uid ~fallback_uid alias_path
| _, md_uid -> md_uid
Expand Down

0 comments on commit a335fff

Please sign in to comment.