181 lines
5.2 KiB
JSON
181 lines
5.2 KiB
JSON
|
|
{
|
||
|
|
"graph": {
|
||
|
|
"name": "",
|
||
|
|
"isFolderOnly": false,
|
||
|
|
"ast": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-4:0:34",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"map_key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-3:1:33",
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "hey",
|
||
|
|
"raw_string": "hey"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"primary": {},
|
||
|
|
"value": {
|
||
|
|
"map": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:5:5-3:0:32",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"map_key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:1:8-1:10:17",
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:1:8-1:5:12",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:1:8-1:5:12",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "rows",
|
||
|
|
"raw_string": "rows"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"primary": {},
|
||
|
|
"value": {
|
||
|
|
"number": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,1:7:14-1:10:17",
|
||
|
|
"raw": "200",
|
||
|
|
"value": "200"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"map_key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:1:19-2:13:31",
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:1:19-2:8:26",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:1:19-2:8:26",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "columns",
|
||
|
|
"raw_string": "columns"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"primary": {},
|
||
|
|
"value": {
|
||
|
|
"number": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,2:10:28-2:13:31",
|
||
|
|
"raw": "230",
|
||
|
|
"value": "230"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"root": {
|
||
|
|
"id": "",
|
||
|
|
"id_val": "",
|
||
|
|
"label_dimensions": {
|
||
|
|
"width": 0,
|
||
|
|
"height": 0
|
||
|
|
},
|
||
|
|
"attributes": {
|
||
|
|
"label": {
|
||
|
|
"value": ""
|
||
|
|
},
|
||
|
|
"style": {},
|
||
|
|
"near_key": null,
|
||
|
|
"shape": {
|
||
|
|
"value": ""
|
||
|
|
},
|
||
|
|
"direction": {
|
||
|
|
"value": ""
|
||
|
|
},
|
||
|
|
"constraint": {
|
||
|
|
"value": ""
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"zIndex": 0
|
||
|
|
},
|
||
|
|
"edges": null,
|
||
|
|
"objects": [
|
||
|
|
{
|
||
|
|
"id": "hey",
|
||
|
|
"id_val": "hey",
|
||
|
|
"label_dimensions": {
|
||
|
|
"width": 0,
|
||
|
|
"height": 0
|
||
|
|
},
|
||
|
|
"references": [
|
||
|
|
{
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/grid.d2,0:0:0-0:3:3",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "hey",
|
||
|
|
"raw_string": "hey"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"key_path_index": 0,
|
||
|
|
"map_key_edge_index": -1
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": {
|
||
|
|
"label": {
|
||
|
|
"value": "hey"
|
||
|
|
},
|
||
|
|
"style": {},
|
||
|
|
"near_key": null,
|
||
|
|
"shape": {
|
||
|
|
"value": "rectangle"
|
||
|
|
},
|
||
|
|
"direction": {
|
||
|
|
"value": ""
|
||
|
|
},
|
||
|
|
"constraint": {
|
||
|
|
"value": ""
|
||
|
|
},
|
||
|
|
"rows": {
|
||
|
|
"value": "200"
|
||
|
|
},
|
||
|
|
"columns": {
|
||
|
|
"value": "230"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"zIndex": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"err": null
|
||
|
|
}
|