d2/testdata/d2compiler/TestCompile/edge_in_column.exp.json
2022-11-29 17:59:27 -08:00

224 lines
7.8 KiB
JSON
Generated

{
"graph": {
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:0:0-3:1:39",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:0:0-3:1:39",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:3:3-3:0:38",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,1:2:7-1:18:23",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,1:2:7-1:7:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,1:2:7-1:7:12",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,1:9:14-1:18:23",
"value": [
{
"string": "sql_table",
"raw_string": "sql_table"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:2:26-2:13:37",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:2:26-2:3:27",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:2:26-2:3:27",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:5:29-2:12:36",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:6:30-2:12:36",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:6:30-2:12:36",
"src": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:6:30-2:8:32",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:6:30-2:7:31",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:10:34-2:12:36",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,2:11:35-2:12:36",
"value": [
{
"string": "q",
"raw_string": "q"
}
]
}
}
]
},
"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": ""
}
}
},
"edges": [],
"objects": [
{
"id": "x",
"id_val": "x",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_in_column.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"sql_table": {
"columns": [
{
"name": "x",
"type": "",
"constraint": "",
"reference": ""
}
]
},
"attributes": {
"label": {
"value": "x"
},
"style": {},
"near_key": null,
"shape": {
"value": "sql_table"
},
"direction": {
"value": ""
}
}
}
]
},
"err": null
}