Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-hash-proposal-yield-generator-parenthesized/output.json

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