2022-11-03 13:54:49 +00:00
|
|
|
{
|
|
|
|
|
"graph": {
|
|
|
|
|
"ast": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:0:0-8:0:94",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:0:0-5:1:81",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:0:0-0:1:1",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"map": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:3:3-5:0:80",
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,1:2:7-1:14:19",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,1:2:7-1:6:11",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,1:2:7-1:6:11",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "icon",
|
|
|
|
|
"raw_string": "icon"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,1:8:13-1:14:19",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "orange",
|
|
|
|
|
"raw_string": "orange"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,2:2:22-2:20:40",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,2:2:22-2:15:35",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,2:2:22-2:7:27",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "style",
|
|
|
|
|
"raw_string": "style"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,2:8:28-2:15:35",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "opacity",
|
|
|
|
|
"raw_string": "opacity"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"number": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,2:17:37-2:20:40",
|
|
|
|
|
"raw": "0.5",
|
|
|
|
|
"value": "1/2"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,3:2:43-3:19:60",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,3:2:43-3:14:55",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,3:2:43-3:7:48",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "style",
|
|
|
|
|
"raw_string": "style"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,3:8:49-3:14:55",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "stroke",
|
|
|
|
|
"raw_string": "stroke"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,3:16:57-3:19:60",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "red",
|
|
|
|
|
"raw_string": "red"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,4:1:62-4:18:79",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,4:1:62-4:11:72",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,4:1:62-4:6:67",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "style",
|
|
|
|
|
"raw_string": "style"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,4:7:68-4:11:72",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "fill",
|
|
|
|
|
"raw_string": "fill"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,4:13:74-4:18:79",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "green",
|
|
|
|
|
"raw_string": "green"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:0:82-6:9:91",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:0:82-6:6:88",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:0:82-6:1:83",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:2:84-6:6:88",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "near",
|
|
|
|
|
"raw_string": "near"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:8:90-6:9:91",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"map_key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,7:0:92-7:1:93",
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,7:0:92-7:1:93",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,7:0:92-7:1:93",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"primary": {},
|
|
|
|
|
"value": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"root": {
|
|
|
|
|
"id": "",
|
|
|
|
|
"id_val": "",
|
|
|
|
|
"label_dimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
|
|
|
|
"edges": [],
|
|
|
|
|
"objects": [
|
|
|
|
|
{
|
|
|
|
|
"id": "x",
|
|
|
|
|
"id_val": "x",
|
|
|
|
|
"label_dimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:0:0-0:1:1",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": 0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:0:82-6:6:88",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:0:82-6:1:83",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "x",
|
|
|
|
|
"raw_string": "x"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,6:2:84-6:6:88",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "near",
|
|
|
|
|
"raw_string": "near"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "x"
|
|
|
|
|
},
|
|
|
|
|
"style": {
|
|
|
|
|
"opacity": {
|
|
|
|
|
"value": "0.5"
|
|
|
|
|
},
|
|
|
|
|
"stroke": {
|
|
|
|
|
"value": "red"
|
|
|
|
|
},
|
|
|
|
|
"fill": {
|
|
|
|
|
"value": "green"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"icon": {
|
|
|
|
|
"Scheme": "",
|
|
|
|
|
"Opaque": "",
|
|
|
|
|
"User": null,
|
|
|
|
|
"Host": "",
|
|
|
|
|
"Path": "orange",
|
|
|
|
|
"RawPath": "",
|
2023-01-27 21:41:59 +00:00
|
|
|
"OmitHost": false,
|
2022-11-03 13:54:49 +00:00
|
|
|
"ForceQuery": false,
|
|
|
|
|
"RawQuery": "",
|
|
|
|
|
"Fragment": "",
|
|
|
|
|
"RawFragment": ""
|
|
|
|
|
},
|
|
|
|
|
"near_key": {
|
|
|
|
|
"range": ",0:0:0-0:1:1",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": ",0:0:0-0:1:1",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "y",
|
|
|
|
|
"id_val": "y",
|
|
|
|
|
"label_dimensions": {
|
|
|
|
|
"width": 0,
|
|
|
|
|
"height": 0
|
|
|
|
|
},
|
|
|
|
|
"references": [
|
|
|
|
|
{
|
|
|
|
|
"key": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,7:0:92-7:1:93",
|
|
|
|
|
"path": [
|
|
|
|
|
{
|
|
|
|
|
"unquoted_string": {
|
|
|
|
|
"range": "d2/testdata/d2compiler/TestCompile/reserved_icon_near_style.d2,7:0:92-7:1:93",
|
|
|
|
|
"value": [
|
|
|
|
|
{
|
|
|
|
|
"string": "y",
|
|
|
|
|
"raw_string": "y"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"key_path_index": 0,
|
|
|
|
|
"map_key_edge_index": 0
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"attributes": {
|
|
|
|
|
"label": {
|
|
|
|
|
"value": "y"
|
|
|
|
|
},
|
|
|
|
|
"style": {},
|
|
|
|
|
"near_key": null,
|
|
|
|
|
"shape": {
|
|
|
|
|
"value": ""
|
2022-11-29 05:01:42 +00:00
|
|
|
},
|
2022-11-30 00:02:37 +00:00
|
|
|
"direction": {
|
2022-11-30 01:59:27 +00:00
|
|
|
"value": ""
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
2022-11-30 19:23:30 +00:00
|
|
|
},
|
|
|
|
|
"zIndex": 0
|
2022-11-03 13:54:49 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"err": null
|
|
|
|
|
}
|