Debian Codegraph @

packages/babel-parser/test/fixtures/flow/class-private-property/variance/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":29}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":29}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ClassDeclaration",
12 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":29}},
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":29,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":29}},
22 "body": [
23 {
24 "type": "ClassPrivateProperty",
25 "start":12,"end":18,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":8,"index":18}},
26 "static": false,
27 "variance": {
28 "type": "Variance",
29 "start":12,"end":13,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":3,"index":13}},
30 "kind": "plus"
31 },
32 "key": {
33 "type": "PrivateName",
34 "start":13,"end":17,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":7,"index":17}},
35 "id": {
36 "type": "Identifier",
37 "start":14,"end":17,"loc":{"start":{"line":2,"column":4,"index":14},"end":{"line":2,"column":7,"index":17},"identifierName":"foo"},
38 "name": "foo"
39 }
40 },
41 "value": null
42 },
43 {
44 "type": "ClassPrivateProperty",
45 "start":21,"end":27,"loc":{"start":{"line":3,"column":2,"index":21},"end":{"line":3,"column":8,"index":27}},
46 "static": false,
47 "variance": {
48 "type": "Variance",
49 "start":21,"end":22,"loc":{"start":{"line":3,"column":2,"index":21},"end":{"line":3,"column":3,"index":22}},
50 "kind": "minus"
51 },
52 "key": {
53 "type": "PrivateName",
54 "start":22,"end":26,"loc":{"start":{"line":3,"column":3,"index":22},"end":{"line":3,"column":7,"index":26}},
55 "id": {
56 "type": "Identifier",
57 "start":23,"end":26,"loc":{"start":{"line":3,"column":4,"index":23},"end":{"line":3,"column":7,"index":26},"identifierName":"bar"},
58 "name": "bar"
59 }
60 },
61 "value": null
62 }
63 ]
64 }
65 }
66 ],
67 "directives": []
68 }
69 }