Skip to content

Commit de4d6d8

Browse files
panglesdjonludlam
authored andcommitted
Search: compatibility with new extension decl id
Signed-off-by: Paul-Elliot <peada@free.fr>
1 parent a83b975 commit de4d6d8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/model/paths.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ module Identifier = struct
7878
| `Constructor (parent, _) -> is_internal (parent :> t)
7979
| `Field (parent, _) -> is_internal (parent :> t)
8080
| `Extension (parent, _) -> is_internal (parent :> t)
81+
| `ExtensionDecl (parent, _, _) -> is_internal (parent :> t)
8182
| `Exception (parent, _) -> is_internal (parent :> t)
8283
| `CoreException _ -> false
8384
| `Value (_, name) -> ValueName.is_internal name
@@ -114,6 +115,8 @@ module Identifier = struct
114115
FieldName.to_string name :: full_name_aux (parent :> t)
115116
| `Extension (parent, name) ->
116117
ExtensionName.to_string name :: full_name_aux (parent :> t)
118+
| `ExtensionDecl (parent, _, name) ->
119+
ExtensionName.to_string name :: full_name_aux (parent :> t)
117120
| `Exception (parent, name) ->
118121
ExceptionName.to_string name :: full_name_aux (parent :> t)
119122
| `CoreException name -> [ ExceptionName.to_string name ]

src/search/json_index/json_search.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ let rec of_id x =
5656
ret "Field" (FieldName.to_string name) :: of_id (parent :> t)
5757
| `Extension (parent, name) ->
5858
ret "Extension" (ExtensionName.to_string name) :: of_id (parent :> t)
59+
| `ExtensionDecl (parent, _, name) ->
60+
ret "ExtensionDecl" (ExtensionName.to_string name) :: of_id (parent :> t)
5961
| `Exception (parent, name) ->
6062
ret "Exception" (ExceptionName.to_string name) :: of_id (parent :> t)
6163
| `CoreException name ->

0 commit comments

Comments
 (0)