1{
2 "graph": {
3 "name": "",
4 "isFolderOnly": false,
5 "ast": {
6 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,0:0:0-4:0:26",
7 "nodes": [
8 {
9 "map_key": {
10 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,0:0:0-0:1:1",
11 "key": {
12 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,0:0:0-0:1:1",
13 "path": [
14 {
15 "unquoted_string": {
16 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.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/flat_reparent_with_map_value.d2,1:0:2-3:1:25",
34 "key": {
35 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,1:0:2-1:1:3",
36 "path": [
37 {
38 "unquoted_string": {
39 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,1:0:2-1:1:3",
40 "value": [
41 {
42 "string": "b",
43 "raw_string": "b"
44 }
45 ]
46 }
47 }
48 ]
49 },
50 "primary": {},
51 "value": {
52 "map": {
53 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,1:3:5-3:1:25",
54 "nodes": [
55 {
56 "map_key": {
57 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,2:2:9-2:16:23",
58 "key": {
59 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,2:2:9-2:7:14",
60 "path": [
61 {
62 "unquoted_string": {
63 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,2:2:9-2:7:14",
64 "value": [
65 {
66 "string": "shape",
67 "raw_string": "shape"
68 }
69 ]
70 }
71 }
72 ]
73 },
74 "primary": {},
75 "value": {
76 "unquoted_string": {
77 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,2:9:16-2:16:23",
78 "value": [
79 {
80 "string": "hexagon",
81 "raw_string": "hexagon"
82 }
83 ]
84 }
85 }
86 }
87 }
88 ]
89 }
90 }
91 }
92 }
93 ]
94 },
95 "root": {
96 "id": "",
97 "id_val": "",
98 "attributes": {
99 "label": {
100 "value": ""
101 },
102 "labelDimensions": {
103 "width": 0,
104 "height": 0
105 },
106 "style": {},
107 "near_key": null,
108 "shape": {
109 "value": ""
110 },
111 "direction": {
112 "value": ""
113 },
114 "constraint": null
115 },
116 "zIndex": 0
117 },
118 "edges": null,
119 "objects": [
120 {
121 "id": "a",
122 "id_val": "a",
123 "references": [
124 {
125 "key": {
126 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,0:0:0-0:1:1",
127 "path": [
128 {
129 "unquoted_string": {
130 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,0:0:0-0:1:1",
131 "value": [
132 {
133 "string": "a",
134 "raw_string": "a"
135 }
136 ]
137 }
138 }
139 ]
140 },
141 "key_path_index": 0,
142 "map_key_edge_index": -1
143 }
144 ],
145 "attributes": {
146 "label": {
147 "value": "a"
148 },
149 "labelDimensions": {
150 "width": 0,
151 "height": 0
152 },
153 "style": {},
154 "near_key": null,
155 "shape": {
156 "value": "rectangle"
157 },
158 "direction": {
159 "value": ""
160 },
161 "constraint": null
162 },
163 "zIndex": 0
164 },
165 {
166 "id": "b",
167 "id_val": "b",
168 "references": [
169 {
170 "key": {
171 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,1:0:2-1:1:3",
172 "path": [
173 {
174 "unquoted_string": {
175 "range": "d2/testdata/d2oracle/TestMove/flat_reparent_with_map_value.d2,1:0:2-1:1:3",
176 "value": [
177 {
178 "string": "b",
179 "raw_string": "b"
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": "b"
193 },
194 "labelDimensions": {
195 "width": 0,
196 "height": 0
197 },
198 "style": {},
199 "near_key": null,
200 "shape": {
201 "value": "hexagon"
202 },
203 "direction": {
204 "value": ""
205 },
206 "constraint": null
207 },
208 "zIndex": 0
209 }
210 ]
211 },
212 "err": "<nil>"
213}
View as plain text