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