File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 17
17
let mkLoc startLoc endLoc =
18
18
Location. {loc_start = startLoc; loc_end = endLoc; loc_ghost = false }
19
19
20
- let filter_map (f : 'a -> 'b option ) xs =
21
- let rec aux acc = function
22
- | [] -> List. rev acc
23
- | y :: ys -> (
24
- match f y with
25
- | None -> aux acc ys
26
- | Some z -> aux (z :: acc) ys)
27
- in
28
- aux [] xs
29
-
30
20
module Recover = struct
31
21
let defaultExpr () =
32
22
let id = Location. mknoloc " rescript.exprhole" in
@@ -2305,7 +2295,7 @@ and parseTemplateExpr ?(prefix = "js") p =
2305
2295
in
2306
2296
let parts = parseParts p in
2307
2297
let strings = List. map fst parts in
2308
- let values = filter_map snd parts in
2298
+ let values = Ext_list. filter_map parts snd in
2309
2299
let endPos = p.Parser. endPos in
2310
2300
2311
2301
let genTaggedTemplateCall () =
You can’t perform that action at this time.
0 commit comments