145 lines
4.2 KiB
JSON
145 lines
4.2 KiB
JSON
|
|
{
|
||
|
|
"graph": {
|
||
|
|
"ast": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:0:0-3:0:32",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"map_key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:0:0-2:1:31",
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:0:0-0:4:4",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:0:0-0:3:3",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "hey",
|
||
|
|
"raw_string": "hey"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"primary": {},
|
||
|
|
"value": {
|
||
|
|
"map": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:4:4-2:0:30",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"map_key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,1:2:8-1:23:29",
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,1:2:8-1:20:26",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,1:2:8-1:7:13",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "style",
|
||
|
|
"raw_string": "style"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,1:8:14-1:20:26",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "stroke-width",
|
||
|
|
"raw_string": "stroke-width"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"primary": {},
|
||
|
|
"value": {
|
||
|
|
"number": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,1:22:28-1:23:29",
|
||
|
|
"raw": "0",
|
||
|
|
"value": "0"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"root": {
|
||
|
|
"id": "",
|
||
|
|
"id_val": "",
|
||
|
|
"label_dimensions": {
|
||
|
|
"width": 0,
|
||
|
|
"height": 0
|
||
|
|
},
|
||
|
|
"attributes": {
|
||
|
|
"label": {
|
||
|
|
"value": ""
|
||
|
|
},
|
||
|
|
"style": {},
|
||
|
|
"near_key": null,
|
||
|
|
"shape": {
|
||
|
|
"value": ""
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"edges": [],
|
||
|
|
"objects": [
|
||
|
|
{
|
||
|
|
"id": "hey",
|
||
|
|
"id_val": "hey",
|
||
|
|
"label_dimensions": {
|
||
|
|
"width": 0,
|
||
|
|
"height": 0
|
||
|
|
},
|
||
|
|
"references": [
|
||
|
|
{
|
||
|
|
"key": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:0:0-0:4:4",
|
||
|
|
"path": [
|
||
|
|
{
|
||
|
|
"unquoted_string": {
|
||
|
|
"range": "d2/testdata/d2compiler/TestCompile/stroke-width.d2,0:0:0-0:3:3",
|
||
|
|
"value": [
|
||
|
|
{
|
||
|
|
"string": "hey",
|
||
|
|
"raw_string": "hey"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"key_path_index": 0,
|
||
|
|
"map_key_edge_index": 0
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"attributes": {
|
||
|
|
"label": {
|
||
|
|
"value": "hey"
|
||
|
|
},
|
||
|
|
"style": {
|
||
|
|
"strokeWidth": {
|
||
|
|
"value": "0"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"near_key": null,
|
||
|
|
"shape": {
|
||
|
|
"value": ""
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"err": null
|
||
|
|
}
|