Debian Codegraph @

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

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