File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,7 @@ and comment_nestable_block_element env parent ~loc:_
224
224
| `List (x , ys ) ->
225
225
`List
226
226
( x,
227
- List. rev_map
228
- (fun x ->
229
- List. rev_map
230
- (with_location (comment_nestable_block_element env parent))
231
- x
232
- |> List. rev)
233
- ys
227
+ List. rev_map (comment_nestable_block_element_list env parent) ys
234
228
|> List. rev )
235
229
| `Modules refs ->
236
230
let refs =
@@ -259,7 +253,8 @@ and comment_nestable_block_element env parent ~loc:_
259
253
260
254
and comment_nestable_block_element_list env parent
261
255
(xs : Comment.nestable_block_element Comment.with_location list ) =
262
- List. map (with_location (comment_nestable_block_element env parent)) xs
256
+ List. rev_map (with_location (comment_nestable_block_element env parent)) xs
257
+ |> List. rev
263
258
264
259
and comment_tag env parent ~loc :_ (x : Comment.tag ) =
265
260
match x with
You can’t perform that action at this time.
0 commit comments