From 4090e780f810321d0a3d40f66b3acfcc254de7b6 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 15 Aug 2023 23:40:39 -0700 Subject: [PATCH] d2ir: Prevent triple globs from applying at a board root --- d2ir/pattern.go | 3 + d2ir/pattern_test.go | 4 +- .../alixander-lazy-globs-review.exp.json | 66 +- .../patterns/alixander-review/1.exp.json | 662 ----------- .../patterns/triple-glob/defaults.exp.json | 811 ------------- .../triple-glob/edge-defaults.exp.json | 1002 ----------------- 6 files changed, 6 insertions(+), 2542 deletions(-) diff --git a/d2ir/pattern.go b/d2ir/pattern.go index 2b0aa9d25..034083b09 100644 --- a/d2ir/pattern.go +++ b/d2ir/pattern.go @@ -49,6 +49,9 @@ func (m *Map) _tripleGlob(fa *[]*Field) { } continue } + if NodeBoardKind(f) != "" { + continue + } *fa = append(*fa, f) if f.Map() != nil { f.Map()._tripleGlob(fa) diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index c25fb9304..96d0c2fa0 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -380,7 +380,7 @@ scenarios.x: { p } layers.x: { p } `) 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", "b.shape") assertQuery(t, m, 0, 0, "page", "c.shape") @@ -432,7 +432,7 @@ layers: { } `) assert.Success(t, err) - assertQuery(t, m, 16, 0, nil, "") + assertQuery(t, m, 14, 0, nil, "") }, }, { diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json index abe75b210..d25a94a2c 100644 --- a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json @@ -438,66 +438,6 @@ "ast": { "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": "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": { "range": ",0:0:0-0:0:0", @@ -599,11 +539,7 @@ "width": 0, "height": 0 }, - "style": { - "fill": { - "value": "yellow" - } - }, + "style": {}, "near_key": null, "shape": { "value": "" diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 8813f416c..177f3ee48 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -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": { "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": { "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", @@ -5937,270 +5539,6 @@ "name": "next", "composite": { "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", "composite": { diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index a16e93bf7..e0b0bfe2e 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -578,67 +578,6 @@ } }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -706,57 +645,6 @@ "edges": null }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", @@ -828,67 +716,6 @@ } }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -956,57 +783,6 @@ "edges": null }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", @@ -1078,67 +854,6 @@ } }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -1206,57 +921,6 @@ "edges": null }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", @@ -1328,67 +992,6 @@ } }, "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": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -1506,134 +1109,6 @@ "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" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index 819fea0ae..64a4e7727 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -1774,89 +1774,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -2527,89 +2444,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -4202,174 +4036,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -4738,89 +4404,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -5242,89 +4825,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -6413,174 +5913,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -6617,89 +5949,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -6789,89 +6038,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -7238,174 +6404,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }