d2/testdata/d2oracle/TestUpdateImport/nested_import.exp.json

338 lines
8.6 KiB
JSON
Raw Normal View History

2025-04-29 15:40:45 +00:00
{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "index.d2,0:0:0-4:0:30",
"nodes": [
{
"map_key": {
"range": "index.d2,0:0:0-3:1:29",
"key": {
"range": "index.d2,0:0:0-0:9:9",
"path": [
{
"unquoted_string": {
"range": "index.d2,0:0:0-0:9:9",
"value": [
{
"string": "container",
"raw_string": "container"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "index.d2,0:11:11-3:1:29",
"nodes": [
{
"map_key": {
"range": "index.d2,1:2:15-1:10:23",
"key": {
"range": "index.d2,1:2:15-1:3:16",
"path": [
{
"unquoted_string": {
"range": "index.d2,1:2:15-1:3:16",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"import": {
"range": "index.d2,1:5:18-1:10:23",
"spread": false,
"pre": "",
"path": [
{
"unquoted_string": {
"range": "index.d2,1:6:19-1:10:23",
"value": [
{
"string": "woof",
"raw_string": "woof"
}
]
}
}
]
}
}
}
},
{
"map_key": {
"range": "index.d2,2:2:26-2:3:27",
"key": {
"range": "index.d2,2:2:26-2:3:27",
"path": [
{
"unquoted_string": {
"range": "index.d2,2:2:26-2:3:27",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"iconStyle": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
"edges": null,
"objects": [
{
"id": "container",
"id_val": "container",
"references": [
{
"key": {
"range": "index.d2,0:0:0-0:9:9",
"path": [
{
"unquoted_string": {
"range": "index.d2,0:0:0-0:9:9",
"value": [
{
"string": "container",
"raw_string": "container"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "container"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"iconStyle": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "k",
"id_val": "k",
"references": [
{
"key": {
"range": "woof.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "woof.d2,0:0:0-0:1:1",
"value": [
{
"string": "k",
"raw_string": "k"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "k"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"iconStyle": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "x",
"id_val": "x",
"references": [
{
"key": {
"range": "index.d2,1:2:15-1:3:16",
"path": [
{
"unquoted_string": {
"range": "index.d2,1:2:15-1:3:16",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "index.d2,1:2:15-1:3:16",
"path": [
{
"unquoted_string": {
"range": "index.d2,1:2:15-1:3:16",
"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": {},
"iconStyle": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "y",
"id_val": "y",
"references": [
{
"key": {
"range": "index.d2,2:2:26-2:3:27",
"path": [
{
"unquoted_string": {
"range": "index.d2,2:2:26-2:3:27",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "y"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"iconStyle": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": "<nil>"
}