d2/testdata/d2ir/TestCompile/patterns/escaped.exp.json

267 lines
7.1 KiB
JSON
Raw Normal View History

{
"fields": [
{
2024-11-24 02:51:48 +00:00
"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"
}
]
}
}
}
},
2023-08-20 04:20:32 +00:00
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
},
{
2024-11-24 02:51:48 +00:00
"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"
}
]
}
}
}
},
2023-08-20 04:20:32 +00:00
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
},
{
2024-11-24 02:51:48 +00:00
"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"
}
]
}
}
}
},
2023-08-20 04:20:32 +00:00
"due_to_glob": false,
"due_to_lazy_glob": false
}
]
}
],
"edges": null
}