Skip to content

Commit

Permalink
Search: compatibility with new extension decl id
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Elliot <[email protected]>
  • Loading branch information
panglesd authored and jonludlam committed Oct 27, 2023
1 parent a83b975 commit de4d6d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/model/paths.ml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module Identifier = struct
| `Constructor (parent, _) -> is_internal (parent :> t)
| `Field (parent, _) -> is_internal (parent :> t)
| `Extension (parent, _) -> is_internal (parent :> t)
| `ExtensionDecl (parent, _, _) -> is_internal (parent :> t)
| `Exception (parent, _) -> is_internal (parent :> t)
| `CoreException _ -> false
| `Value (_, name) -> ValueName.is_internal name
Expand Down Expand Up @@ -114,6 +115,8 @@ module Identifier = struct
FieldName.to_string name :: full_name_aux (parent :> t)
| `Extension (parent, name) ->
ExtensionName.to_string name :: full_name_aux (parent :> t)
| `ExtensionDecl (parent, _, name) ->
ExtensionName.to_string name :: full_name_aux (parent :> t)
| `Exception (parent, name) ->
ExceptionName.to_string name :: full_name_aux (parent :> t)
| `CoreException name -> [ ExceptionName.to_string name ]
Expand Down
2 changes: 2 additions & 0 deletions src/search/json_index/json_search.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ let rec of_id x =
ret "Field" (FieldName.to_string name) :: of_id (parent :> t)
| `Extension (parent, name) ->
ret "Extension" (ExtensionName.to_string name) :: of_id (parent :> t)
| `ExtensionDecl (parent, _, name) ->
ret "ExtensionDecl" (ExtensionName.to_string name) :: of_id (parent :> t)
| `Exception (parent, name) ->
ret "Exception" (ExceptionName.to_string name) :: of_id (parent :> t)
| `CoreException name ->
Expand Down

0 comments on commit de4d6d8

Please sign in to comment.