Skip to content

Commit 978d780

Browse files
committed
Fix formatting
1 parent 8f0b2f9 commit 978d780

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/analysis/outline.ml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ let rec summarize ~include_types node =
7272
match id_of_patt vb.vb_pat with
7373
| None -> None
7474
| Some ident ->
75-
let typ = outline_type ~include_types ~env:node.t_env vb.vb_pat.pat_type in
75+
let typ =
76+
outline_type ~include_types ~env:node.t_env vb.vb_pat.pat_type
77+
in
7678
Some (mk ~location ~deprecated `Value typ ident)
7779
end
7880
| Value_description vd ->
@@ -171,18 +173,24 @@ and get_class_elements node =
171173
| _ -> []
172174

173175
and get_mod_children ~include_types node =
174-
List.concat_map (Lazy.force node.t_children) ~f:(remove_mod_indir ~include_types)
176+
List.concat_map
177+
(Lazy.force node.t_children)
178+
~f:(remove_mod_indir ~include_types)
175179

176180
and remove_mod_indir ~include_types node =
177181
match node.t_node with
178182
| Module_expr _ | Module_type _ ->
179-
List.concat_map (Lazy.force node.t_children) ~f:(remove_mod_indir ~include_types)
183+
List.concat_map
184+
(Lazy.force node.t_children)
185+
~f:(remove_mod_indir ~include_types)
180186
| _ -> remove_top_indir ~include_types node
181187

182188
and remove_top_indir ~include_types t =
183189
match t.t_node with
184190
| Structure _ | Signature _ ->
185-
List.concat_map ~f:(remove_top_indir ~include_types) (Lazy.force t.t_children)
191+
List.concat_map
192+
~f:(remove_top_indir ~include_types)
193+
(Lazy.force t.t_children)
186194
| Signature_item _ | Structure_item _ ->
187195
List.filter_map (Lazy.force t.t_children) ~f:(summarize ~include_types)
188196
| _ -> []

0 commit comments

Comments
 (0)