d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.exp.json
Alexander Wang 524c089a74 oss
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00

404 lines
12 KiB
JSON
Generated

{
"graph": {
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,0:0:0-5:0:40",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,1:0:1-3:1:20",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,1:0:1-1:1:2",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,1:3:4-3:0:19",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:1:7-2:12:18",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:1:7-2:7:13",
"src": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:1:7-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:1:7-2:2:8",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:5:11-2:7:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:6:12-2:7:13",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:9:15-2:12:18",
"value": [
{
"string": "one",
"raw_string": "one"
}
]
}
}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:0:21-4:18:39",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:0:21-4:2:23",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:0:21-4:1:22",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:3:24-4:9:30",
"src": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:3:24-4:5:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:3:24-4:4:25",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:7:28-4:9:30",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:8:29-4:9:30",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:10:31-4:13:34",
"int": 0,
"glob": false
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:15:36-4:18:39",
"value": [
{
"string": "two",
"raw_string": "two"
}
]
}
}
}
}
]
},
"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
},
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "two"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
}
],
"objects": [
{
"id": "b",
"id_val": "b",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,1:0:1-1:1:2",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:0:21-4:2:23",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:0:21-4:1:22",
"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": "x",
"id_val": "x",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:1:7-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:1:7-2:2:8",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:3:24-4:5:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:3:24-4:4:25",
"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": ""
}
}
},
{
"id": "y",
"id_val": "y",
"label_dimensions": {
"width": 0,
"height": 0
},
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:5:11-2:7:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,2:6:12-2:7:13",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:7:28-4:9:30",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/edge_index_nested_cross_scope.d2,4:8:29-4:9:30",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "y"
},
"style": {},
"near_key": null,
"shape": {
"value": ""
}
}
}
]
},
"err": null
}