Debian Codegraph @

packages/babel-parser/test/fixtures/flow/declare-statements/14/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":38,"index":63}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":38,"index":63}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "DeclareTypeAlias",
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":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"A"},
16 "name": "A"
17 },
18 "typeParameters": null,
19 "right": {
20 "type": "StringTypeAnnotation",
21 "start":17,"end":23,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":23,"index":23}}
22 }
23 },
24 {
25 "type": "DeclareTypeAlias",
26 "start":25,"end":63,"loc":{"start":{"line":2,"column":0,"index":25},"end":{"line":2,"column":38,"index":63}},
27 "id": {
28 "type": "Identifier",
29 "start":38,"end":39,"loc":{"start":{"line":2,"column":13,"index":38},"end":{"line":2,"column":14,"index":39},"identifierName":"T"},
30 "name": "T"
31 },
32 "typeParameters": {
33 "type": "TypeParameterDeclaration",
34 "start":39,"end":42,"loc":{"start":{"line":2,"column":14,"index":39},"end":{"line":2,"column":17,"index":42}},
35 "params": [
36 {
37 "type": "TypeParameter",
38 "start":40,"end":41,"loc":{"start":{"line":2,"column":15,"index":40},"end":{"line":2,"column":16,"index":41}},
39 "name": "U",
40 "variance": null
41 }
42 ]
43 },
44 "right": {
45 "type": "ObjectTypeAnnotation",
46 "start":45,"end":62,"loc":{"start":{"line":2,"column":20,"index":45},"end":{"line":2,"column":37,"index":62}},
47 "callProperties": [],
48 "properties": [],
49 "indexers": [
50 {
51 "type": "ObjectTypeIndexer",
52 "start":47,"end":60,"loc":{"start":{"line":2,"column":22,"index":47},"end":{"line":2,"column":35,"index":60}},
53 "static": false,
54 "id": {
55 "type": "Identifier",
56 "start":48,"end":49,"loc":{"start":{"line":2,"column":23,"index":48},"end":{"line":2,"column":24,"index":49},"identifierName":"k"},
57 "name": "k"
58 },
59 "key": {
60 "type": "StringTypeAnnotation",
61 "start":50,"end":56,"loc":{"start":{"line":2,"column":25,"index":50},"end":{"line":2,"column":31,"index":56}}
62 },
63 "value": {
64 "type": "GenericTypeAnnotation",
65 "start":59,"end":60,"loc":{"start":{"line":2,"column":34,"index":59},"end":{"line":2,"column":35,"index":60}},
66 "typeParameters": null,
67 "id": {
68 "type": "Identifier",
69 "start":59,"end":60,"loc":{"start":{"line":2,"column":34,"index":59},"end":{"line":2,"column":35,"index":60},"identifierName":"U"},
70 "name": "U"
71 }
72 },
73 "variance": null
74 }
75 ],
76 "internalSlots": [],
77 "exact": false,
78 "inexact": false
79 }
80 }
81 ],
82 "directives": []
83 }
84 }