Debian Codegraph @

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

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