d2/testdata/d2compiler/TestCompile/no-lazy-null.exp.json

242 lines
6.9 KiB
JSON
Raw Normal View History

2025-02-27 00:13:28 +00:00
{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,0:0:0-6:0:25",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,0:0:0-0:1:1",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,0:0:0-0:1:1",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,1:0:2-1:6:8",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,1:0:2-1:6:8",
"src": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,1:0:2-1:1:3",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,1:0:2-1:1:3",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,1:5:7-1:6:8",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,1:5:7-1:6:8",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,2:0:9-2:3:12",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,2:0:9-2:3:12",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,2:0:9-2:1:10",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,2:2:11-2:3:12",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,3:0:13-3:8:21",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,3:0:13-3:2:15",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,3:0:13-3:2:15",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"null": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,3:4:17-3:8:21"
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,5:0:23-5:1:24",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,5:0:23-5:1:24",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,5:0:23-5:1:24",
"value": [
{
"string": "g",
"raw_string": "g"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
},
"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": "g",
"id_val": "g",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,5:0:23-5:1:24",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/no-lazy-null.d2,5:0:23-5:1:24",
"value": [
{
"string": "g",
"raw_string": "g"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "g"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": null
}