1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:0:0-8:0:72",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:0:0-3:1:26",
11 "key": {
12 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:0:0-0:1:1",
13 "path": [
14 {
15 "unquoted_string": {
16 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:0:0-0:1:1",
17 "value": [
18 {
19 "string": "a",
20 "raw_string": "a"
21 }
22 ]
23 }
24 }
25 ]
26 },
27 "primary": {},
28 "value": {
29 "map": {
30 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:3:3-3:1:26",
31 "nodes": [
32 {
33 "comment": {
34 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,1:2:7-1:15:20",
35 "value": "this is not"
36 }
37 },
38 {
39 "map_key": {
40 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,2:2:23-2:3:24",
41 "key": {
42 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,2:2:23-2:3:24",
43 "path": [
44 {
45 "unquoted_string": {
46 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,2:2:23-2:3:24",
47 "value": [
48 {
49 "string": "c",
50 "raw_string": "c"
51 }
52 ]
53 }
54 }
55 ]
56 },
57 "primary": {},
58 "value": {}
59 }
60 }
61 ]
62 }
63 }
64 }
65 },
66 {
67 "map_key": {
68 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,4:0:27-7:1:71",
69 "key": {
70 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,4:0:27-4:1:28",
71 "path": [
72 {
73 "unquoted_string": {
74 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,4:0:27-4:1:28",
75 "value": [
76 {
77 "string": "b",
78 "raw_string": "b"
79 }
80 ]
81 }
82 }
83 ]
84 },
85 "primary": {},
86 "value": {
87 "map": {
88 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,4:3:30-7:1:71",
89 "nodes": [
90 {
91 "comment": {
92 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,5:2:34-5:20:52",
93 "value": "this is reserved"
94 }
95 },
96 {
97 "map_key": {
98 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,6:2:55-6:16:69",
99 "key": {
100 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,6:2:55-6:7:60",
101 "path": [
102 {
103 "unquoted_string": {
104 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,6:2:55-6:7:60",
105 "value": [
106 {
107 "string": "shape",
108 "raw_string": "shape"
109 }
110 ]
111 }
112 }
113 ]
114 },
115 "primary": {},
116 "value": {
117 "unquoted_string": {
118 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,6:9:62-6:16:69",
119 "value": [
120 {
121 "string": "hexagon",
122 "raw_string": "hexagon"
123 }
124 ]
125 }
126 }
127 }
128 }
129 ]
130 }
131 }
132 }
133 }
134 ]
135 },
136 "root": {
137 "id": "",
138 "id_val": "",
139 "attributes": {
140 "label": {
141 "value": ""
142 },
143 "labelDimensions": {
144 "width": 0,
145 "height": 0
146 },
147 "style": {},
148 "near_key": null,
149 "shape": {
150 "value": ""
151 },
152 "direction": {
153 "value": ""
154 },
155 "constraint": null
156 },
157 "zIndex": 0
158 },
159 "edges": null,
160 "objects": [
161 {
162 "id": "a",
163 "id_val": "a",
164 "references": [
165 {
166 "key": {
167 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:0:0-0:1:1",
168 "path": [
169 {
170 "unquoted_string": {
171 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,0:0:0-0:1:1",
172 "value": [
173 {
174 "string": "a",
175 "raw_string": "a"
176 }
177 ]
178 }
179 }
180 ]
181 },
182 "key_path_index": 0,
183 "map_key_edge_index": -1
184 }
185 ],
186 "attributes": {
187 "label": {
188 "value": "a"
189 },
190 "labelDimensions": {
191 "width": 0,
192 "height": 0
193 },
194 "style": {},
195 "near_key": null,
196 "shape": {
197 "value": "rectangle"
198 },
199 "direction": {
200 "value": ""
201 },
202 "constraint": null
203 },
204 "zIndex": 0
205 },
206 {
207 "id": "c",
208 "id_val": "c",
209 "references": [
210 {
211 "key": {
212 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,2:2:23-2:3:24",
213 "path": [
214 {
215 "unquoted_string": {
216 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,2:2:23-2:3:24",
217 "value": [
218 {
219 "string": "c",
220 "raw_string": "c"
221 }
222 ]
223 }
224 }
225 ]
226 },
227 "key_path_index": 0,
228 "map_key_edge_index": -1
229 }
230 ],
231 "attributes": {
232 "label": {
233 "value": "c"
234 },
235 "labelDimensions": {
236 "width": 0,
237 "height": 0
238 },
239 "style": {},
240 "near_key": null,
241 "shape": {
242 "value": "rectangle"
243 },
244 "direction": {
245 "value": ""
246 },
247 "constraint": null
248 },
249 "zIndex": 0
250 },
251 {
252 "id": "b",
253 "id_val": "b",
254 "references": [
255 {
256 "key": {
257 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,4:0:27-4:1:28",
258 "path": [
259 {
260 "unquoted_string": {
261 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_mixed_map_value.d2,4:0:27-4:1:28",
262 "value": [
263 {
264 "string": "b",
265 "raw_string": "b"
266 }
267 ]
268 }
269 }
270 ]
271 },
272 "key_path_index": 0,
273 "map_key_edge_index": -1
274 }
275 ],
276 "attributes": {
277 "label": {
278 "value": "b"
279 },
280 "labelDimensions": {
281 "width": 0,
282 "height": 0
283 },
284 "style": {},
285 "near_key": null,
286 "shape": {
287 "value": "hexagon"
288 },
289 "direction": {
290 "value": ""
291 },
292 "constraint": null
293 },
294 "zIndex": 0
295 }
296 ]
297 },
298 "err": "<nil>"
299}
View as plain text