d2/testdata/d2compiler/TestCompile/set_direction.exp.json

140 lines
3.9 KiB
JSON
Raw Normal View History

2022-11-30 00:02:37 +00:00
{
"graph": {
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:0:0-2:1:24",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:0:0-2:1:24",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:3:3-2:0:23",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,1:2:7-1:17:22",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,1:2:7-1:11:16",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,1:2:7-1:11:16",
"value": [
{
"string": "direction",
"raw_string": "direction"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,1:13:18-1:17:22",
"value": [
{
"string": "left",
"raw_string": "left"
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"label_dimensions": {
"width": 0,
"height": 0
},
"attributes": {
"label": {
"value": ""
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
2022-11-30 00:13:34 +00:00
"value": "down"
2022-11-30 00:02:37 +00:00
}
}
},
"edges": null,
"objects": [
{
"id": "x",
"id_val": "x",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/set_direction.d2,0:0:0-0:1:1",
"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": "left"
}
}
}
]
},
"err": null
}