216 lines
6.1 KiB
JSON
Generated
216 lines
6.1 KiB
JSON
Generated
{
|
|
"graph": {
|
|
"name": "",
|
|
"isFolderOnly": false,
|
|
"ast": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,0:0:0-2:0:30",
|
|
"nodes": [
|
|
{
|
|
"import": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,0:0:0-0:10:10",
|
|
"spread": true,
|
|
"pre": "",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,0:4:4-0:10:10",
|
|
"value": [
|
|
{
|
|
"string": "second",
|
|
"raw_string": "second"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"map_key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:0:11-1:18:29",
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:0:11-1:12:23",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:0:11-1:1:12",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:2:13-1:7:18",
|
|
"value": [
|
|
{
|
|
"string": "style",
|
|
"raw_string": "style"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:8:19-1:12:23",
|
|
"value": [
|
|
{
|
|
"string": "fill",
|
|
"raw_string": "fill"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"primary": {},
|
|
"value": {
|
|
"null": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:14:25-1:18:29"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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/d2compiler/TestCompile/second.d2,0:0:0-0:12:12",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/second.d2,0:0:0-0:1:1",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/second.d2,0:2:2-0:7:7",
|
|
"value": [
|
|
{
|
|
"string": "style",
|
|
"raw_string": "style"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/second.d2,0:8:8-0:12:12",
|
|
"value": [
|
|
{
|
|
"string": "fill",
|
|
"raw_string": "fill"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"key_path_index": 0,
|
|
"map_key_edge_index": -1
|
|
},
|
|
{
|
|
"key": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:0:11-1:12:23",
|
|
"path": [
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:0:11-1:1:12",
|
|
"value": [
|
|
{
|
|
"string": "a",
|
|
"raw_string": "a"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:2:13-1:7:18",
|
|
"value": [
|
|
{
|
|
"string": "style",
|
|
"raw_string": "style"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"unquoted_string": {
|
|
"range": "d2/testdata/d2compiler/TestCompile/nested-scope-2.d2,1:8:19-1:12:23",
|
|
"value": [
|
|
{
|
|
"string": "fill",
|
|
"raw_string": "fill"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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
|
|
}
|
|
]
|
|
},
|
|
"err": null
|
|
}
|