Debian Codegraph @

packages/babel-parser/test/fixtures/flow/internal-slot/object-optional/output.json

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