d2/testdata/d2compiler/TestCompile/underscore_edge_nested.exp.json

395 lines
13 KiB
JSON
Raw Normal View History

{
"graph": {
"name": "",
2023-02-27 22:33:33 +00:00
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,0:0:0-6:0:32",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,1:0:1-5:1:31",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,1:0:1-1:1:2",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,1:3:4-5:1:31",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,2:1:7-4:2:29",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,2:1:7-2:2:8",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,2:1:7-2:2:8",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,2:4:10-4:2:29",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:2:14-3:14:26",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:2:14-3:14:26",
"src": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:2:14-3:7:19",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:2:14-3:3:15",
"value": [
{
"string": "_",
"raw_string": "_"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:4:16-3:5:17",
"value": [
{
"string": "_",
"raw_string": "_"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:6:18-3:7:19",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:11:23-3:14:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:11:23-3:12:24",
"value": [
{
"string": "_",
"raw_string": "_"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:13:25-3:14:26",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-29 05:01:42 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
}
],
"objects": [
{
"id": "x",
"id_val": "x",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,1:0:1-1:1:2",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "x"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
},
{
"id": "y",
"id_val": "y",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,2:1:7-2:2:8",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,2:1:7-2:2:8",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:11:23-3:14:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:11:23-3:12:24",
"value": [
{
"string": "_",
"raw_string": "_"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:13:25-3:14:26",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "y"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
},
{
"id": "z",
"id_val": "z",
"references": [
{
"key": {
2023-05-05 16:11:46 +00:00
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:2:14-3:7:19",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:2:14-3:3:15",
"value": [
{
"string": "_",
"raw_string": "_"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:4:16-3:5:17",
"value": [
{
"string": "_",
"raw_string": "_"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/underscore_edge_nested.d2,3:6:18-3:7:19",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
}
]
},
"key_path_index": 2,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "z"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
2022-11-29 05:01:42 +00:00
},
2022-11-30 00:02:37 +00:00
"direction": {
2022-11-30 01:59:27 +00:00
"value": ""
},
2023-06-03 12:05:18 +00:00
"constraint": null
2022-11-30 19:23:30 +00:00
},
"zIndex": 0
}
]
},
"err": null
}