2022-11-03 13:54:49 +00:00
|
|
|
{
|
|
|
|
|
"graph": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"name": "",
|
2023-02-27 22:33:33 +00:00
|
|
|
"isFolderOnly": false,
|
2022-11-03 13:54:49 +00:00
|
|
|
"ast": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-3:0:18",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-2:1:17",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-0:3:3",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:2:2-0:3:3",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-06-06 22:48:14 +00:00
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:5:5-2:1:17",
|
2022-11-03 13:54:49 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:2:9-1:8:15",
|
|
|
|
|
"edges": [
|
|
|
|
|
{
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:2:9-1:8:15",
|
|
|
|
|
"src": {
|
2023-05-05 16:11:46 +00:00
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:2:9-1:3:10",
|
2022-11-03 13:54:49 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:2:9-1:3:10",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "z",
|
|
|
|
|
"raw_string": "z"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"src_arrow": "",
|
|
|
|
|
"dst": {
|
2023-05-05 16:11:46 +00:00
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:7:14-1:8:15",
|
2022-11-03 13:54:49 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:7:14-1:8:15",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "q",
|
|
|
|
|
"raw_string": "q"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"dst_arrow": ">"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"root": {
|
|
|
|
|
"id": "",
|
|
|
|
|
"id_val": "",
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:49:30 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
|
|
|
|
"edges": [
|
|
|
|
|
{
|
|
|
|
|
"index": 0,
|
|
|
|
|
"isCurve": false,
|
|
|
|
|
"src_arrow": false,
|
|
|
|
|
"dst_arrow": true,
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"map_key_edge_index": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:49:30 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-29 05:49:30 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"objects": [
|
|
|
|
|
{
|
|
|
|
|
"id": "x",
|
|
|
|
|
"id_val": "x",
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-0:3:3",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:2:2-0:3:3",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
2023-01-24 11:09:40 +00:00
|
|
|
"map_key_edge_index": -1
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "x"
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"value": "rectangle"
|
2022-11-29 05:49:30 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "y",
|
|
|
|
|
"id_val": "y",
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-0:3:3",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,0:2:2-0:3:3",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 1,
|
2023-01-24 11:09:40 +00:00
|
|
|
"map_key_edge_index": -1
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "y"
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"value": "rectangle"
|
2022-11-29 05:49:30 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "z",
|
|
|
|
|
"id_val": "z",
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
2023-05-05 16:11:46 +00:00
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:2:9-1:3:10",
|
2022-11-03 13:54:49 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:2:9-1:3:10",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "z",
|
|
|
|
|
"raw_string": "z"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "z"
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"value": "rectangle"
|
2022-11-29 05:49:30 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "q",
|
|
|
|
|
"id_val": "q",
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
2023-05-05 16:11:46 +00:00
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:7:14-1:8:15",
|
2022-11-03 13:54:49 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2oracle/TestCreate/edge_scope_nested.d2,1:7:14-1:8:15",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "q",
|
|
|
|
|
"raw_string": "q"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "q"
|
|
|
|
|
},
|
2023-04-14 03:09:40 +00:00
|
|
|
"labelDimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
2022-11-03 13:54:49 +00:00
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
2023-01-24 11:09:40 +00:00
|
|
|
"value": "rectangle"
|
2022-11-29 05:49:30 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2023-01-24 11:09:40 +00:00
|
|
|
},
|
2023-06-03 12:05:18 +00:00
|
|
|
"constraint": null
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"err": "<nil>"
|
|
|
|
|
}
|