Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":21}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":21}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":10,"index":21}},
13 "decorators": [
14 {
15 "type": "Decorator",
16 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
17 "expression": {
18 "type": "Placeholder",
19 "start":2,"end":9,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":9,"index":9}},
20 "name": {
21 "type": "Identifier",
22 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"FOO"},
23 "name": "FOO"
24 },
25 "expectedNode": "Expression",
26 "extra": {
27 "parenthesized": true,
28 "parenStart": 1
29 }
30 }
31 }
32 ],
33 "id": {
34 "type": "Identifier",
35 "start":17,"end":18,"loc":{"start":{"line":2,"column":6,"index":17},"end":{"line":2,"column":7,"index":18},"identifierName":"A"},
36 "name": "A"
37 },
38 "superClass": null,
39 "body": {
40 "type": "ClassBody",
41 "start":19,"end":21,"loc":{"start":{"line":2,"column":8,"index":19},"end":{"line":2,"column":10,"index":21}},
42 "body": []
43 }
44 }
45 ],
46 "directives": []
47 }
48 }