Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-private-properties/await-in-private-property-in-async/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":97,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":97}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":97,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":97}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":97,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":97}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":97,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":97}},
16 "id": null,
17 "generator": false,
18 "async": true,
19 "params": [],
20 "body": {
21 "type": "BlockStatement",
22 "start":12,"end":97,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":6,"column":1,"index":97}},
23 "body": [
24 {
25 "type": "ClassDeclaration",
26 "start":16,"end":95,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":5,"column":3,"index":95}},
27 "id": {
28 "type": "Identifier",
29 "start":22,"end":23,"loc":{"start":{"line":2,"column":8,"index":22},"end":{"line":2,"column":9,"index":23},"identifierName":"C"},
30 "name": "C"
31 },
32 "superClass": null,
33 "body": {
34 "type": "ClassBody",
35 "start":24,"end":95,"loc":{"start":{"line":2,"column":10,"index":24},"end":{"line":5,"column":3,"index":95}},
36 "body": [
37 {
38 "type": "ClassPrivateProperty",
39 "start":75,"end":91,"loc":{"start":{"line":4,"column":4,"index":75},"end":{"line":4,"column":20,"index":91}},
40 "static": false,
41 "key": {
42 "type": "PrivateName",
43 "start":75,"end":77,"loc":{"start":{"line":4,"column":4,"index":75},"end":{"line":4,"column":6,"index":77}},
44 "id": {
45 "type": "Identifier",
46 "start":76,"end":77,"loc":{"start":{"line":4,"column":5,"index":76},"end":{"line":4,"column":6,"index":77},"identifierName":"p"},
47 "name": "p"
48 }
49 },
50 "value": {
51 "type": "BinaryExpression",
52 "start":80,"end":90,"loc":{"start":{"line":4,"column":9,"index":80},"end":{"line":4,"column":19,"index":90}},
53 "left": {
54 "type": "Identifier",
55 "start":80,"end":85,"loc":{"start":{"line":4,"column":9,"index":80},"end":{"line":4,"column":14,"index":85},"identifierName":"await"},
56 "name": "await"
57 },
58 "operator": "+",
59 "right": {
60 "type": "NumericLiteral",
61 "start":88,"end":90,"loc":{"start":{"line":4,"column":17,"index":88},"end":{"line":4,"column":19,"index":90}},
62 "extra": {
63 "rawValue": 42,
64 "raw": "42"
65 },
66 "value": 42
67 }
68 },
69 "leadingComments": [
70 {
71 "type": "CommentLine",
72 "value": " here await is an identifier reference",
73 "start":30,"end":70,"loc":{"start":{"line":3,"column":4,"index":30},"end":{"line":3,"column":44,"index":70}}
74 }
75 ]
76 }
77 ]
78 }
79 }
80 ],
81 "directives": []
82 }
83 }
84 }
85 ],
86 "directives": []
87 },
88 "comments": [
89 {
90 "type": "CommentLine",
91 "value": " here await is an identifier reference",
92 "start":30,"end":70,"loc":{"start":{"line":3,"column":4,"index":30},"end":{"line":3,"column":44,"index":70}}
93 }
94 ]
95 }