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