Debian Codegraph @

packages/babel-parser/test/fixtures/flow/class-properties/named-static/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareClass",
12 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
13 "id": {
14 "type": "Identifier",
15 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"A"},
16 "name": "A"
17 },
18 "typeParameters": null,
19 "extends": [],
20 "implements": [],
21 "mixins": [],
22 "body": {
23 "type": "ObjectTypeAnnotation",
24 "start":16,"end":32,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":32}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":20,"end":29,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":11,"index":29}},
30 "key": {
31 "type": "Identifier",
32 "start":20,"end":26,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":8,"index":26},"identifierName":"static"},
33 "name": "static"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": false,
39 "value": {
40 "type": "GenericTypeAnnotation",
41 "start":28,"end":29,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":11,"index":29}},
42 "typeParameters": null,
43 "id": {
44 "type": "Identifier",
45 "start":28,"end":29,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":11,"index":29},"identifierName":"T"},
46 "name": "T"
47 }
48 },
49 "variance": null,
50 "optional": false
51 }
52 ],
53 "indexers": [],
54 "internalSlots": [],
55 "exact": false
56 }
57 }
58 ],
59 "directives": []
60 }
61 }