{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,0:0:0-5:3:39", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,1:4:5-3:5:22", "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,1:4:5-1:5:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,1:4:5-1:5:6", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,1:7:8-3:4:21", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,2:5:15-2:6:16", "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,2:5:15-2:6:16", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,2:5:15-2:6:16", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "primary": {}, "value": {} } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:12:35", "edges": [ { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:12:35", "src": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:8:31", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:5:28", "value": [ { "string": "x", "raw_string": "x" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:6:29-4:7:30", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "src_arrow": "", "dst": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:10:33-4:12:35", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:11:34-4:12:35", "value": [ { "string": "z", "raw_string": "z" } ] } } ] }, "dst_arrow": ">" } ], "primary": {}, "value": {} } } ] }, "root": { "id": "", "id_val": "", "label_dimensions": { "width": 0, "height": 0 }, "attributes": { "label": { "value": "" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": { "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 } ], "attributes": { "label": { "value": "" }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 } ], "objects": [ { "id": "x", "id_val": "x", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,1:4:5-1:5:6", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,1:4:5-1:5:6", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:8:31", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:5:28", "value": [ { "string": "x", "raw_string": "x" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:6:29-4:7:30", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "x" }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 }, { "id": "y", "id_val": "y", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,2:5:15-2:6:16", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,2:5:15-2:6:16", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 }, { "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:8:31", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:4:27-4:5:28", "value": [ { "string": "x", "raw_string": "x" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:6:29-4:7:30", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 1, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "y" }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 }, { "id": "z", "id_val": "z", "label_dimensions": { "width": 0, "height": 0 }, "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:10:33-4:12:35", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/near_descendant_conent_to_outside.d2,4:11:34-4:12:35", "value": [ { "string": "z", "raw_string": "z" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": 0 } ], "attributes": { "label": { "value": "z" }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 } ] }, "err": null }