d2/testdata/d2ir/TestCompile/fields/primary/root.exp.json
2023-08-30 00:37:03 -07:00

176 lines
5.4 KiB
JSON
Generated

{
"fields": [
{
"name": "x",
"primary": {
"value": {
"range": "TestCompile/fields/primary/root.d2,0:3:3-0:6:6",
"value": [
{
"string": "yes",
"raw_string": "yes"
}
]
}
},
"composite": {
"fields": [
{
"name": "pqrs",
"references": [
{
"string": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"value": [
{
"string": "pqrs",
"raw_string": "pqrs"
}
]
},
"key_path": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"value": [
{
"string": "pqrs",
"raw_string": "pqrs"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:14:14",
"key": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"value": [
{
"string": "pqrs",
"raw_string": "pqrs"
}
]
}
}
]
},
"primary": {},
"value": {}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
},
"references": [
{
"string": {
"range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
},
"key_path": {
"range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/fields/primary/root.d2,0:0:0-0:15:15",
"key": {
"range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
"path": [
{
"unquoted_string": {
"range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "TestCompile/fields/primary/root.d2,0:3:3-0:6:6",
"value": [
{
"string": "yes",
"raw_string": "yes"
}
]
}
},
"value": {
"map": {
"range": "TestCompile/fields/primary/root.d2,0:7:7-0:15:15",
"nodes": [
{
"map_key": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:14:14",
"key": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
"value": [
{
"string": "pqrs",
"raw_string": "pqrs"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
}