Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/smart-proposal-tacit-function-calls-chained-in-multiple-lines-inside-arrow-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
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":30,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":30,"index":30}},
29 "left": {
30 "type": "BinaryExpression",
31 "start":5,"end":20,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":20,"index":20}},
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": "PipelineBareFunction",
40 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20}},
41 "callee": {
42 "type": "MemberExpression",
43 "start":10,"end":20,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":20,"index":20}},
44 "object": {
45 "type": "Identifier",
46 "start":10,"end":16,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":16,"index":16},"identifierName":"number"},
47 "name": "number"
48 },
49 "computed": false,
50 "property": {
51 "type": "Identifier",
52 "start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20},"identifierName":"inc"},
53 "name": "inc"
54 }
55 }
56 }
57 },
58 "operator": "|>",
59 "right": {
60 "type": "PipelineBareFunction",
61 "start":24,"end":30,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":30,"index":30}},
62 "callee": {
63 "type": "Identifier",
64 "start":24,"end":30,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":30,"index":30},"identifierName":"double"},
65 "name": "double"
66 }
67 }
68 }
69 }
70 }
71 ],
72 "directives": []
73 }
74 }