d2/testdata/d2oracle/TestMove/partial_edge_slice.exp.json

292 lines
7.7 KiB
JSON
Raw Normal View History

{
"graph": {
"ast": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,0:0:0-3:0:11",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,0:0:0-0:1:1",
"key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,0:0:0-0:1:1",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:0:2-1:6:8",
"edges": [
{
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:0:2-1:6:8",
"src": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:0:2-1:2:4",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:0:2-1:1:3",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:4:6-1:6:8",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:5:7-1:6:8",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,2:0:9-2:1:10",
"key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,2:0:9-2:1:10",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,2:0:9-2:1:10",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"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": "a",
"id_val": "a",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,0:0:0-0:1:1",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "a"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
},
{
"id": "b",
"id_val": "b",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,2:0:9-2:1:10",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,2:0:9-2:1:10",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
},
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:0:2-1:2:4",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:0:2-1:1:3",
"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": ""
}
}
},
{
"id": "c",
"id_val": "c",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:4:6-1:6:8",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2oracle/TestMove/partial_edge_slice.d2,1:5:7-1:6:8",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "c"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
}
]
},
"err": "<nil>"
}