Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/pipeline-operator/hack-hash-proposal-async-await/output.json

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