Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-class/migrated_0021/output.json

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