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

266 lines
7.1 KiB
JSON
Generated

{
"fields": [
{
"name": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:6:6",
"value": [
{
"string": "animal",
"raw_string": "animal"
}
]
},
"primary": {
"value": {
"range": "TestCompile/patterns/escaped.d2,0:8:8-0:12:12",
"value": [
{
"string": "meow",
"raw_string": "meow"
}
]
}
},
"references": [
{
"string": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:6:6",
"value": [
{
"string": "animal",
"raw_string": "animal"
}
]
},
"key_path": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:6:6",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:6:6",
"value": [
{
"string": "animal",
"raw_string": "animal"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:12:12",
"key": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:6:6",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,0:0:0-0:6:6",
"value": [
{
"string": "animal",
"raw_string": "animal"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,0:8:8-0:12:12",
"value": [
{
"string": "meow",
"raw_string": "meow"
}
]
}
}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
},
{
"name": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:6:19",
"value": [
{
"string": "action",
"raw_string": "action"
}
]
},
"primary": {
"value": {
"range": "TestCompile/patterns/escaped.d2,1:8:21-1:11:24",
"value": [
{
"string": "yes",
"raw_string": "yes"
}
]
}
},
"references": [
{
"string": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:6:19",
"value": [
{
"string": "action",
"raw_string": "action"
}
]
},
"key_path": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:6:19",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:6:19",
"value": [
{
"string": "action",
"raw_string": "action"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:11:24",
"key": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:6:19",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,1:0:13-1:6:19",
"value": [
{
"string": "action",
"raw_string": "action"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,1:8:21-1:11:24",
"value": [
{
"string": "yes",
"raw_string": "yes"
}
]
}
}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
},
{
"name": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:2:27",
"value": [
{
"string": "a*",
"raw_string": "a\\*"
}
]
},
"primary": {
"value": {
"range": "TestCompile/patterns/escaped.d2,2:5:30-2:12:37",
"value": [
{
"string": "globbed",
"raw_string": "globbed"
}
]
}
},
"references": [
{
"string": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:2:27",
"value": [
{
"string": "a*",
"raw_string": "a\\*"
}
]
},
"key_path": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:2:27",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:2:27",
"value": [
{
"string": "a*",
"raw_string": "a\\*"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:12:37",
"key": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:2:27",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,2:0:25-2:2:27",
"value": [
{
"string": "a*",
"raw_string": "a\\*"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/escaped.d2,2:5:30-2:12:37",
"value": [
{
"string": "globbed",
"raw_string": "globbed"
}
]
}
}
}
},
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
}