Debian Codegraph @

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

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