Debian Codegraph @

packages/babel-plugin-proposal-pipeline-operator/test/fixtures/minimal/arrow-functions-parenless/input.js

raw symbols SCIP
1 const y = 2;
2 const f = (x) => x
3 |> (y => y + 1)
4 |> (z => z * y)
5
6 const g = (x) => x
7 |> (y =>
8 y + 1
9 |> (z => z * y)
10 )
11
12 const h = (x) => x
13 |> (y => (
14 y + 1
15 |> (z => z * y)
16 ))
17
18 expect(f(1)).toBe(4);
19 expect(g(1)).toBe(2);
20 expect(h(1)).toBe(2);