Debian Codegraph @

packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":33,"index":84}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":84,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":33,"index":84}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "TypeAlias",
12 "start":8,"end":23,"loc":{"start":{"line":2,"column":0,"index":8},"end":{"line":2,"column":15,"index":23}},
13 "id": {
14 "type": "Identifier",
15 "start":13,"end":14,"loc":{"start":{"line":2,"column":5,"index":13},"end":{"line":2,"column":6,"index":14},"identifierName":"T"},
16 "name": "T"
17 },
18 "typeParameters": null,
19 "right": {
20 "type": "ObjectTypeAnnotation",
21 "start":17,"end":22,"loc":{"start":{"line":2,"column":9,"index":17},"end":{"line":2,"column":14,"index":22}},
22 "callProperties": [],
23 "properties": [],
24 "indexers": [],
25 "internalSlots": [],
26 "exact": false,
27 "inexact": true
28 },
29 "leadingComments": [
30 {
31 "type": "CommentLine",
32 "value": "@flow",
33 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
34 }
35 ]
36 },
37 {
38 "type": "TypeAlias",
39 "start":24,"end":50,"loc":{"start":{"line":3,"column":0,"index":24},"end":{"line":3,"column":26,"index":50}},
40 "id": {
41 "type": "Identifier",
42 "start":29,"end":30,"loc":{"start":{"line":3,"column":5,"index":29},"end":{"line":3,"column":6,"index":30},"identifierName":"U"},
43 "name": "U"
44 },
45 "typeParameters": null,
46 "right": {
47 "type": "ObjectTypeAnnotation",
48 "start":33,"end":49,"loc":{"start":{"line":3,"column":9,"index":33},"end":{"line":3,"column":25,"index":49}},
49 "callProperties": [],
50 "properties": [
51 {
52 "type": "ObjectTypeProperty",
53 "start":34,"end":43,"loc":{"start":{"line":3,"column":10,"index":34},"end":{"line":3,"column":19,"index":43}},
54 "key": {
55 "type": "Identifier",
56 "start":34,"end":35,"loc":{"start":{"line":3,"column":10,"index":34},"end":{"line":3,"column":11,"index":35},"identifierName":"x"},
57 "name": "x"
58 },
59 "static": false,
60 "proto": false,
61 "kind": "init",
62 "method": false,
63 "value": {
64 "type": "NumberTypeAnnotation",
65 "start":37,"end":43,"loc":{"start":{"line":3,"column":13,"index":37},"end":{"line":3,"column":19,"index":43}}
66 },
67 "variance": null,
68 "optional": false
69 }
70 ],
71 "indexers": [],
72 "internalSlots": [],
73 "exact": false,
74 "inexact": true
75 }
76 },
77 {
78 "type": "TypeAlias",
79 "start":51,"end":84,"loc":{"start":{"line":4,"column":0,"index":51},"end":{"line":4,"column":33,"index":84}},
80 "id": {
81 "type": "Identifier",
82 "start":56,"end":57,"loc":{"start":{"line":4,"column":5,"index":56},"end":{"line":4,"column":6,"index":57},"identifierName":"V"},
83 "name": "V"
84 },
85 "typeParameters": null,
86 "right": {
87 "type": "ObjectTypeAnnotation",
88 "start":60,"end":83,"loc":{"start":{"line":4,"column":9,"index":60},"end":{"line":4,"column":32,"index":83}},
89 "callProperties": [],
90 "properties": [
91 {
92 "type": "ObjectTypeProperty",
93 "start":61,"end":70,"loc":{"start":{"line":4,"column":10,"index":61},"end":{"line":4,"column":19,"index":70}},
94 "key": {
95 "type": "Identifier",
96 "start":61,"end":62,"loc":{"start":{"line":4,"column":10,"index":61},"end":{"line":4,"column":11,"index":62},"identifierName":"x"},
97 "name": "x"
98 },
99 "static": false,
100 "proto": false,
101 "kind": "init",
102 "method": false,
103 "value": {
104 "type": "NumberTypeAnnotation",
105 "start":64,"end":70,"loc":{"start":{"line":4,"column":13,"index":64},"end":{"line":4,"column":19,"index":70}}
106 },
107 "variance": null,
108 "optional": false
109 },
110 {
111 "type": "ObjectTypeSpreadProperty",
112 "start":72,"end":76,"loc":{"start":{"line":4,"column":21,"index":72},"end":{"line":4,"column":25,"index":76}},
113 "argument": {
114 "type": "GenericTypeAnnotation",
115 "start":75,"end":76,"loc":{"start":{"line":4,"column":24,"index":75},"end":{"line":4,"column":25,"index":76}},
116 "typeParameters": null,
117 "id": {
118 "type": "Identifier",
119 "start":75,"end":76,"loc":{"start":{"line":4,"column":24,"index":75},"end":{"line":4,"column":25,"index":76},"identifierName":"V"},
120 "name": "V"
121 }
122 }
123 },
124 {
125 "type": "ObjectTypeSpreadProperty",
126 "start":78,"end":82,"loc":{"start":{"line":4,"column":27,"index":78},"end":{"line":4,"column":31,"index":82}},
127 "argument": {
128 "type": "GenericTypeAnnotation",
129 "start":81,"end":82,"loc":{"start":{"line":4,"column":30,"index":81},"end":{"line":4,"column":31,"index":82}},
130 "typeParameters": null,
131 "id": {
132 "type": "Identifier",
133 "start":81,"end":82,"loc":{"start":{"line":4,"column":30,"index":81},"end":{"line":4,"column":31,"index":82},"identifierName":"U"},
134 "name": "U"
135 }
136 }
137 }
138 ],
139 "indexers": [],
140 "internalSlots": [],
141 "exact": false,
142 "inexact": false
143 }
144 }
145 ],
146 "directives": []
147 },
148 "comments": [
149 {
150 "type": "CommentLine",
151 "value": "@flow",
152 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
153 }
154 ]
155 }