@@ -81,7 +81,7 @@ let searchable_type_of_constructor args res =
81
81
match args with
82
82
| TypeDecl.Constructor. Tuple args -> begin
83
83
match args with
84
- | _ :: _ :: _ -> TypeExpr. (Arrow (None , Tuple args, res))
84
+ | _ :: _ :: _ -> TypeExpr. (Arrow (None , Tuple ( List. map ( fun x -> ( None , x)) args) , res))
85
85
| [ arg ] -> TypeExpr. (Arrow (None , arg, res))
86
86
| _ -> res
87
87
end
@@ -119,6 +119,10 @@ let convert_kind ~db (Odoc_index.Entry.{ kind; _ } as entry) =
119
119
let typ = searchable_type_of_record parent_type type_ in
120
120
let typ = Db_writer. type_of_odoc ~db typ in
121
121
Entry.Kind. Field typ
122
+ | UnboxedField { mutable_ = _ ; parent_type; type_ } ->
123
+ let typ = searchable_type_of_record parent_type type_ in
124
+ let typ = Db_writer. type_of_odoc ~db typ in
125
+ Entry.Kind. Field typ
122
126
| Doc -> Doc
123
127
| Dir -> Doc
124
128
| Page _ -> Doc
@@ -146,7 +150,7 @@ let rec categorize id =
146
150
| `Root _ | `Page _ | `LeafPage _ -> `definition
147
151
| `ModuleType _ -> `declaration
148
152
| `Parameter _ -> `ignore (* redundant with indexed signature *)
149
- | ( `InstanceVariable _ | `Method _ | `Field _ | `Result _ | `Label _ | `Type _
153
+ | ( `InstanceVariable _ | `Method _ | `Field _ | `UnboxedField _ | ` Result _ | `Label _ | `Type _
150
154
| `Exception _ | `Class _ | `ClassType _ | `Value _ | `Constructor _ | `Extension _
151
155
| `ExtensionDecl _ | `Module _ ) as x ->
152
156
let parent = Identifier. label_parent { id with iv = x } in
0 commit comments