d2/testdata/d2compiler/TestCompile/reordered-classes.exp.json

289 lines
9.4 KiB
JSON
Generated

{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,0:0:0-7:0:78",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,0:0:0-4:1:41",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,0:0:0-0:7:7",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,0:0:0-0:7:7",
"value": [
{
"string": "classes",
"raw_string": "classes"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,0:9:9-4:1:41",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,1:2:13-3:3:39",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,1:2:13-1:3:14",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,1:2:13-1:3:14",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,1:5:16-3:3:39",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,2:4:22-2:17:35",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,2:4:22-2:9:27",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,2:4:22-2:9:27",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,2:11:29-2:17:35",
"value": [
{
"string": "circle",
"raw_string": "circle"
}
]
}
}
}
}
]
}
}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:0:42-5:10:52",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:0:42-5:7:49",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:0:42-5:1:43",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:2:44-5:7:49",
"value": [
{
"string": "class",
"raw_string": "class"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:9:51-5:10:52",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,6:0:53-6:24:77",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,6:0:53-6:15:68",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,6:0:53-6:7:60",
"value": [
{
"string": "classes",
"raw_string": "classes"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,6:8:61-6:9:62",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,6:10:63-6:15:68",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,6:17:70-6:24:77",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
}
]
},
"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": "a",
"id_val": "a",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:0:42-5:7:49",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:0:42-5:1:43",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/reordered-classes.d2,5:2:44-5:7:49",
"value": [
{
"string": "class",
"raw_string": "class"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "a"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"iconStyle": {},
"near_key": null,
"shape": {
"value": "diamond"
},
"direction": {
"value": ""
},
"constraint": null,
"classes": [
"x"
]
},
"zIndex": 0
}
]
},
"err": null
}