{ "graph": { "ast": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,0:0:0-5:0:39", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,1:0:1-4:1:38", "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,1:0:1-1:1:2", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,1:0:1-1:1:2", "value": [ { "string": "b", "raw_string": "b" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,1:3:4-4:0:37", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:1:7-2:12:18", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:1:7-2:7:13", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:1:7-2:3:9", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:1:7-2:2:8", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:5:11-2:7:13", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:6:12-2:7:13", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:9:15-2:12:18", "value": [ { "string": "one", "raw_string": "one" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:1:20-3:17:36", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:2:21-3:8:27", "src": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:2:21-3:4:23", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:2:21-3:3:22", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:6:25-3:8:27", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:7:26-3:8:27", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "dst_arrow": ">" } ], "edge_index": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:9:28-3:12:31", "int": 0, "glob": false }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:14:33-3:17:36", "value": [ { "string": "two", "raw_string": "two" } ] } } } } ] } } } } ] }, "root": { "id": "", "id_val": "", "label_dimensions": { "width": 0, "height": 0 }, "attributes": { "label": { "value": "" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 }, "edges": [ { "index": 0, "minWidth": 0, "minHeight": 0, "label_dimensions": { "width": 0, "height": 0 }, "isCurve": false, "src_arrow": false, "dst_arrow": true, "references": [ { "map_key_edge_index": 0 }, { "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "two" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 } ], "objects": [ { "id": "b", "id_val": "b", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,1:0:1-1:1:2", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,1:0:1-1:1:2", "value": [ { "string": "b", "raw_string": "b" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "b" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 }, { "id": "x", "id_val": "x", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:1:7-2:3:9", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:1:7-2:2:8", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:2:21-3:4:23", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:2:21-3:3:22", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "x" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 }, { "id": "y", "id_val": "y", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:5:11-2:7:13", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,2:6:12-2:7:13", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:6:25-3:8:27", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/edge_index_nested.d2,3:7:26-3:8:27", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "y" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" } }, "zIndex": 0 } ] }, "err": null }