d2/testdata/d2compiler/TestCompile/near_bad_connected.exp.json
2023-10-02 11:05:19 -07:00

302 lines
8.6 KiB
JSON
Generated

{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,0:0:0-5:3:52",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,1:4:5-3:5:37",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,1:4:5-1:5:6",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,1:4:5-1:5:6",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,1:7:8-3:5:37",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,2:5:15-2:21:31",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,2:5:15-2:9:19",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,2:5:15-2:9:19",
"value": [
{
"string": "near",
"raw_string": "near"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,2:11:21-2:21:31",
"value": [
{
"string": "top-center",
"raw_string": "top-center"
}
]
}
}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:4:42-4:10:48",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:4:42-4:10:48",
"src": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:4:42-4:5:43",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:4:42-4:5:43",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:9:47-4:10:48",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:9:47-4:10:48",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
],
"objects": [
{
"id": "x",
"id_val": "x",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,1:4:5-1:5:6",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.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_bad_connected.d2,4:4:42-4:5:43",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:4:42-4:5:43",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "x"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,2:11:21-2:21:31",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:10:10",
"value": [
{
"string": "top-center",
"raw_string": "top-center"
}
]
}
}
]
},
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "y",
"id_val": "y",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:9:47-4:10:48",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,4:9:47-4:10:48",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "y"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": null
}