d2/testdata/d2ir/TestCompile/imports/nested-scope.exp.json
Alexander Wang 6f7a90d157
fix err msg
2024-11-23 18:51:48 -08:00

268 lines
8.4 KiB
JSON
Generated

{
"fields": [
{
"name": {
"range": "second.d2,0:0:0-0:4:4",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
},
"composite": {
"fields": [
{
"name": {
"range": "third.d2,0:0:0-0:5:5",
"value": [
{
"string": "third",
"raw_string": "third"
}
]
},
"composite": {
"fields": [
{
"name": {
"range": "third.d2,1:2:11-1:6:15",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
},
"references": [
{
"string": {
"range": "third.d2,1:2:11-1:6:15",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
},
"key_path": {
"range": "third.d2,1:2:11-1:6:15",
"path": [
{
"unquoted_string": {
"range": "third.d2,1:2:11-1:6:15",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "third.d2,1:2:11-1:6:15",
"key": {
"range": "third.d2,1:2:11-1:6:15",
"path": [
{
"unquoted_string": {
"range": "third.d2,1:2:11-1:6:15",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
}
}
]
},
"primary": {},
"value": {}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
},
"references": [
{
"string": {
"range": "third.d2,0:0:0-0:5:5",
"value": [
{
"string": "third",
"raw_string": "third"
}
]
},
"key_path": {
"range": "third.d2,0:0:0-0:5:5",
"path": [
{
"unquoted_string": {
"range": "third.d2,0:0:0-0:5:5",
"value": [
{
"string": "third",
"raw_string": "third"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "third.d2,0:0:0-2:1:17",
"key": {
"range": "third.d2,0:0:0-0:5:5",
"path": [
{
"unquoted_string": {
"range": "third.d2,0:0:0-0:5:5",
"value": [
{
"string": "third",
"raw_string": "third"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "third.d2,0:7:7-2:1:17",
"nodes": [
{
"map_key": {
"range": "third.d2,1:2:11-1:6:15",
"key": {
"range": "third.d2,1:2:11-1:6:15",
"path": [
{
"unquoted_string": {
"range": "third.d2,1:2:11-1:6:15",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
},
"references": [
{
"string": {
"range": "second.d2,0:0:0-0:4:4",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
},
"key_path": {
"range": "second.d2,0:0:0-0:4:4",
"path": [
{
"unquoted_string": {
"range": "second.d2,0:0:0-0:4:4",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "second.d2,0:0:0-2:1:21",
"key": {
"range": "second.d2,0:0:0-0:4:4",
"path": [
{
"unquoted_string": {
"range": "second.d2,0:0:0-0:4:4",
"value": [
{
"string": "elem",
"raw_string": "elem"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "second.d2,0:6:6-2:1:21",
"nodes": [
{
"import": {
"range": "second.d2,1:2:10-1:11:19",
"spread": true,
"pre": "",
"path": [
{
"unquoted_string": {
"range": "second.d2,1:6:14-1:11:19",
"value": [
{
"string": "third",
"raw_string": "third"
}
]
}
}
]
}
}
]
}
}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
}