Debian Codegraph @

packages/babel-plugin-proposal-pipeline-operator/test/fixtures/fsharp/arrow-functions-parenless/exec.js

raw symbols SCIP
1 const y = 2;
2
3 const f = (x) => (x |> (y) => y + 1)
4 |> (z) => z * y
5
6 const _f = (x) => x
7 |> (y) => y + 1
8 |> (z) => z * y
9
10 const g = (x) => x
11 |> (y) => (y + 1 |> (z) => z * y)
12
13 const _g = (x) => x
14 |> (y => (y + 1 |> (z) => z * y))
15
16 const __g = (x) => x
17 |> (
18 y => {
19 return (y + 1 |> (z) => z * y);
20 }
21 )
22
23 expect( f(1)).toBe(4);
24 expect( _f(1)).toBe(4);
25 expect( g(1)).toBe(2);
26 expect( _g(1)).toBe(2);
27 expect(__g(1)).toBe(2);