429 lines
13 KiB
JSON
Generated
429 lines
13 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"name": "",
|
|
"isFolderOnly": false,
|
|
"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": "",
|
|
"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
|
|
},
|
|
{
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "two"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
],
|
|
"objects": [
|
|
{
|
|
"id": "b",
|
|
"id_val": "b",
|
|
"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": -1
|
|
},
|
|
{
|
|
"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": -1
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "b"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
{
|
|
"id": "x",
|
|
"id_val": "x",
|
|
"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"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
{
|
|
"id": "y",
|
|
"id_val": "y",
|
|
"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"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
]
|
|
},
|
|
"err": null
|
|
}
|