Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/valid-class-in-module-blocks/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":103,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":103}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":103,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":103}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":103,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":10,"column":1,"index":103}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"B"},
16 "name": "B"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":8,"end":103,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":10,"column":1,"index":103}},
22 "body": [
23 {
24 "type": "ClassPrivateMethod",
25 "start":12,"end":101,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":9,"column":3,"index":101}},
26 "static": false,
27 "key": {
28 "type": "PrivateName",
29 "start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
30 "id": {
31 "type": "Identifier",
32 "start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"p"},
33 "name": "p"
34 }
35 },
36 "kind": "method",
37 "id": null,
38 "generator": false,
39 "async": false,
40 "params": [],
41 "body": {
42 "type": "BlockStatement",
43 "start":17,"end":101,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":9,"column":3,"index":101}},
44 "body": [
45 {
46 "type": "ExpressionStatement",
47 "start":23,"end":97,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":8,"column":6,"index":97}},
48 "expression": {
49 "type": "ModuleExpression",
50 "start":23,"end":96,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":8,"column":5,"index":96}},
51 "body": {
52 "type": "Program",
53 "start":31,"end":95,"loc":{"start":{"line":3,"column":12,"index":31},"end":{"line":8,"column":4,"index":95}},
54 "sourceType": "module",
55 "interpreter": null,
56 "body": [
57 {
58 "type": "ClassDeclaration",
59 "start":38,"end":90,"loc":{"start":{"line":4,"column":6,"index":38},"end":{"line":7,"column":7,"index":90}},
60 "id": {
61 "type": "Identifier",
62 "start":44,"end":45,"loc":{"start":{"line":4,"column":12,"index":44},"end":{"line":4,"column":13,"index":45},"identifierName":"C"},
63 "name": "C"
64 },
65 "superClass": null,
66 "body": {
67 "type": "ClassBody",
68 "start":46,"end":90,"loc":{"start":{"line":4,"column":14,"index":46},"end":{"line":7,"column":7,"index":90}},
69 "body": [
70 {
71 "type": "ClassProperty",
72 "start":56,"end":66,"loc":{"start":{"line":5,"column":8,"index":56},"end":{"line":5,"column":18,"index":66}},
73 "static": false,
74 "computed": true,
75 "key": {
76 "type": "MemberExpression",
77 "start":57,"end":64,"loc":{"start":{"line":5,"column":9,"index":57},"end":{"line":5,"column":16,"index":64}},
78 "object": {
79 "type": "ThisExpression",
80 "start":57,"end":61,"loc":{"start":{"line":5,"column":9,"index":57},"end":{"line":5,"column":13,"index":61}}
81 },
82 "computed": false,
83 "property": {
84 "type": "PrivateName",
85 "start":62,"end":64,"loc":{"start":{"line":5,"column":14,"index":62},"end":{"line":5,"column":16,"index":64}},
86 "id": {
87 "type": "Identifier",
88 "start":63,"end":64,"loc":{"start":{"line":5,"column":15,"index":63},"end":{"line":5,"column":16,"index":64},"identifierName":"p"},
89 "name": "p"
90 }
91 }
92 },
93 "value": null
94 },
95 {
96 "type": "ClassPrivateProperty",
97 "start":75,"end":82,"loc":{"start":{"line":6,"column":8,"index":75},"end":{"line":6,"column":15,"index":82}},
98 "static": false,
99 "key": {
100 "type": "PrivateName",
101 "start":75,"end":77,"loc":{"start":{"line":6,"column":8,"index":75},"end":{"line":6,"column":10,"index":77}},
102 "id": {
103 "type": "Identifier",
104 "start":76,"end":77,"loc":{"start":{"line":6,"column":9,"index":76},"end":{"line":6,"column":10,"index":77},"identifierName":"p"},
105 "name": "p"
106 }
107 },
108 "value": {
109 "type": "NumericLiteral",
110 "start":80,"end":81,"loc":{"start":{"line":6,"column":13,"index":80},"end":{"line":6,"column":14,"index":81}},
111 "extra": {
112 "rawValue": 3,
113 "raw": "3"
114 },
115 "value": 3
116 }
117 }
118 ]
119 }
120 }
121 ],
122 "directives": []
123 }
124 }
125 }
126 ],
127 "directives": []
128 }
129 }
130 ]
131 }
132 }
133 ],
134 "directives": []
135 }
136 }