2023-02-05 18:36:38 +00:00
|
|
|
{
|
|
|
|
|
"graph": {
|
|
|
|
|
"name": "",
|
2023-02-28 22:31:18 +00:00
|
|
|
"isFolderOnly": false,
|
2023-02-05 18:36:38 +00:00
|
|
|
"ast": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-9:1:94",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"range": ",0:0:0-0:0:0",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:6:6",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:2:2-0:6:6",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "link",
|
|
|
|
|
"raw_string": "link"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"double_quoted_string": {
|
|
|
|
|
"range": ",0:0:0-0:0:0",
|
2023-02-05 18:36:38 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
2023-03-01 22:53:58 +00:00
|
|
|
"string": "root.layers.x.layers.x"
|
2023-02-05 18:36:38 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-9:1:94",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-1:6:32",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-1:6:32",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "layers",
|
|
|
|
|
"raw_string": "layers"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:8:34-9:0:93",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-8:3:92",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-2:2:38",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-2:2:38",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:4:40-8:2:91",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-7:5:88",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-3:10:52",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-3:10:52",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "layers",
|
|
|
|
|
"raw_string": "layers"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:12:54-7:4:87",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-6:4:82",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-4:4:60",
|
2023-02-05 18:36:38 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-4:4:60",
|
2023-02-05 18:36:38 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
2023-03-01 18:28:01 +00:00
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:6:62-6:3:81",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "hello",
|
|
|
|
|
"raw_string": "hello"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-05 18:36:38 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"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": "x",
|
|
|
|
|
"id_val": "x",
|
|
|
|
|
"label_dimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:6:6",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:2:2-0:6:6",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "link",
|
|
|
|
|
"raw_string": "link"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": -1
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "x"
|
|
|
|
|
},
|
|
|
|
|
"style": {},
|
|
|
|
|
"link": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"value": "root.layers.x.layers.x"
|
2023-02-05 18:36:38 +00:00
|
|
|
},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": "rectangle"
|
|
|
|
|
},
|
|
|
|
|
"direction": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"constraint": {
|
|
|
|
|
"value": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"layers": [
|
|
|
|
|
{
|
|
|
|
|
"name": "x",
|
2023-03-01 18:28:01 +00:00
|
|
|
"isFolderOnly": true,
|
2023-02-05 18:36:38 +00:00
|
|
|
"ast": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-9:1:94",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"range": ",0:0:0-0:0:0",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:6:6",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:2:2-0:6:6",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "link",
|
|
|
|
|
"raw_string": "link"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"double_quoted_string": {
|
|
|
|
|
"range": ",0:0:0-0:0:0",
|
2023-02-05 18:36:38 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
2023-03-01 22:53:58 +00:00
|
|
|
"string": "root.layers.x.layers.x"
|
2023-02-05 18:36:38 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-9:1:94",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-1:6:32",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-1:6:32",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "layers",
|
|
|
|
|
"raw_string": "layers"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:8:34-9:0:93",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-8:3:92",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-2:2:38",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-2:2:38",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:4:40-8:2:91",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-7:5:88",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-3:10:52",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-3:10:52",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "layers",
|
|
|
|
|
"raw_string": "layers"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:12:54-7:4:87",
|
2023-02-05 18:36:38 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-6:4:82",
|
2023-02-05 18:36:38 +00:00
|
|
|
"key": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-4:4:60",
|
2023-02-05 18:36:38 +00:00
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
2023-03-01 18:28:01 +00:00
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-4:4:60",
|
2023-02-05 18:36:38 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
2023-03-01 18:28:01 +00:00
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:6:62-6:3:81",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "hello",
|
|
|
|
|
"raw_string": "hello"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-02-05 18:36:38 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"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,
|
2023-03-01 18:28:01 +00:00
|
|
|
"objects": null,
|
|
|
|
|
"layers": [
|
|
|
|
|
{
|
|
|
|
|
"name": "x",
|
|
|
|
|
"isFolderOnly": false,
|
|
|
|
|
"ast": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-9:1:94",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"range": ",0:0:0-0:0:0",
|
2023-03-01 18:28:01 +00:00
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:6:6",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,0:2:2-0:6:6",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "link",
|
|
|
|
|
"raw_string": "link"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
2023-03-01 22:53:58 +00:00
|
|
|
"double_quoted_string": {
|
|
|
|
|
"range": ",0:0:0-0:0:0",
|
2023-03-01 18:28:01 +00:00
|
|
|
"value": [
|
|
|
|
|
{
|
2023-03-01 22:53:58 +00:00
|
|
|
"string": "root.layers.x.layers.x"
|
2023-03-01 18:28:01 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-9:1:94",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-1:6:32",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:0:26-1:6:32",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "layers",
|
|
|
|
|
"raw_string": "layers"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,1:8:34-9:0:93",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-8:3:92",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-2:2:38",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:1:37-2:2:38",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,2:4:40-8:2:91",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-7:5:88",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-3:10:52",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:4:46-3:10:52",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "layers",
|
|
|
|
|
"raw_string": "layers"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,3:12:54-7:4:87",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-6:4:82",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-4:4:60",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:3:59-4:4:60",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,4:6:62-6:3:81",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "hello",
|
|
|
|
|
"raw_string": "hello"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"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": "hello",
|
|
|
|
|
"id_val": "hello",
|
|
|
|
|
"label_dimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/link-board-nested.d2,5:8:72-5:13:77",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "hello",
|
|
|
|
|
"raw_string": "hello"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": -1
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "hello"
|
|
|
|
|
},
|
|
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": "rectangle"
|
|
|
|
|
},
|
|
|
|
|
"direction": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"constraint": {
|
|
|
|
|
"value": ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-02-05 18:36:38 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"err": null
|
|
|
|
|
}
|