1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-4:0:26",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:12:12",
11 "edges": [
12 {
13 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:12:12",
14 "src": {
15 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:3:3",
16 "path": [
17 {
18 "unquoted_string": {
19 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:1:1",
20 "value": [
21 {
22 "string": "a",
23 "raw_string": "a"
24 }
25 ]
26 }
27 },
28 {
29 "unquoted_string": {
30 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:2:2-0:3:3",
31 "value": [
32 {
33 "string": "c",
34 "raw_string": "c"
35 }
36 ]
37 }
38 }
39 ]
40 },
41 "src_arrow": "",
42 "dst": {
43 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:12:12",
44 "path": [
45 {
46 "unquoted_string": {
47 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
48 "value": [
49 {
50 "string": "d",
51 "raw_string": "d"
52 }
53 ]
54 }
55 },
56 {
57 "unquoted_string": {
58 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
59 "value": [
60 {
61 "string": "e",
62 "raw_string": "e"
63 }
64 ]
65 }
66 },
67 {
68 "unquoted_string": {
69 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
70 "value": [
71 {
72 "string": "f",
73 "raw_string": "f"
74 }
75 ]
76 }
77 }
78 ]
79 },
80 "dst_arrow": ">"
81 }
82 ],
83 "primary": {},
84 "value": {}
85 }
86 },
87 {
88 "map_key": {
89 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-3:1:25",
90 "key": {
91 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:3:16",
92 "path": [
93 {
94 "unquoted_string": {
95 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:1:14",
96 "value": [
97 {
98 "string": "d",
99 "raw_string": "d"
100 }
101 ]
102 }
103 },
104 {
105 "unquoted_string": {
106 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:2:15-1:3:16",
107 "value": [
108 {
109 "string": "e",
110 "raw_string": "e"
111 }
112 ]
113 }
114 }
115 ]
116 },
117 "primary": {},
118 "value": {
119 "map": {
120 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:5:18-3:1:25",
121 "nodes": [
122 {
123 "map_key": {
124 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
125 "key": {
126 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
127 "path": [
128 {
129 "unquoted_string": {
130 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
131 "value": [
132 {
133 "string": "q",
134 "raw_string": "q"
135 }
136 ]
137 }
138 }
139 ]
140 },
141 "primary": {},
142 "value": {}
143 }
144 }
145 ]
146 }
147 }
148 }
149 }
150 ]
151 },
152 "root": {
153 "id": "",
154 "id_val": "",
155 "attributes": {
156 "label": {
157 "value": ""
158 },
159 "labelDimensions": {
160 "width": 0,
161 "height": 0
162 },
163 "style": {},
164 "near_key": null,
165 "shape": {
166 "value": ""
167 },
168 "direction": {
169 "value": ""
170 },
171 "constraint": null
172 },
173 "zIndex": 0
174 },
175 "edges": [
176 {
177 "index": 0,
178 "isCurve": false,
179 "src_arrow": false,
180 "dst_arrow": true,
181 "references": [
182 {
183 "map_key_edge_index": 0
184 }
185 ],
186 "attributes": {
187 "label": {
188 "value": ""
189 },
190 "labelDimensions": {
191 "width": 0,
192 "height": 0
193 },
194 "style": {},
195 "near_key": null,
196 "shape": {
197 "value": ""
198 },
199 "direction": {
200 "value": ""
201 },
202 "constraint": null
203 },
204 "zIndex": 0
205 }
206 ],
207 "objects": [
208 {
209 "id": "a",
210 "id_val": "a",
211 "references": [
212 {
213 "key": {
214 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:3:3",
215 "path": [
216 {
217 "unquoted_string": {
218 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:1:1",
219 "value": [
220 {
221 "string": "a",
222 "raw_string": "a"
223 }
224 ]
225 }
226 },
227 {
228 "unquoted_string": {
229 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:2:2-0:3:3",
230 "value": [
231 {
232 "string": "c",
233 "raw_string": "c"
234 }
235 ]
236 }
237 }
238 ]
239 },
240 "key_path_index": 0,
241 "map_key_edge_index": 0
242 }
243 ],
244 "attributes": {
245 "label": {
246 "value": "a"
247 },
248 "labelDimensions": {
249 "width": 0,
250 "height": 0
251 },
252 "style": {},
253 "near_key": null,
254 "shape": {
255 "value": "rectangle"
256 },
257 "direction": {
258 "value": ""
259 },
260 "constraint": null
261 },
262 "zIndex": 0
263 },
264 {
265 "id": "c",
266 "id_val": "c",
267 "references": [
268 {
269 "key": {
270 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:3:3",
271 "path": [
272 {
273 "unquoted_string": {
274 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:1:1",
275 "value": [
276 {
277 "string": "a",
278 "raw_string": "a"
279 }
280 ]
281 }
282 },
283 {
284 "unquoted_string": {
285 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:2:2-0:3:3",
286 "value": [
287 {
288 "string": "c",
289 "raw_string": "c"
290 }
291 ]
292 }
293 }
294 ]
295 },
296 "key_path_index": 1,
297 "map_key_edge_index": 0
298 }
299 ],
300 "attributes": {
301 "label": {
302 "value": "c"
303 },
304 "labelDimensions": {
305 "width": 0,
306 "height": 0
307 },
308 "style": {},
309 "near_key": null,
310 "shape": {
311 "value": "rectangle"
312 },
313 "direction": {
314 "value": ""
315 },
316 "constraint": null
317 },
318 "zIndex": 0
319 },
320 {
321 "id": "d",
322 "id_val": "d",
323 "references": [
324 {
325 "key": {
326 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:12:12",
327 "path": [
328 {
329 "unquoted_string": {
330 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
331 "value": [
332 {
333 "string": "d",
334 "raw_string": "d"
335 }
336 ]
337 }
338 },
339 {
340 "unquoted_string": {
341 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
342 "value": [
343 {
344 "string": "e",
345 "raw_string": "e"
346 }
347 ]
348 }
349 },
350 {
351 "unquoted_string": {
352 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
353 "value": [
354 {
355 "string": "f",
356 "raw_string": "f"
357 }
358 ]
359 }
360 }
361 ]
362 },
363 "key_path_index": 0,
364 "map_key_edge_index": 0
365 },
366 {
367 "key": {
368 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:3:16",
369 "path": [
370 {
371 "unquoted_string": {
372 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:1:14",
373 "value": [
374 {
375 "string": "d",
376 "raw_string": "d"
377 }
378 ]
379 }
380 },
381 {
382 "unquoted_string": {
383 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:2:15-1:3:16",
384 "value": [
385 {
386 "string": "e",
387 "raw_string": "e"
388 }
389 ]
390 }
391 }
392 ]
393 },
394 "key_path_index": 0,
395 "map_key_edge_index": -1
396 }
397 ],
398 "attributes": {
399 "label": {
400 "value": "d"
401 },
402 "labelDimensions": {
403 "width": 0,
404 "height": 0
405 },
406 "style": {},
407 "near_key": null,
408 "shape": {
409 "value": "rectangle"
410 },
411 "direction": {
412 "value": ""
413 },
414 "constraint": null
415 },
416 "zIndex": 0
417 },
418 {
419 "id": "e",
420 "id_val": "e",
421 "references": [
422 {
423 "key": {
424 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:12:12",
425 "path": [
426 {
427 "unquoted_string": {
428 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
429 "value": [
430 {
431 "string": "d",
432 "raw_string": "d"
433 }
434 ]
435 }
436 },
437 {
438 "unquoted_string": {
439 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
440 "value": [
441 {
442 "string": "e",
443 "raw_string": "e"
444 }
445 ]
446 }
447 },
448 {
449 "unquoted_string": {
450 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
451 "value": [
452 {
453 "string": "f",
454 "raw_string": "f"
455 }
456 ]
457 }
458 }
459 ]
460 },
461 "key_path_index": 1,
462 "map_key_edge_index": 0
463 },
464 {
465 "key": {
466 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:3:16",
467 "path": [
468 {
469 "unquoted_string": {
470 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:1:14",
471 "value": [
472 {
473 "string": "d",
474 "raw_string": "d"
475 }
476 ]
477 }
478 },
479 {
480 "unquoted_string": {
481 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:2:15-1:3:16",
482 "value": [
483 {
484 "string": "e",
485 "raw_string": "e"
486 }
487 ]
488 }
489 }
490 ]
491 },
492 "key_path_index": 1,
493 "map_key_edge_index": -1
494 }
495 ],
496 "attributes": {
497 "label": {
498 "value": "e"
499 },
500 "labelDimensions": {
501 "width": 0,
502 "height": 0
503 },
504 "style": {},
505 "near_key": null,
506 "shape": {
507 "value": "rectangle"
508 },
509 "direction": {
510 "value": ""
511 },
512 "constraint": null
513 },
514 "zIndex": 0
515 },
516 {
517 "id": "f",
518 "id_val": "f",
519 "references": [
520 {
521 "key": {
522 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:12:12",
523 "path": [
524 {
525 "unquoted_string": {
526 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
527 "value": [
528 {
529 "string": "d",
530 "raw_string": "d"
531 }
532 ]
533 }
534 },
535 {
536 "unquoted_string": {
537 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
538 "value": [
539 {
540 "string": "e",
541 "raw_string": "e"
542 }
543 ]
544 }
545 },
546 {
547 "unquoted_string": {
548 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
549 "value": [
550 {
551 "string": "f",
552 "raw_string": "f"
553 }
554 ]
555 }
556 }
557 ]
558 },
559 "key_path_index": 2,
560 "map_key_edge_index": 0
561 }
562 ],
563 "attributes": {
564 "label": {
565 "value": "f"
566 },
567 "labelDimensions": {
568 "width": 0,
569 "height": 0
570 },
571 "style": {},
572 "near_key": null,
573 "shape": {
574 "value": "rectangle"
575 },
576 "direction": {
577 "value": ""
578 },
579 "constraint": null
580 },
581 "zIndex": 0
582 },
583 {
584 "id": "q",
585 "id_val": "q",
586 "references": [
587 {
588 "key": {
589 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
590 "path": [
591 {
592 "unquoted_string": {
593 "range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
594 "value": [
595 {
596 "string": "q",
597 "raw_string": "q"
598 }
599 ]
600 }
601 }
602 ]
603 },
604 "key_path_index": 0,
605 "map_key_edge_index": -1
606 }
607 ],
608 "attributes": {
609 "label": {
610 "value": "q"
611 },
612 "labelDimensions": {
613 "width": 0,
614 "height": 0
615 },
616 "style": {},
617 "near_key": null,
618 "shape": {
619 "value": "rectangle"
620 },
621 "direction": {
622 "value": ""
623 },
624 "constraint": null
625 },
626 "zIndex": 0
627 }
628 ]
629 },
630 "err": "<nil>"
631}
View as plain text