Debian Codegraph @

packages/babel-parser/test/fixtures/flow/class-properties/declare-after-decorators/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":30}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":30}},
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":30,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":30}},
22 "body": [
23 {
24 "type": "ClassProperty",
25 "start":12,"end":28,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":18,"index":28}},
26 "decorators": [
27 {
28 "type": "Decorator",
29 "start":12,"end":16,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":6,"index":16}},
30 "expression": {
31 "type": "Identifier",
32 "start":13,"end":16,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":6,"index":16},"identifierName":"dec"},
33 "name": "dec"
34 }
35 }
36 ],
37 "declare": true,
38 "static": false,
39 "variance": null,
40 "key": {
41 "type": "Identifier",
42 "start":25,"end":28,"loc":{"start":{"line":2,"column":15,"index":25},"end":{"line":2,"column":18,"index":28},"identifierName":"foo"},
43 "name": "foo"
44 },
45 "computed": false,
46 "value": null
47 }
48 ]
49 }
50 }
51 ],
52 "directives": []
53 }
54 }