Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/decorators/static-method/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":38}},
13 "id": {
14 "type": "Identifier",
15 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
16 "name": "Foo"
17 },
18 "superClass": null,
19 "body": {
20 "type": "ClassBody",
21 "start":10,"end":38,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":4,"column":1,"index":38}},
22 "body": [
23 {
24 "type": "ClassMethod",
25 "start":14,"end":36,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":3,"column":17,"index":36}},
26 "decorators": [
27 {
28 "type": "Decorator",
29 "start":14,"end":18,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":6,"index":18}},
30 "expression": {
31 "type": "Identifier",
32 "start":15,"end":18,"loc":{"start":{"line":2,"column":3,"index":15},"end":{"line":2,"column":6,"index":18},"identifierName":"dec"},
33 "name": "dec"
34 }
35 }
36 ],
37 "static": true,
38 "key": {
39 "type": "Identifier",
40 "start":28,"end":31,"loc":{"start":{"line":3,"column":9,"index":28},"end":{"line":3,"column":12,"index":31},"identifierName":"bar"},
41 "name": "bar"
42 },
43 "computed": false,
44 "kind": "method",
45 "id": null,
46 "generator": false,
47 "async": false,
48 "params": [],
49 "body": {
50 "type": "BlockStatement",
51 "start":34,"end":36,"loc":{"start":{"line":3,"column":15,"index":34},"end":{"line":3,"column":17,"index":36}},
52 "body": [],
53 "directives": []
54 }
55 }
56 ]
57 }
58 }
59 ],
60 "directives": []
61 }
62 }