Debian Codegraph @

packages/babel-parser/test/fixtures/placeholders/class/body_expression/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
13 "expression": {
14 "type": "UnaryExpression",
15 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
16 "operator": "void",
17 "prefix": true,
18 "argument": {
19 "type": "ClassExpression",
20 "start":5,"end":19,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":19,"index":19}},
21 "id": null,
22 "body": {
23 "type": "Placeholder",
24 "start":11,"end":19,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":19,"index":19}},
25 "name": {
26 "type": "Identifier",
27 "start":13,"end":17,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":17,"index":17},"identifierName":"BODY"},
28 "name": "BODY"
29 },
30 "expectedNode": "ClassBody"
31 }
32 }
33 }
34 }
35 ],
36 "directives": []
37 }
38 }