d2/testdata/d2ir/TestCompile/field/primary/nested.exp.json

116 lines
3.1 KiB
JSON
Raw Normal View History

2023-01-16 11:52:37 +00:00
{
2023-01-18 01:39:31 +00:00
"ast": {
"range": "TestCompile/field/primary/nested.d2,0:0:0-0:17:17",
"nodes": [
{
"map_key": {
"range": "TestCompile/field/primary/nested.d2,0:0:0-0:17:17",
"key": {
"range": "TestCompile/field/primary/nested.d2,0:0:0-0:3:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/field/primary/nested.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/field/primary/nested.d2,0:2:2-0:3:3",
"value": [
{
"string": "y",
"raw_string": "y"
}
]
}
2023-01-16 11:52:37 +00:00
}
2023-01-18 01:39:31 +00:00
]
},
"primary": {
"unquoted_string": {
"range": "TestCompile/field/primary/nested.d2,0:5:5-0:8:8",
"value": [
{
"string": "yes",
"raw_string": "yes"
}
]
}
},
"value": {
"map": {
"range": "TestCompile/field/primary/nested.d2,0:9:9-0:16:16",
"nodes": [
2023-01-16 11:52:37 +00:00
{
2023-01-18 01:39:31 +00:00
"map_key": {
"range": "TestCompile/field/primary/nested.d2,0:11:11-0:16:16",
"key": {
"range": "TestCompile/field/primary/nested.d2,0:11:11-0:16:16",
"path": [
{
"unquoted_string": {
"range": "TestCompile/field/primary/nested.d2,0:11:11-0:15:15",
"value": [
{
"string": "pqrs",
"raw_string": "pqrs"
}
]
}
}
]
},
"primary": {},
"value": {}
}
2023-01-16 11:52:37 +00:00
}
2023-01-18 01:39:31 +00:00
]
2023-01-16 11:52:37 +00:00
}
}
2023-01-18 01:39:31 +00:00
}
}
]
},
"base": {
"fields": [
{
"name": "x",
"composite": {
"fields": [
{
"name": "y",
"primary": {
"value": {
"range": "TestCompile/field/primary/nested.d2,0:5:5-0:8:8",
"value": [
{
"string": "yes",
"raw_string": "yes"
}
]
}
},
"composite": {
"fields": [
{
"name": "pqrs"
}
],
"edges": null
}
}
],
"edges": null
}
2023-01-16 11:52:37 +00:00
}
2023-01-18 01:39:31 +00:00
],
"edges": null
}
2023-01-16 11:52:37 +00:00
}