Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/fsharp-proposal-arrow-and-array-in-body-with-operator/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": "Identifier",
31 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"x"},
32 "name": "x"
33 },
34 "operator": "|>",
35 "right": {
36 "type": "ArrayExpression",
37 "start":10,"end":36,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":36,"index":36}},
38 "elements": [
39 {
40 "type": "ArrowFunctionExpression",
41 "start":11,"end":35,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":35,"index":35}},
42 "id": null,
43 "generator": false,
44 "async": false,
45 "params": [
46 {
47 "type": "Identifier",
48 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"y"},
49 "name": "y"
50 }
51 ],
52 "body": {
53 "type": "BinaryExpression",
54 "start":16,"end":35,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":35,"index":35}},
55 "left": {
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 "operator": "|>",
75 "right": {
76 "type": "ArrowFunctionExpression",
77 "start":25,"end":35,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":35,"index":35}},
78 "id": null,
79 "generator": false,
80 "async": false,
81 "params": [
82 {
83 "type": "Identifier",
84 "start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26},"identifierName":"z"},
85 "name": "z"
86 }
87 ],
88 "body": {
89 "type": "BinaryExpression",
90 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
91 "left": {
92 "type": "Identifier",
93 "start":30,"end":31,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":31,"index":31},"identifierName":"z"},
94 "name": "z"
95 },
96 "operator": "*",
97 "right": {
98 "type": "NumericLiteral",
99 "start":34,"end":35,"loc":{"start":{"line":1,"column":34,"index":34},"end":{"line":1,"column":35,"index":35}},
100 "extra": {
101 "rawValue": 2,
102 "raw": "2"
103 },
104 "value": 2
105 }
106 }
107 }
108 }
109 }
110 ]
111 }
112 }
113 }
114 }
115 ],
116 "directives": []
117 }
118 }