Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/fsharp-proposal-arrow-and-array-in-body/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [
20 {
21 "type": "Identifier",
22 "start":0,"end":1,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":1,"index":1},"identifierName":"x"},
23 "name": "x"
24 }
25 ],
26 "body": {
27 "type": "BinaryExpression",
28 "start":5,"end":36,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":36,"index":36}},
29 "left": {
30 "type": "BinaryExpression",
31 "start":5,"end":22,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":22,"index":22}},
32 "left": {
33 "type": "Identifier",
34 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"x"},
35 "name": "x"
36 },
37 "operator": "|>",
38 "right": {
39 "type": "ArrayExpression",
40 "start":10,"end":22,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":22,"index":22}},
41 "elements": [
42 {
43 "type": "ArrowFunctionExpression",
44 "start":11,"end":21,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":21,"index":21}},
45 "id": null,
46 "generator": false,
47 "async": false,
48 "params": [
49 {
50 "type": "Identifier",
51 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"y"},
52 "name": "y"
53 }
54 ],
55 "body": {
56 "type": "BinaryExpression",
57 "start":16,"end":21,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":21,"index":21}},
58 "left": {
59 "type": "Identifier",
60 "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"y"},
61 "name": "y"
62 },
63 "operator": "+",
64 "right": {
65 "type": "NumericLiteral",
66 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21}},
67 "extra": {
68 "rawValue": 1,
69 "raw": "1"
70 },
71 "value": 1
72 }
73 }
74 }
75 ]
76 }
77 },
78 "operator": "|>",
79 "right": {
80 "type": "ArrowFunctionExpression",
81 "start":26,"end":36,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":36,"index":36}},
82 "id": null,
83 "generator": false,
84 "async": false,
85 "params": [
86 {
87 "type": "Identifier",
88 "start":26,"end":27,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":27,"index":27},"identifierName":"z"},
89 "name": "z"
90 }
91 ],
92 "body": {
93 "type": "BinaryExpression",
94 "start":31,"end":36,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":36,"index":36}},
95 "left": {
96 "type": "Identifier",
97 "start":31,"end":32,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":32,"index":32},"identifierName":"z"},
98 "name": "z"
99 },
100 "operator": "*",
101 "right": {
102 "type": "NumericLiteral",
103 "start":35,"end":36,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":36,"index":36}},
104 "extra": {
105 "rawValue": 2,
106 "raw": "2"
107 },
108 "value": 2
109 }
110 }
111 }
112 }
113 }
114 }
115 ],
116 "directives": []
117 }
118 }