1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-1:0:83",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-0:6:6",
11 "edges": [
12 {
13 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-0:6:6",
14 "src": {
15 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-0:1:1",
16 "path": [
17 {
18 "unquoted_string": {
19 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-0:1:1",
20 "value": [
21 {
22 "string": "a",
23 "raw_string": "a"
24 }
25 ]
26 }
27 }
28 ]
29 },
30 "src_arrow": "",
31 "dst": {
32 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:5:5-0:6:6",
33 "path": [
34 {
35 "unquoted_string": {
36 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:5:5-0:6:6",
37 "value": [
38 {
39 "string": "b",
40 "raw_string": "b"
41 }
42 ]
43 }
44 }
45 ]
46 },
47 "dst_arrow": ">"
48 }
49 ],
50 "primary": {},
51 "value": {}
52 }
53 },
54 {
55 "map_key": {
56 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:8:8-0:82:82",
57 "key": {
58 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:8:8-0:9:9",
59 "path": [
60 {
61 "unquoted_string": {
62 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:8:8-0:9:9",
63 "value": [
64 {
65 "string": "a",
66 "raw_string": "a"
67 }
68 ]
69 }
70 }
71 ]
72 },
73 "primary": {},
74 "value": {
75 "unquoted_string": {
76 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:11:11-0:82:82",
77 "value": [
78 {
79 "string": "Never offend people with style when you can offend them with substance.",
80 "raw_string": "Never offend people with style when you can offend them with substance."
81 }
82 ]
83 }
84 }
85 }
86 }
87 ]
88 },
89 "root": {
90 "id": "",
91 "id_val": "",
92 "attributes": {
93 "label": {
94 "value": ""
95 },
96 "labelDimensions": {
97 "width": 0,
98 "height": 0
99 },
100 "style": {},
101 "near_key": null,
102 "shape": {
103 "value": ""
104 },
105 "direction": {
106 "value": ""
107 },
108 "constraint": null
109 },
110 "zIndex": 0
111 },
112 "edges": [
113 {
114 "index": 0,
115 "isCurve": false,
116 "src_arrow": false,
117 "dst_arrow": true,
118 "references": [
119 {
120 "map_key_edge_index": 0
121 }
122 ],
123 "attributes": {
124 "label": {
125 "value": ""
126 },
127 "labelDimensions": {
128 "width": 0,
129 "height": 0
130 },
131 "style": {},
132 "near_key": null,
133 "shape": {
134 "value": ""
135 },
136 "direction": {
137 "value": ""
138 },
139 "constraint": null
140 },
141 "zIndex": 0
142 }
143 ],
144 "objects": [
145 {
146 "id": "a",
147 "id_val": "a",
148 "references": [
149 {
150 "key": {
151 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-0:1:1",
152 "path": [
153 {
154 "unquoted_string": {
155 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:0:0-0:1:1",
156 "value": [
157 {
158 "string": "a",
159 "raw_string": "a"
160 }
161 ]
162 }
163 }
164 ]
165 },
166 "key_path_index": 0,
167 "map_key_edge_index": 0
168 },
169 {
170 "key": {
171 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:8:8-0:9:9",
172 "path": [
173 {
174 "unquoted_string": {
175 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:8:8-0:9:9",
176 "value": [
177 {
178 "string": "a",
179 "raw_string": "a"
180 }
181 ]
182 }
183 }
184 ]
185 },
186 "key_path_index": 0,
187 "map_key_edge_index": -1
188 }
189 ],
190 "attributes": {
191 "label": {
192 "value": "Never offend people with style when you can offend them with substance."
193 },
194 "labelDimensions": {
195 "width": 0,
196 "height": 0
197 },
198 "style": {},
199 "near_key": null,
200 "shape": {
201 "value": "rectangle"
202 },
203 "direction": {
204 "value": ""
205 },
206 "constraint": null
207 },
208 "zIndex": 0
209 },
210 {
211 "id": "b",
212 "id_val": "b",
213 "references": [
214 {
215 "key": {
216 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:5:5-0:6:6",
217 "path": [
218 {
219 "unquoted_string": {
220 "range": "d2/testdata/d2oracle/TestSet/map_key_missing.d2,0:5:5-0:6:6",
221 "value": [
222 {
223 "string": "b",
224 "raw_string": "b"
225 }
226 ]
227 }
228 }
229 ]
230 },
231 "key_path_index": 0,
232 "map_key_edge_index": 0
233 }
234 ],
235 "attributes": {
236 "label": {
237 "value": "b"
238 },
239 "labelDimensions": {
240 "width": 0,
241 "height": 0
242 },
243 "style": {},
244 "near_key": null,
245 "shape": {
246 "value": "rectangle"
247 },
248 "direction": {
249 "value": ""
250 },
251 "constraint": null
252 },
253 "zIndex": 0
254 }
255 ]
256 },
257 "err": "<nil>"
258}
View as plain text