d2/testdata/d2ir/TestCompile/edges/nested.exp.json

843 lines
28 KiB
JSON
Raw Normal View History

2023-01-16 11:52:37 +00:00
{
2023-01-18 11:51:16 +00:00
"fields": [
{
"name": "x",
"composite": {
"fields": [
{
"name": "y",
"references": [
{
"string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
2023-01-18 01:39:31 +00:00
}
2023-01-18 11:51:16 +00:00
]
},
"key_path": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
2023-01-18 05:30:28 +00:00
{
2023-01-18 11:51:16 +00:00
"string": "x",
"raw_string": "x"
2023-01-18 05:30:28 +00:00
}
]
2023-01-18 11:51:16 +00:00
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
2023-01-18 05:30:28 +00:00
{
2023-01-18 11:51:16 +00:00
"string": "y",
"raw_string": "y"
2023-01-18 05:30:28 +00:00
}
]
2023-01-18 05:28:33 +00:00
}
2023-01-18 11:51:16 +00:00
}
]
2023-01-18 05:28:33 +00:00
},
2023-01-18 11:51:16 +00:00
"context": {
"edge": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"dst_arrow": ">"
},
2023-01-18 11:51:16 +00:00
"key": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"edges": [
2023-01-18 05:28:33 +00:00
{
2023-01-18 11:51:16 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"dst_arrow": ">"
2023-01-18 05:28:33 +00:00
}
2023-01-18 11:51:16 +00:00
],
"primary": {},
"value": {}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
}
}
]
}
],
"edges": null
},
"references": [
{
"string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
},
"key_path": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
2023-01-18 05:30:28 +00:00
{
2023-01-18 11:51:16 +00:00
"string": "x",
"raw_string": "x"
2023-01-18 05:30:28 +00:00
}
]
2023-01-18 11:51:16 +00:00
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
2023-01-18 05:30:28 +00:00
{
2023-01-18 11:51:16 +00:00
"string": "y",
"raw_string": "y"
2023-01-18 05:30:28 +00:00
}
]
2023-01-18 11:51:16 +00:00
}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
]
},
"context": {
"edge": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"dst_arrow": ">"
},
2023-01-18 11:51:16 +00:00
"key": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"edges": [
2023-01-18 05:28:33 +00:00
{
2023-01-18 11:51:16 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
2023-01-18 10:06:44 +00:00
{
2023-01-18 11:51:16 +00:00
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
2023-01-18 10:06:44 +00:00
}
]
2023-01-18 05:28:33 +00:00
},
2023-01-18 11:51:16 +00:00
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 05:28:33 +00:00
"path": [
{
"unquoted_string": {
2023-01-18 10:06:44 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
2023-01-18 05:28:33 +00:00
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
2023-01-18 10:06:44 +00:00
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
2023-01-18 05:28:33 +00:00
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
2023-01-18 05:30:28 +00:00
},
2023-01-18 11:51:16 +00:00
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
}
]
},
{
"name": "z",
"composite": {
"fields": [
{
"name": "p",
"references": [
{
"string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
2023-01-18 05:30:28 +00:00
{
2023-01-18 11:51:16 +00:00
"string": "p",
"raw_string": "p"
2023-01-18 05:30:28 +00:00
}
]
},
2023-01-18 11:51:16 +00:00
"key_path": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 05:30:28 +00:00
"path": [
{
"unquoted_string": {
2023-01-18 10:06:44 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
2023-01-18 05:30:28 +00:00
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"context": {
"edge": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
2023-01-18 05:30:28 +00:00
},
"dst_arrow": ">"
},
2023-01-18 11:51:16 +00:00
"key": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"edges": [
{
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
}
}
]
}
],
"edges": null
},
"references": [
{
"string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
},
"key_path": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
2023-01-18 05:30:28 +00:00
},
2023-01-18 11:51:16 +00:00
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
2023-01-18 05:30:28 +00:00
{
2023-01-18 11:51:16 +00:00
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"context": {
"edge": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"dst_arrow": ">"
},
2023-01-18 11:51:16 +00:00
"key": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"edges": [
{
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
}
]
}
],
"edges": [
{
"edge_id": {
"src_path": [
"x",
"y"
],
"src_arrow": false,
"dst_path": [
"z",
"p"
],
"dst_arrow": true,
"index": 0
},
"references": [
{
"context": {
2023-01-18 11:51:16 +00:00
"edge": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
}
]
},
"dst_arrow": ">"
},
2023-01-18 11:51:16 +00:00
"key": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"edges": [
{
"range": "TestCompile/edges/nested.d2,0:0:0-0:10:10",
"src": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:0:0-0:3:3",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
]
},
"src_arrow": "",
"dst": {
2023-05-05 16:11:46 +00:00
"range": "TestCompile/edges/nested.d2,0:7:7-0:10:10",
2023-01-18 11:51:16 +00:00
"path": [
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:7:7-0:8:8",
"value": [
{
"string": "z",
"raw_string": "z"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/edges/nested.d2,0:9:9-0:10:10",
"value": [
{
"string": "p",
"raw_string": "p"
}
]
}
2023-01-18 05:30:28 +00:00
}
2023-01-18 11:51:16 +00:00
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
2023-01-18 05:30:28 +00:00
}
}
2023-01-18 11:51:16 +00:00
}
]
}
]
2023-01-16 11:52:37 +00:00
}