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