d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.exp.json
Alexander Wang 524c089a74 oss
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00

591 lines
17 KiB
JSON

{
"graph": {
"ast": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-4:0:26",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:12:12",
"edges": [
{
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:12:12",
"src": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:4:4",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:1:1",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:2:2-0:3:3",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:6:6-0:12:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
"value": [
{
"string": "f",
"raw_string": "f"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-3:1:25",
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:3:16",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:1:14",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:2:15-1:3:16",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:5:18-3:0:24",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
"value": [
{
"string": "q",
"raw_string": "q"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"label_dimensions": {
"width": 0,
"height": 0
},
"attributes": {
"label": {
"value": ""
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
"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": ""
}
}
}
],
"objects": [
{
"id": "d",
"id_val": "d",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:3:16",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:1:14",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:2:15-1:3:16",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
},
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:6:6-0:12:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
"value": [
{
"string": "f",
"raw_string": "f"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "d"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "e",
"id_val": "e",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:3:16",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:0:13-1:1:14",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,1:2:15-1:3:16",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
},
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:6:6-0:12:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
"value": [
{
"string": "f",
"raw_string": "f"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "e"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "q",
"id_val": "q",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,2:2:22-2:3:23",
"value": [
{
"string": "q",
"raw_string": "q"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "q"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "a",
"id_val": "a",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:4:4",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:1:1",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:2:2-0:3:3",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "a"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "c",
"id_val": "c",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:4:4",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:0:0-0:1:1",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:2:2-0:3:3",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "c"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "f",
"id_val": "f",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:6:6-0:12:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:7:7-0:8:8",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:9:9-0:10:10",
"value": [
{
"string": "e",
"raw_string": "e"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/move_out_of_nested_edge.d2,0:11:11-0:12:12",
"value": [
{
"string": "f",
"raw_string": "f"
}
]
}
}
]
},
"key_path_index": 2,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "f"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
}
]
},
"err": "<nil>"
}