377 lines
12 KiB
JSON
Generated
377 lines
12 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"name": "",
|
|
"isFolderOnly": false,
|
|
"ast": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,0:0:0-10:0:89",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,0:0:0-4:1:40",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,0:0:0-0:7:7",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,0:0:0-0:7:7",
|
|
"value": [
|
|
{
|
|
"string": "classes",
|
|
"raw_string": "classes"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,0:9:9-4:1:40",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,1:2:13-3:3:38",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,1:2:13-1:6:17",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,1:2:13-1:6:17",
|
|
"value": [
|
|
{
|
|
"string": "user",
|
|
"raw_string": "user"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,1:8:19-3:3:38",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,2:4:25-2:13:34",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,2:4:25-2:9:30",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,2:4:25-2:9:30",
|
|
"value": [
|
|
{
|
|
"string": "label",
|
|
"raw_string": "label"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"double_quoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,2:11:32-2:13:34",
|
|
"value": null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:0:42-9:1:88",
|
|
"edges": [
|
|
{
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:0:42-6:6:48",
|
|
"src": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:0:42-6:1:43",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:0:42-6:1:43",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"src_arrow": "",
|
|
"dst": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:5:47-6:6:48",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:5:47-6:6:48",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"dst_arrow": ">"
|
|
}
|
|
],
|
|
"primary": {},
|
|
"value": {
|
|
"map": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:8:50-9:1:88",
|
|
"nodes": [
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,7:2:54-7:13:65",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,7:2:54-7:7:59",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,7:2:54-7:7:59",
|
|
"value": [
|
|
{
|
|
"string": "class",
|
|
"raw_string": "class"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,7:9:61-7:13:65",
|
|
"value": [
|
|
{
|
|
"string": "user",
|
|
"raw_string": "user"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,8:2:68-8:20:86",
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,8:2:68-8:15:81",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,8:2:68-8:7:73",
|
|
"value": [
|
|
{
|
|
"string": "style",
|
|
"raw_string": "style"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,8:8:74-8:15:81",
|
|
"value": [
|
|
{
|
|
"string": "opacity",
|
|
"raw_string": "opacity"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"number": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,8:17:83-8:20:86",
|
|
"raw": "0.5",
|
|
"value": "1/2"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": ""
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {
|
|
"opacity": {
|
|
"value": "0.5"
|
|
}
|
|
},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": ""
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null,
|
|
"classes": [
|
|
"user"
|
|
]
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
],
|
|
"objects": [
|
|
{
|
|
"id": "a",
|
|
"id_val": "a",
|
|
"references": [
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:0:42-6:1:43",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:0:42-6:1:43",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"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/TestSet/edge-class-with-label.d2,6:5:47-6:6:48",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2oracle/TestSet/edge-class-with-label.d2,6:5:47-6:6:48",
|
|
"value": [
|
|
{
|
|
"string": "b",
|
|
"raw_string": "b"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": 0
|
|
}
|
|
],
|
|
"attributes": {
|
|
"label": {
|
|
"value": "b"
|
|
},
|
|
"labelDimensions": {
|
|
"width": 0,
|
|
"height": 0
|
|
},
|
|
"style": {},
|
|
"near_key": null,
|
|
"shape": {
|
|
"value": "rectangle"
|
|
},
|
|
"direction": {
|
|
"value": ""
|
|
},
|
|
"constraint": null
|
|
},
|
|
"zIndex": 0
|
|
}
|
|
]
|
|
},
|
|
"err": "<nil>"
|
|
}
|