d2/testdata/d2compiler/TestCompile/glob-connection-steps.exp.json
Alexander Wang 2cbc300eac
ta
2025-02-02 23:15:33 -07:00

553 lines
21 KiB
JSON
Generated

{
"graph": {
"name": "",
"isFolderOnly": true,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:0:0-5:0:45",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:0:0-0:21:21",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:0:0-0:14:14",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:0:0-0:1:1",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:2:2-0:7:7",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:8:8-0:14:14",
"value": [
{
"string": "stroke",
"raw_string": "stroke"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:16:16-0:21:21",
"value": [
{
"string": "black",
"raw_string": "black"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,2:0:23-4:1:44",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,2:0:23-2:6:29",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,2:0:23-2:6:29",
"value": [
{
"string": "layers",
"raw_string": "layers"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,2:8:31-4:1:44",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,3:2:35-3:9:42",
"key": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,3:2:35-3:4:37",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,3:2:35-3:4:37",
"value": [
{
"string": "ok",
"raw_string": "ok"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-1:0:0",
"nodes": [
{
"import": {
"range": ",1:0:0-1:0:0",
"spread": true,
"pre": "",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,3:7:40-3:9:42",
"value": [
{
"string": "ok",
"raw_string": "ok"
}
]
}
}
]
}
}
]
},
"import": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,3:6:39-3:9:42",
"spread": false,
"pre": "",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,3:7:40-3:9:42",
"value": [
{
"string": "ok",
"raw_string": "ok"
}
]
}
}
]
}
}
}
}
]
}
}
}
}
]
},
"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": null,
"layers": [
{
"name": "ok",
"isFolderOnly": true,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:0:0-1:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,1:0:1-1:5:6",
"value": [
{
"string": "steps",
"raw_string": "steps"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,2:2:12-2:3:13",
"value": [
{
"string": "1",
"raw_string": "1"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,3:4:21-3:9:26",
"value": [
{
"string": "step1",
"raw_string": "step1"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:2:2-0:7:7",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:8:8-0:14:14",
"value": [
{
"string": "stroke",
"raw_string": "stroke"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:16:16-0:21:21",
"value": [
{
"string": "black",
"raw_string": "black"
}
]
}
},
"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": null,
"steps": [
{
"name": "1",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,0:0:0-1:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,3:4:21-3:9:26",
"value": [
{
"string": "step1",
"raw_string": "step1"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:2:2-0:7:7",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:8:8-0:14:14",
"value": [
{
"string": "stroke",
"raw_string": "stroke"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/glob-connection-steps.d2,0:16:16-0:21:21",
"value": [
{
"string": "black",
"raw_string": "black"
}
]
}
},
"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": "step1",
"id_val": "step1",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,3:4:21-3:9:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile/ok.d2,3:4:21-3:9:26",
"value": [
{
"string": "step1",
"raw_string": "step1"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "step1"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {
"stroke": {
"value": "black"
}
},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
}
]
}
]
},
"err": null
}