436 lines
13 KiB
JSON
Generated
436 lines
13 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"ast": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,0:0:0-5:0:50",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,1:0:1-3:1:16",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,1:0:1-1:1:2",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,1:0:1-1:1:2",
|
|
"value": [
|
|
{
|
|
"string": "x",
|
|
"raw_string": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,1:3:4-3:0:15",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:2:8-2:8:14",
|
|
"edges": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:2:8-2:8:14",
|
|
"src": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:2:8-2:4:10",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:2:8-2:3:9",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"src_arrow": "",
|
|
"dst": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:6:12-2:8:14",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:7:13-2:8:14",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dst_arrow": ">"
|
|
}
|
|
],
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:0:17-4:32:49",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:0:17-4:2:19",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:0:17-4:1:18",
|
|
"value": [
|
|
{
|
|
"string": "x",
|
|
"raw_string": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"edges": [
|
|
{
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:3:20-4:9:26",
|
|
"src": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:3:20-4:5:22",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:3:20-4:4:21",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"src_arrow": "",
|
|
"dst": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:7:24-4:9:26",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:8:25-4:9:26",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dst_arrow": ">"
|
|
}
|
|
],
|
|
"edge_index": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:10:27-4:13:30",
|
|
"int": 0,
|
|
"glob": false
|
|
},
|
|
"edge_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:14:31-4:27:44",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:14:31-4:19:36",
|
|
"value": [
|
|
{
|
|
"string": "style",
|
|
"raw_string": "style"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:20:37-4:27:44",
|
|
"value": [
|
|
{
|
|
"string": "opacity",
|
|
"raw_string": "opacity"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"number": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:29:46-4:32:49",
|
|
"raw": "0.4",
|
|
"value": "2/5"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"root": {
|
|
"id": "",
|
|
"id_val": "",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"attributes": {
|
|
"label": {
|
|
"value": ""
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"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
|
|
},
|
|
{
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": ""
|
|
},
|
|
"style": {
|
|
"opacity": {
|
|
"value": "0.4"
|
|
}
|
|
},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"objects": [
|
|
{
|
|
"id": "x",
|
|
"id_val": "x",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,1:0:1-1:1:2",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,1:0:1-1:1:2",
|
|
"value": [
|
|
{
|
|
"string": "x",
|
|
"raw_string": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
},
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:0:17-4:2:19",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:0:17-4:1:18",
|
|
"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": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "a",
|
|
"id_val": "a",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:2:8-2:4:10",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:2:8-2:3:9",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
},
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:3:20-4:5:22",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:3:20-4:4:21",
|
|
"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": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "b",
|
|
"id_val": "b",
|
|
"label_dimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:6:12-2:8:14",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,2:7:13-2:8:14",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
},
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:7:24-4:9:26",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/edge_key_group_flat_nested.d2,4:8:25-4:9:26",
|
|
"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": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"err": null
|
|
}
|