Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "TypeAlias",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
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":25,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":25,"index":25}},
22 "callProperties": [],
23 "properties": [],
24 "indexers": [],
25 "internalSlots": [
26 {
27 "type": "ObjectTypeInternalSlot",
28 "start":11,"end":23,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":23,"index":23}},
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": true,
36 "optional": false,
37 "value": {
38 "type": "FunctionTypeAnnotation",
39 "start":11,"end":23,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":23,"index":23}},
40 "params": [],
41 "rest": null,
42 "typeParameters": null,
43 "this": null,
44 "returnType": {
45 "type": "GenericTypeAnnotation",
46 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23}},
47 "typeParameters": null,
48 "id": {
49 "type": "Identifier",
50 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"X"},
51 "name": "X"
52 }
53 }
54 }
55 }
56 ],
57 "exact": false,
58 "inexact": false
59 }
60 }
61 ],
62 "directives": []
63 }
64 }