536 lines
16 KiB
JSON
Generated
536 lines
16 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"name": "",
|
|
"isFolderOnly": false,
|
|
"ast": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-8:0:42",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,2:0:4-7:1:41",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,2:0:4-2:9:13",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,2:0:4-2:9:13",
|
|
"value": [
|
|
{
|
|
"string": "scenarios",
|
|
"raw_string": "scenarios"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,2:11:15-7:1:41",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,3:2:19-6:3:39",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,3:2:19-3:3:20",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,3:2:19-3:3:20",
|
|
"value": [
|
|
{
|
|
"string": "x",
|
|
"raw_string": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,3:5:22-6:3:39",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,4:4:28-4:5:29",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,4:4:28-4:5:29",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,4:4:28-4:5:29",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,5:4:34-5:5:35",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,5:4:34-5:5:35",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,5:4:34-5:5:35",
|
|
"value": [
|
|
{
|
|
"string": "c",
|
|
"raw_string": "c"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": null,
|
|
"objects": [
|
|
{
|
|
"id": "a",
|
|
"id_val": "a",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "a"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
{
|
|
"id": "b",
|
|
"id_val": "b",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"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
|
|
}
|
|
],
|
|
"scenarios": [
|
|
{
|
|
"name": "x",
|
|
"isFolderOnly": false,
|
|
"ast": {
|
|
"range": ",1:0:0-2:0:0",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"key": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"value": [
|
|
{
|
|
"string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"key": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"value": [
|
|
{
|
|
"string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"key": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": ",0:0:0-0:0:0",
|
|
"value": [
|
|
{
|
|
"string": "c"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": null,
|
|
"objects": [
|
|
{
|
|
"id": "a",
|
|
"id_val": "a",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,0:0:0-0:1:1",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
},
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,4:4:28-4:5:29",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,4:4:28-4:5:29",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "a"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
},
|
|
{
|
|
"id": "b",
|
|
"id_val": "b",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,1:0:2-1:1:3",
|
|
"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": "c",
|
|
"id_val": "c",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,5:4:34-5:5:35",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestCreate/scenarios-basic.d2,5:4:34-5:5:35",
|
|
"value": [
|
|
{
|
|
"string": "c",
|
|
"raw_string": "c"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "c"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"err": "<nil>"
|
|
}
|