We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a0d4a commit 79f611aCopy full SHA for 79f611a
jscomp/syntax/src/res_core.ml
@@ -17,16 +17,6 @@ end
17
let mkLoc startLoc endLoc =
18
Location.{loc_start = startLoc; loc_end = endLoc; loc_ghost = false}
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
module Recover = struct
31
let defaultExpr () =
32
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 () =
0 commit comments