d2ir: Prevent triple globs from applying at a board root

This commit is contained in:
Anmol Sethi 2023-08-15 23:40:39 -07:00
parent 89b400b8f1
commit 4090e780f8
No known key found for this signature in database
GPG key ID: 8CEF1878FF10ADEB
6 changed files with 6 additions and 2542 deletions

View file

@ -49,6 +49,9 @@ func (m *Map) _tripleGlob(fa *[]*Field) {
} }
continue continue
} }
if NodeBoardKind(f) != "" {
continue
}
*fa = append(*fa, f) *fa = append(*fa, f)
if f.Map() != nil { if f.Map() != nil {
f.Map()._tripleGlob(fa) f.Map()._tripleGlob(fa)

View file

@ -380,7 +380,7 @@ scenarios.x: { p }
layers.x: { p } layers.x: { p }
`) `)
assert.Success(t, err) assert.Success(t, err)
assertQuery(t, m, 25, 0, nil, "") assertQuery(t, m, 24, 0, nil, "")
assertQuery(t, m, 0, 0, "page", "a.shape") assertQuery(t, m, 0, 0, "page", "a.shape")
assertQuery(t, m, 0, 0, "page", "b.shape") assertQuery(t, m, 0, 0, "page", "b.shape")
assertQuery(t, m, 0, 0, "page", "c.shape") assertQuery(t, m, 0, 0, "page", "c.shape")
@ -432,7 +432,7 @@ layers: {
} }
`) `)
assert.Success(t, err) assert.Success(t, err)
assertQuery(t, m, 16, 0, nil, "") assertQuery(t, m, 14, 0, nil, "")
}, },
}, },
{ {

View file

@ -438,66 +438,6 @@
"ast": { "ast": {
"range": ",1:0:0-2:0:0", "range": ",1:0:0-2:0:0",
"nodes": [ "nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "style"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": ",1:0:0-2:0:0",
"nodes": [
{
"map_key": {
"range": ",0:0:0-0:0:0",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "fill"
}
]
}
}
]
},
"primary": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23",
"value": [
{
"string": "yellow",
"raw_string": "yellow"
}
]
}
},
"value": {}
}
}
]
}
}
}
},
{ {
"map_key": { "map_key": {
"range": ",0:0:0-0:0:0", "range": ",0:0:0-0:0:0",
@ -599,11 +539,7 @@
"width": 0, "width": 0,
"height": 0 "height": 0
}, },
"style": { "style": {},
"fill": {
"value": "yellow"
}
},
"near_key": null, "near_key": null,
"shape": { "shape": {
"value": "" "value": ""

View file

@ -1687,112 +1687,6 @@
} }
} }
} }
},
{
"string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57",
"value": [
{
"string": "multiple",
"raw_string": "multiple"
}
]
},
"key_path": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57",
"value": [
{
"string": "multiple",
"raw_string": "multiple"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63",
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57",
"value": [
{
"string": "multiple",
"raw_string": "multiple"
}
]
}
}
]
},
"primary": {},
"value": {
"boolean": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63",
"value": true
}
}
}
}
} }
] ]
} }
@ -3454,112 +3348,6 @@
} }
} }
} }
},
{
"string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
},
"key_path": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57",
"value": [
{
"string": "multiple",
"raw_string": "multiple"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63",
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57",
"value": [
{
"string": "multiple",
"raw_string": "multiple"
}
]
}
}
]
},
"primary": {},
"value": {
"boolean": {
"range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63",
"value": true
}
}
}
}
} }
] ]
}, },
@ -4135,99 +3923,6 @@
} }
} }
}, },
{
"string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40",
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40",
"value": [
{
"string": "circle",
"raw_string": "circle"
}
]
}
}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
@ -5598,99 +5293,6 @@
} }
} }
}, },
{
"string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40",
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40",
"value": [
{
"string": "circle",
"raw_string": "circle"
}
]
}
}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32",
@ -5937,270 +5539,6 @@
"name": "next", "name": "next",
"composite": { "composite": {
"fields": [ "fields": [
{
"name": "style",
"composite": {
"fields": [
{
"name": "fill",
"primary": {
"value": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23",
"value": [
{
"string": "yellow",
"raw_string": "yellow"
}
]
}
},
"references": [
{
"string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15",
"value": [
{
"string": "fill",
"raw_string": "fill"
}
]
},
"key_path": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15",
"value": [
{
"string": "fill",
"raw_string": "fill"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23",
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15",
"value": [
{
"string": "fill",
"raw_string": "fill"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23",
"value": [
{
"string": "yellow",
"raw_string": "yellow"
}
]
}
}
}
}
}
]
}
],
"edges": null
},
"references": [
{
"string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
},
"key_path": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15",
"value": [
{
"string": "fill",
"raw_string": "fill"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23",
"key": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15",
"value": [
{
"string": "fill",
"raw_string": "fill"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23",
"value": [
{
"string": "yellow",
"raw_string": "yellow"
}
]
}
}
}
}
}
]
},
{ {
"name": "a", "name": "a",
"composite": { "composite": {

View file

@ -578,67 +578,6 @@
} }
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
@ -706,57 +645,6 @@
"edges": null "edges": null
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24",
@ -828,67 +716,6 @@
} }
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
@ -956,57 +783,6 @@
"edges": null "edges": null
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26",
@ -1078,67 +854,6 @@
} }
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
@ -1206,57 +921,6 @@
"edges": null "edges": null
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28",
@ -1328,67 +992,6 @@
} }
}, },
"references": [ "references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
},
{ {
"string": { "string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
@ -1506,134 +1109,6 @@
"value": {} "value": {}
} }
} }
},
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
}
]
},
{
"name": "shape",
"primary": {
"value": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
},
"references": [
{
"string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
} }
] ]
}, },
@ -2023,149 +1498,6 @@
} }
} }
} }
},
{
"string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "x"
}
]
},
"key_path": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "scenarios"
}
]
}
},
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "scenarios"
}
]
}
},
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21",
"nodes": [
{
"map_key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
]
}
}
}
}
} }
] ]
} }
@ -2417,149 +1749,6 @@
} }
} }
} }
},
{
"string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "scenarios"
}
]
},
"key_path": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "scenarios"
}
]
}
},
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21",
"key": {
"range": ",0:0:0-0:0:0",
"path": [
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "scenarios"
}
]
}
},
{
"unquoted_string": {
"range": ",0:0:0-0:0:0",
"value": [
{
"string": "x"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3",
"value": [
{
"string": "***",
"raw_string": "***"
}
],
"pattern": [
"*",
"",
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21",
"nodes": [
{
"map_key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19",
"key": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"path": [
{
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19",
"value": [
{
"string": "page",
"raw_string": "page"
}
]
}
}
}
}
]
}
}
}
}
} }
] ]
}, },

File diff suppressed because it is too large Load diff