Skip to content

Commit 706a130

Browse files
committed
Syntax tests replace "|>" with "->"
1 parent 53aa85d commit 706a130

File tree

421 files changed

+6139
-6151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+6139
-6151
lines changed

tests/syntax_tests/data/conversion/reason/attributes.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ list{1, 2, 3}->map(a => a + 1)->filter(a => modulo(a, 2) == 0)->Js.log
1717
type t
1818
@new external make: unit => t = "DOMParser"
1919

20-
Js.log(make() |> parseHtmlFromString("sdsd"))
20+
Js.log(make()->parseHtmlFromString("sdsd"))

tests/syntax_tests/data/conversion/reason/expected/attributes.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ list{1, 2, 3}->map(a => a + 1)->filter(a => modulo(a, 2) == 0)->Js.log
1717
type t
1818
@new external make: unit => t = "DOMParser"
1919

20-
Js.log(parseHtmlFromString("sdsd", make()))
20+
Js.log(make()->parseHtmlFromString("sdsd"))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let photo = Array.get(_, 0)(filterNone(pricedRoom["room"]["photos"]))
1+
let photo = pricedRoom["room"]["photos"]->filterNone->Array.get(_, 0)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let photo = pricedRoom["room"]["photos"] |> filterNone |> Array.get(_, 0)
1+
let photo = pricedRoom["room"]["photos"]->filterNone->Array.get(_, 0)

tests/syntax_tests/data/idempotency/bs-css/Css_Legacy_Core.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ let gridLengthToJs = x =>
14921492
}
14931493

14941494
let string_of_dimensions = dimensions =>
1495-
dimensions |> List.map(gridLengthToJs) |> String.concat(" ")
1495+
dimensions->List.map(gridLengthToJs)->String.concat(" ")
14961496

14971497
let gridTemplateColumns = dimensions => D("gridTemplateColumns", string_of_dimensions(dimensions))
14981498

@@ -1699,13 +1699,13 @@ let fontFace = (~fontFamily, ~src, ~fontStyle=?, ~fontWeight=?, ~fontDisplay=?,
16991699
let fontStyle = Js.Option.map((. value) => FontStyle.toString(value), fontStyle)
17001700
let src =
17011701
src
1702-
|> List.map(x =>
1702+
->List.map(x =>
17031703
switch x {
17041704
| #localUrl(value) => `local("$(value)")`
17051705
| #url(value) => `url("$(value)")`
17061706
}
17071707
)
1708-
|> String.concat(", ")
1708+
->String.concat(", ")
17091709

17101710
let fontStyle = Belt.Option.mapWithDefault(fontStyle, "", s => "font-style: " ++ (s ++ ";"))
17111711
let fontWeight = Belt.Option.mapWithDefault(fontWeight, "", w =>

0 commit comments

Comments
 (0)