File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,14 @@ let rec find_tag f = function
45
45
warn_unexpected_tag hd;
46
46
find_tag f tl)
47
47
48
- let rec find_tags acc f = function
48
+ let rec find_tags acc ~ filter = function
49
49
| [] -> List. rev acc
50
50
| hd :: tl -> (
51
- match f hd.Location. value with
52
- | Some x -> find_tags ((x, hd.location) :: acc) f tl
51
+ match filter hd.Location. value with
52
+ | Some x -> find_tags ((x, hd.location) :: acc) ~filter tl
53
53
| None ->
54
54
warn_unexpected_tag hd;
55
- find_tags acc f tl)
55
+ find_tags acc ~filter tl)
56
56
57
57
let handle_internal_tags (type a ) tags : a handle_internal_tags -> a = function
58
58
| Expect_status -> (
@@ -73,7 +73,7 @@ let handle_internal_tags (type a) tags : a handle_internal_tags -> a = function
73
73
| Expect_page_tags ->
74
74
let unparsed_lines =
75
75
find_tags []
76
- (function `Children_order _ as p -> Some p | _ -> None )
76
+ ~filter: (function `Children_order _ as p -> Some p | _ -> None )
77
77
tags
78
78
in
79
79
let lines =
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ module Ast_to_sexp = struct
144
144
| `Return es ->
145
145
List (Atom "@return" :: List.map (at.at (nestable_block_element at)) es)
146
146
| `Children_order es ->
147
- List (Atom "@return" :: List.map (at.at (nestable_block_element at)) es)
147
+ List
148
+ (Atom "@children_order"
149
+ :: List.map (at.at (nestable_block_element at)) es)
148
150
| `See (kind, s, es) ->
149
151
let kind =
150
152
match kind with
You can’t perform that action at this time.
0 commit comments