1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-4:0:30",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-3:1:29",
11 "key": {
12 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-0:3:3",
13 "path": [
14 {
15 "unquoted_string": {
16 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-0:1:1",
17 "value": [
18 {
19 "string": "x",
20 "raw_string": "x"
21 }
22 ]
23 }
24 },
25 {
26 "unquoted_string": {
27 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:2:2-0:3:3",
28 "value": [
29 {
30 "string": "q",
31 "raw_string": "q"
32 }
33 ]
34 }
35 }
36 ]
37 },
38 "primary": {},
39 "value": {
40 "map": {
41 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:5:5-3:1:29",
42 "nodes": [
43 {
44 "map_key": {
45 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,1:2:9-1:11:18",
46 "key": {
47 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,1:2:9-1:11:18",
48 "path": [
49 {
50 "unquoted_string": {
51 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,1:2:9-1:11:18",
52 "value": [
53 {
54 "string": "what's up",
55 "raw_string": "what's up"
56 }
57 ]
58 }
59 }
60 ]
61 },
62 "primary": {},
63 "value": {}
64 }
65 },
66 {
67 "map_key": {
68 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:2:21-2:8:27",
69 "edges": [
70 {
71 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:2:21-2:8:27",
72 "src": {
73 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:2:21-2:3:22",
74 "path": [
75 {
76 "unquoted_string": {
77 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:2:21-2:3:22",
78 "value": [
79 {
80 "string": "x",
81 "raw_string": "x"
82 }
83 ]
84 }
85 }
86 ]
87 },
88 "src_arrow": "",
89 "dst": {
90 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:7:26-2:8:27",
91 "path": [
92 {
93 "unquoted_string": {
94 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:7:26-2:8:27",
95 "value": [
96 {
97 "string": "y",
98 "raw_string": "y"
99 }
100 ]
101 }
102 }
103 ]
104 },
105 "dst_arrow": ">"
106 }
107 ],
108 "primary": {},
109 "value": {}
110 }
111 }
112 ]
113 }
114 }
115 }
116 }
117 ]
118 },
119 "root": {
120 "id": "",
121 "id_val": "",
122 "attributes": {
123 "label": {
124 "value": ""
125 },
126 "labelDimensions": {
127 "width": 0,
128 "height": 0
129 },
130 "style": {},
131 "near_key": null,
132 "shape": {
133 "value": ""
134 },
135 "direction": {
136 "value": ""
137 },
138 "constraint": null
139 },
140 "zIndex": 0
141 },
142 "edges": [
143 {
144 "index": 0,
145 "isCurve": false,
146 "src_arrow": false,
147 "dst_arrow": true,
148 "references": [
149 {
150 "map_key_edge_index": 0
151 }
152 ],
153 "attributes": {
154 "label": {
155 "value": ""
156 },
157 "labelDimensions": {
158 "width": 0,
159 "height": 0
160 },
161 "style": {},
162 "near_key": null,
163 "shape": {
164 "value": ""
165 },
166 "direction": {
167 "value": ""
168 },
169 "constraint": null
170 },
171 "zIndex": 0
172 }
173 ],
174 "objects": [
175 {
176 "id": "x",
177 "id_val": "x",
178 "references": [
179 {
180 "key": {
181 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-0:3:3",
182 "path": [
183 {
184 "unquoted_string": {
185 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-0:1:1",
186 "value": [
187 {
188 "string": "x",
189 "raw_string": "x"
190 }
191 ]
192 }
193 },
194 {
195 "unquoted_string": {
196 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:2:2-0:3:3",
197 "value": [
198 {
199 "string": "q",
200 "raw_string": "q"
201 }
202 ]
203 }
204 }
205 ]
206 },
207 "key_path_index": 0,
208 "map_key_edge_index": -1
209 }
210 ],
211 "attributes": {
212 "label": {
213 "value": "x"
214 },
215 "labelDimensions": {
216 "width": 0,
217 "height": 0
218 },
219 "style": {},
220 "near_key": null,
221 "shape": {
222 "value": "rectangle"
223 },
224 "direction": {
225 "value": ""
226 },
227 "constraint": null
228 },
229 "zIndex": 0
230 },
231 {
232 "id": "q",
233 "id_val": "q",
234 "references": [
235 {
236 "key": {
237 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-0:3:3",
238 "path": [
239 {
240 "unquoted_string": {
241 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:0:0-0:1:1",
242 "value": [
243 {
244 "string": "x",
245 "raw_string": "x"
246 }
247 ]
248 }
249 },
250 {
251 "unquoted_string": {
252 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,0:2:2-0:3:3",
253 "value": [
254 {
255 "string": "q",
256 "raw_string": "q"
257 }
258 ]
259 }
260 }
261 ]
262 },
263 "key_path_index": 1,
264 "map_key_edge_index": -1
265 }
266 ],
267 "attributes": {
268 "label": {
269 "value": "q"
270 },
271 "labelDimensions": {
272 "width": 0,
273 "height": 0
274 },
275 "style": {},
276 "near_key": null,
277 "shape": {
278 "value": "rectangle"
279 },
280 "direction": {
281 "value": ""
282 },
283 "constraint": null
284 },
285 "zIndex": 0
286 },
287 {
288 "id": "\"what's up\"",
289 "id_val": "what's up",
290 "references": [
291 {
292 "key": {
293 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,1:2:9-1:11:18",
294 "path": [
295 {
296 "unquoted_string": {
297 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,1:2:9-1:11:18",
298 "value": [
299 {
300 "string": "what's up",
301 "raw_string": "what's up"
302 }
303 ]
304 }
305 }
306 ]
307 },
308 "key_path_index": 0,
309 "map_key_edge_index": -1
310 }
311 ],
312 "attributes": {
313 "label": {
314 "value": "what's up"
315 },
316 "labelDimensions": {
317 "width": 0,
318 "height": 0
319 },
320 "style": {},
321 "near_key": null,
322 "shape": {
323 "value": "rectangle"
324 },
325 "direction": {
326 "value": ""
327 },
328 "constraint": null
329 },
330 "zIndex": 0
331 },
332 {
333 "id": "x",
334 "id_val": "x",
335 "references": [
336 {
337 "key": {
338 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:2:21-2:3:22",
339 "path": [
340 {
341 "unquoted_string": {
342 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:2:21-2:3:22",
343 "value": [
344 {
345 "string": "x",
346 "raw_string": "x"
347 }
348 ]
349 }
350 }
351 ]
352 },
353 "key_path_index": 0,
354 "map_key_edge_index": 0
355 }
356 ],
357 "attributes": {
358 "label": {
359 "value": "x"
360 },
361 "labelDimensions": {
362 "width": 0,
363 "height": 0
364 },
365 "style": {},
366 "near_key": null,
367 "shape": {
368 "value": "rectangle"
369 },
370 "direction": {
371 "value": ""
372 },
373 "constraint": null
374 },
375 "zIndex": 0
376 },
377 {
378 "id": "y",
379 "id_val": "y",
380 "references": [
381 {
382 "key": {
383 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:7:26-2:8:27",
384 "path": [
385 {
386 "unquoted_string": {
387 "range": "d2/testdata/d2oracle/TestDelete/children_scope.d2,2:7:26-2:8:27",
388 "value": [
389 {
390 "string": "y",
391 "raw_string": "y"
392 }
393 ]
394 }
395 }
396 ]
397 },
398 "key_path_index": 0,
399 "map_key_edge_index": 0
400 }
401 ],
402 "attributes": {
403 "label": {
404 "value": "y"
405 },
406 "labelDimensions": {
407 "width": 0,
408 "height": 0
409 },
410 "style": {},
411 "near_key": null,
412 "shape": {
413 "value": "rectangle"
414 },
415 "direction": {
416 "value": ""
417 },
418 "constraint": null
419 },
420 "zIndex": 0
421 }
422 ]
423 },
424 "err": "<nil>"
425}
View as plain text