Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-percent-proposal-function-definition-with-topic-in-default-parameter/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
13 "expression": {
14 "type": "BinaryExpression",
15 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
16 "left": {
17 "type": "Identifier",
18 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5},"identifierName":"value"},
19 "name": "value"
20 },
21 "operator": "|>",
22 "right": {
23 "type": "FunctionExpression",
24 "start":9,"end":39,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":39,"index":39}},
25 "id": null,
26 "generator": false,
27 "async": false,
28 "params": [
29 {
30 "type": "AssignmentPattern",
31 "start":19,"end":24,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":24,"index":24}},
32 "left": {
33 "type": "Identifier",
34 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20},"identifierName":"x"},
35 "name": "x"
36 },
37 "right": {
38 "type": "TopicReference",
39 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24}}
40 }
41 }
42 ],
43 "body": {
44 "type": "BlockStatement",
45 "start":26,"end":39,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":39,"index":39}},
46 "body": [
47 {
48 "type": "ReturnStatement",
49 "start":28,"end":37,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":37,"index":37}},
50 "argument": {
51 "type": "Identifier",
52 "start":35,"end":36,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":36,"index":36},"identifierName":"x"},
53 "name": "x"
54 }
55 }
56 ],
57 "directives": []
58 }
59 }
60 }
61 }
62 ],
63 "directives": []
64 }
65 }