From 453c24388a9fd35897b65d0d5c5b8a22f6925040 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Mon, 4 Mar 2024 17:51:05 -0800 Subject: [PATCH 1/3] d2ir: fix glob applications on edges --- ci/release/changelogs/next.md | 1 + d2ast/d2ast.go | 1 + d2compiler/compile_test.go | 23 + d2ir/compile.go | 1 + d2ir/d2ir.go | 2 +- d2ir/filter_test.go | 15 + d2ir/import_test.go | 2 +- d2oracle/edit.go | 27 +- d2oracle/edit_test.go | 68 + d2oracle/get.go | 8 + .../TestCompile2/globs/override-edge.exp.json | 478 ++ .../globs/override-edge/1.exp.json | 403 + .../globs/override-edge/2.exp.json | 479 ++ .../d2ir/TestCompile/filters/edge.exp.json | 1655 +--- .../filters/label-filter/2.exp.json | 877 ++- .../filters/label-filter/3.exp.json | 941 +++ .../patterns/alixander-review/6.exp.json | 483 -- .../patterns/edge-glob-index.exp.json | 6926 +++-------------- .../patterns/glob-edge-glob-index.exp.json | 6072 +++------------ .../TestDelete/connection-glob.exp.json | 312 + .../d2oracle/TestDelete/glob-child/1.exp.json | 212 + .../d2oracle/TestSet/glob-field/1.exp.json | 290 + .../d2oracle/TestSet/glob-field/2.exp.json | 479 ++ .../d2oracle/TestSet/glob-field/3.exp.json | 479 ++ 24 files changed, 7114 insertions(+), 13120 deletions(-) create mode 100644 testdata/d2compiler/TestCompile2/globs/override-edge.exp.json create mode 100644 testdata/d2compiler/TestCompile2/globs/override-edge/1.exp.json create mode 100644 testdata/d2compiler/TestCompile2/globs/override-edge/2.exp.json create mode 100644 testdata/d2ir/TestCompile/filters/label-filter/3.exp.json create mode 100644 testdata/d2oracle/TestDelete/connection-glob.exp.json create mode 100644 testdata/d2oracle/TestDelete/glob-child/1.exp.json create mode 100644 testdata/d2oracle/TestSet/glob-field/1.exp.json create mode 100644 testdata/d2oracle/TestSet/glob-field/2.exp.json create mode 100644 testdata/d2oracle/TestSet/glob-field/3.exp.json diff --git a/ci/release/changelogs/next.md b/ci/release/changelogs/next.md index 94b2f7ad6f..9a1c1d5250 100644 --- a/ci/release/changelogs/next.md +++ b/ci/release/changelogs/next.md @@ -9,5 +9,6 @@ #### Bugfixes ⛑️ +- Fixes styles in connections not overriding styles set by globs [#1857](https://github.com/terrastruct/d2/pull/1857) - Fixes `null` being set on a nested shape not working in certain cases when connections also pointed to that shape [#1830](https://github.com/terrastruct/d2/pull/1830) - Fixes edge case of bad import syntax crashing using d2 as a library [#1829](https://github.com/terrastruct/d2/pull/1829) diff --git a/d2ast/d2ast.go b/d2ast/d2ast.go index 85a530c88c..388997043a 100644 --- a/d2ast/d2ast.go +++ b/d2ast/d2ast.go @@ -1025,6 +1025,7 @@ type EdgeIndex struct { } func (ei1 *EdgeIndex) Equals(ei2 *EdgeIndex) bool { + // TODO probably should be checking the values, but will wait until something breaks to change if ei1.Int != ei2.Int { return false } diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 38d1fe0514..ec746e8395 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -4367,6 +4367,29 @@ container_2: { assert.Equal(t, 4, len(g.Objects)) }, }, + { + name: "override-edge/1", + run: func(t *testing.T) { + g, _ := assertCompile(t, ` +(* -> *)[*].style.stroke: red +(* -> *)[*].style.stroke: green +a -> b +`, ``) + assert.Equal(t, "green", g.Edges[0].Attributes.Style.Stroke.Value) + }, + }, + { + name: "override-edge/2", + run: func(t *testing.T) { + g, _ := assertCompile(t, ` +(* -> *)[*].style.stroke: red +a -> b: {style.stroke: green} +a -> b +`, ``) + assert.Equal(t, "green", g.Edges[0].Attributes.Style.Stroke.Value) + assert.Equal(t, "red", g.Edges[1].Attributes.Style.Stroke.Value) + }, + }, } for _, tc := range tca { diff --git a/d2ir/compile.go b/d2ir/compile.go index c3e05f4fca..bbbe60489a 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -413,6 +413,7 @@ func (c *compiler) ampersandFilterMap(dst *Map, ast, scopeAST *d2ast.Map) bool { ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(dst))) } delete(gctx.appliedFields, ks) + delete(gctx.appliedEdges, ks) return false } } diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 227fa69f9b..c742a48f02 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -1094,7 +1094,7 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, gctx *globContext, ea *[ } gctx.appliedEdges[ks] = struct{}{} } - *ea = append(*ea, ea2...) + *ea = append(*ea, e) } } } diff --git a/d2ir/filter_test.go b/d2ir/filter_test.go index 63375b8167..06e9264163 100644 --- a/d2ir/filter_test.go +++ b/d2ir/filter_test.go @@ -150,6 +150,21 @@ x -> y assertQuery(t, m, 0, 0, 0.1, "(x -> y)[1].style.opacity") }, }, + { + name: "label-filter/3", + run: func(t testing.TB) { + m, err := compile(t, ` +(* -> *)[*]: { + &label: hi + style.opacity: 0.1 +} + +x -> y: hi +`) + assert.Success(t, err) + assertQuery(t, m, 0, 0, 0.1, "(x -> y)[0].style.opacity") + }, + }, { name: "lazy-filter", run: func(t testing.TB) { diff --git a/d2ir/import_test.go b/d2ir/import_test.go index 81a3e3f507..d67f5950d5 100644 --- a/d2ir/import_test.go +++ b/d2ir/import_test.go @@ -232,7 +232,7 @@ label: meow`, _, err := compileFS(t, "index.d2", map[string]string{ "index.d2": "...@'./../x.d2'", }) - assert.ErrorString(t, err, `index.d2:1:1: failed to import "../x.d2": stat ../x.d2: invalid argument`) + assert.ErrorString(t, err, `index.d2:1:1: failed to import "../x.d2": open ../x.d2: invalid argument`) }, }, { diff --git a/d2oracle/edit.go b/d2oracle/edit.go index 05c0df3b01..6d3bea97f6 100644 --- a/d2oracle/edit.go +++ b/d2oracle/edit.go @@ -497,16 +497,19 @@ func _set(g *d2graph.Graph, baseAST *d2ast.Map, key string, tag, value *string) onlyInChain = false } } - // If a ref has an exact match on this key, just change the value - tmp1 := *ref.MapKey - tmp2 := *mk - noVal1 := &tmp1 - noVal2 := &tmp2 - noVal1.Value = d2ast.ValueBox{} - noVal2.Value = d2ast.ValueBox{} - if noVal1.D2OracleEquals(noVal2) { - ref.MapKey.Value = mk.Value - return nil + + if ref.MapKey.EdgeIndex == nil || !ref.MapKey.EdgeIndex.Glob { + // If a ref has an exact match on this key, just change the value + tmp1 := *ref.MapKey + tmp2 := *mk + noVal1 := &tmp1 + noVal2 := &tmp2 + noVal1.Value = d2ast.ValueBox{} + noVal2.Value = d2ast.ValueBox{} + if noVal1.D2OracleEquals(noVal2) { + ref.MapKey.Value = mk.Value + return nil + } } } if onlyInChain { @@ -575,6 +578,10 @@ func _set(g *d2graph.Graph, baseAST *d2ast.Map, key string, tag, value *string) if s.MapKey.Range.Path != baseAST.Range.Path { return false } + // Globs are also not writeable + if s.MapKey.HasGlob() { + return false + } } return s != nil && s.MapKey != nil && !ir.InClass(s.MapKey) } diff --git a/d2oracle/edit_test.go b/d2oracle/edit_test.go index 15e816377c..a5743234d9 100644 --- a/d2oracle/edit_test.go +++ b/d2oracle/edit_test.go @@ -2335,6 +2335,48 @@ layers: { near: bottom-right } } +`, + }, + { + name: "glob-field/1", + + text: `*.style.fill: red +a +b +`, + key: `a.style.fill`, + value: go2.Pointer(`blue`), + exp: `*.style.fill: red +a: {style.fill: blue} +b +`, + }, + { + name: "glob-field/2", + + text: `(* -> *)[*].style.stroke: red +a -> b +a -> b +`, + key: `(a -> b)[0].style.stroke`, + value: go2.Pointer(`blue`), + exp: `(* -> *)[*].style.stroke: red +a -> b: {style.stroke: blue} +a -> b +`, + }, + { + name: "glob-field/3", + + text: `(* -> *)[*].style.stroke: red +a -> b: {style.stroke: blue} +a -> b +`, + key: `(a -> b)[0].style.stroke`, + value: go2.Pointer(`green`), + exp: `(* -> *)[*].style.stroke: red +a -> b: {style.stroke: green} +a -> b `, }, } @@ -7445,6 +7487,32 @@ a.style.fill: null `, key: `yes.label.near`, exp: `yes +`, + }, + { + name: "connection-glob", + + text: `* -> * +a +b +`, + key: `(a -> b)[0]`, + exp: `* -> * +a +b +(a -> b)[0]: null +`, + }, + { + name: "glob-child/1", + + text: `*.b +a +`, + key: `a.b`, + exp: `*.b +a +a.b: null `, }, } diff --git a/d2oracle/get.go b/d2oracle/get.go index c33a465973..6b8b2e259b 100644 --- a/d2oracle/get.go +++ b/d2oracle/get.go @@ -142,6 +142,9 @@ func GetParentID(g *d2graph.Graph, boardPath []string, absID string) (string, er func IsImportedObj(ast *d2ast.Map, obj *d2graph.Object) bool { for _, ref := range obj.References { + if ref.Key.HasGlob() { + return true + } if ref.Key.Range.Path != ast.Range.Path { return true } @@ -150,8 +153,13 @@ func IsImportedObj(ast *d2ast.Map, obj *d2graph.Object) bool { return false } +// Globs count as imported for now +// TODO Probably rename later func IsImportedEdge(ast *d2ast.Map, edge *d2graph.Edge) bool { for _, ref := range edge.References { + if ref.Edge.Src.HasGlob() || ref.Edge.Dst.HasGlob() { + return true + } if ref.Edge.Range.Path != ast.Range.Path { return true } diff --git a/testdata/d2compiler/TestCompile2/globs/override-edge.exp.json b/testdata/d2compiler/TestCompile2/globs/override-edge.exp.json new file mode 100644 index 0000000000..21decc39b2 --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/override-edge.exp.json @@ -0,0 +1,478 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,0:0:0-4:0:68", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:0:1-1:29:30", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:1:2-1:7:8", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:8:9-1:11:12", + "int": null, + "glob": true + }, + "edge_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:12:13-1:24:25", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:12:13-1:17:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:18:19-1:24:25", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,1:26:27-1:29:30", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:0:31-2:29:60", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:0:31-2:6:37", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:0:31-2:1:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:0:31-2:1:32", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:5:36-2:6:37", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:5:36-2:6:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:8:39-2:29:60", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:9:40-2:28:59", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:9:40-2:21:52", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:9:40-2:14:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:15:46-2:21:52", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:23:54-2:28:59", + "value": [ + { + "string": "green", + "raw_string": "green" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:0:61-3:6:67", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:0:61-3:6:67", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:0:61-3:1:62", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:0:61-3:1:62", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:5:66-3:6:67", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:5:66-3:6:67", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": [ + { + "index": 0, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "green" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "index": 1, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:0:31-2:1:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:0:31-2:1:32", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:0:61-3:1:62", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:0:61-3:1:62", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:5:36-2:6:37", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,2:5:36-2:6:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:5:66-3:6:67", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge.d2,3:5:66-3:6:67", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": null +} diff --git a/testdata/d2compiler/TestCompile2/globs/override-edge/1.exp.json b/testdata/d2compiler/TestCompile2/globs/override-edge/1.exp.json new file mode 100644 index 0000000000..fed08dc947 --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/override-edge/1.exp.json @@ -0,0 +1,403 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,0:0:0-4:0:70", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:0:1-1:29:30", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:1:2-1:7:8", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:8:9-1:11:12", + "int": null, + "glob": true + }, + "edge_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:12:13-1:24:25", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:12:13-1:17:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:18:19-1:24:25", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,1:26:27-1:29:30", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:0:31-2:31:62", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:1:32-2:7:38", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:8:39-2:11:42", + "int": null, + "glob": true + }, + "edge_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:12:43-2:24:55", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,2:26:57-2:31:62", + "value": [ + { + "string": "green", + "raw_string": "green" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:0:63-3:6:69", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:0:63-3:6:69", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:0:63-3:1:64", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:0:63-3:1:64", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:5:68-3:6:69", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:5:68-3:6:69", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": [ + { + "index": 0, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "green" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:0:63-3:1:64", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:0:63-3:1:64", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:5:68-3:6:69", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/1.d2,3:5:68-3:6:69", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": null +} diff --git a/testdata/d2compiler/TestCompile2/globs/override-edge/2.exp.json b/testdata/d2compiler/TestCompile2/globs/override-edge/2.exp.json new file mode 100644 index 0000000000..28e9b10366 --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/override-edge/2.exp.json @@ -0,0 +1,479 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,0:0:0-4:0:68", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:0:1-1:29:30", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:1:2-1:7:8", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:8:9-1:11:12", + "int": null, + "glob": true + }, + "edge_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:12:13-1:24:25", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:12:13-1:17:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:18:19-1:24:25", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,1:26:27-1:29:30", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:0:31-2:29:60", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:0:31-2:6:37", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:0:31-2:1:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:0:31-2:1:32", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:5:36-2:6:37", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:5:36-2:6:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:8:39-2:29:60", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:9:40-2:28:59", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:9:40-2:21:52", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:9:40-2:14:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:15:46-2:21:52", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:23:54-2:28:59", + "value": [ + { + "string": "green", + "raw_string": "green" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:0:61-3:6:67", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:0:61-3:6:67", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:0:61-3:1:62", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:0:61-3:1:62", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:5:66-3:6:67", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:5:66-3:6:67", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": [ + { + "index": 0, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "green" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "index": 1, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "red" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:0:31-2:1:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:0:31-2:1:32", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:0:61-3:1:62", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:0:61-3:1:62", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:5:36-2:6:37", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,2:5:36-2:6:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:5:66-3:6:67", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/override-edge/2.d2,3:5:66-3:6:67", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": null +} diff --git a/testdata/d2ir/TestCompile/filters/edge.exp.json b/testdata/d2ir/TestCompile/filters/edge.exp.json index 836b33ce87..b975d17d33 100644 --- a/testdata/d2ir/TestCompile/filters/edge.exp.json +++ b/testdata/d2ir/TestCompile/filters/edge.exp.json @@ -824,27 +824,32 @@ }, "due_to_glob": true, "due_to_lazy_glob": false - }, + } + ] + }, + { + "name": "y", + "references": [ { "string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "value": [ { - "string": "x", - "raw_string": "x" + "string": "y", + "raw_string": "y" } ] }, "key_path": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "value": [ { - "string": "x", - "raw_string": "x" + "string": "y", + "raw_string": "y" } ] } @@ -853,13 +858,13 @@ }, "context": { "edge": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", + "range": "TestCompile/filters/edge.d2,0:0:0-0:6:6", "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", "value": [ { "string": "x", @@ -872,19 +877,16 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "value": [ { - "string": "*", - "raw_string": "*" + "string": "y", + "raw_string": "y" } - ], - "pattern": [ - "*" ] } } @@ -893,16 +895,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/filters/edge.d2,6:0:86-10:1:203", + "range": "TestCompile/filters/edge.d2,0:0:0-3:1:77", "edges": [ { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", + "range": "TestCompile/filters/edge.d2,0:0:0-0:6:6", "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", "value": [ { "string": "x", @@ -915,19 +917,16 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", "value": [ { - "string": "*", - "raw_string": "*" + "string": "y", + "raw_string": "y" } - ], - "pattern": [ - "*" ] } } @@ -936,26 +935,20 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/filters/edge.d2,6:8:94-6:11:97", - "int": null, - "glob": true - }, "primary": {}, "value": { "map": { - "range": "TestCompile/filters/edge.d2,6:13:99-10:1:203", + "range": "TestCompile/filters/edge.d2,0:8:8-3:1:77", "nodes": [ { "map_key": { - "range": "TestCompile/filters/edge.d2,7:1:102-7:33:134", - "ampersand": true, + "range": "TestCompile/filters/edge.d2,1:1:11-1:32:42", "key": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", + "range": "TestCompile/filters/edge.d2,1:1:11-1:23:33", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", + "range": "TestCompile/filters/edge.d2,1:1:11-1:17:27", "value": [ { "string": "source-arrowhead", @@ -966,7 +959,7 @@ }, { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", + "range": "TestCompile/filters/edge.d2,1:18:28-1:23:33", "value": [ { "string": "shape", @@ -980,7 +973,7 @@ "primary": {}, "value": { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:26:127-7:33:134", + "range": "TestCompile/filters/edge.d2,1:25:35-1:32:42", "value": [ { "string": "diamond", @@ -993,14 +986,13 @@ }, { "map_key": { - "range": "TestCompile/filters/edge.d2,8:1:136-8:33:168", - "ampersand": true, + "range": "TestCompile/filters/edge.d2,2:1:44-2:32:75", "key": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", + "range": "TestCompile/filters/edge.d2,2:1:44-2:23:66", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", + "range": "TestCompile/filters/edge.d2,2:1:44-2:17:60", "value": [ { "string": "target-arrowhead", @@ -1011,7 +1003,7 @@ }, { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", + "range": "TestCompile/filters/edge.d2,2:18:61-2:23:66", "value": [ { "string": "shape", @@ -1025,7 +1017,7 @@ "primary": {}, "value": { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:26:161-8:33:168", + "range": "TestCompile/filters/edge.d2,2:25:68-2:32:75", "value": [ { "string": "diamond", @@ -1035,68 +1027,35 @@ } } } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:32:201", - "key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", - "value": [ - { - "string": "diamond shape arrowheads", - "raw_string": "diamond shape arrowheads" - } - ] - } - } - } } ] } } } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { "string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "value": [ { - "string": "x", - "raw_string": "x" + "string": "y", + "raw_string": "y" } ] }, "key_path": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "value": [ { - "string": "x", - "raw_string": "x" + "string": "y", + "raw_string": "y" } ] } @@ -1105,13 +1064,13 @@ }, "context": { "edge": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", + "range": "TestCompile/filters/edge.d2,4:0:78-4:6:84", "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", "value": [ { "string": "x", @@ -1124,19 +1083,16 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "value": [ { - "string": "*", - "raw_string": "*" + "string": "y", + "raw_string": "y" } - ], - "pattern": [ - "*" ] } } @@ -1145,16 +1101,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/filters/edge.d2,6:0:86-10:1:203", + "range": "TestCompile/filters/edge.d2,4:0:78-4:6:84", "edges": [ { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", + "range": "TestCompile/filters/edge.d2,4:0:78-4:6:84", "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", "value": [ { "string": "x", @@ -1167,19 +1123,16 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", + "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", "value": [ { - "string": "*", - "raw_string": "*" + "string": "y", + "raw_string": "y" } - ], - "pattern": [ - "*" ] } } @@ -1188,507 +1141,50 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/filters/edge.d2,6:8:94-6:11:97", - "int": null, - "glob": true - }, "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/edge.d2,6:13:99-10:1:203", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/edge.d2,7:1:102-7:33:134", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:26:127-7:33:134", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,8:1:136-8:33:168", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:26:161-8:33:168", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:32:201", - "key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", - "value": [ - { - "string": "diamond shape arrowheads", - "raw_string": "diamond shape arrowheads" - } - ] - } - } - } - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "name": "y", - "references": [ - { - "string": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/filters/edge.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/edge.d2,0:0:0-3:1:77", - "edges": [ - { - "range": "TestCompile/filters/edge.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,0:5:5-0:6:6", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/edge.d2,0:8:8-3:1:77", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/edge.d2,1:1:11-1:32:42", - "key": { - "range": "TestCompile/filters/edge.d2,1:1:11-1:23:33", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,1:1:11-1:17:27", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,1:18:28-1:23:33", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,1:25:35-1:32:42", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,2:1:44-2:32:75", - "key": { - "range": "TestCompile/filters/edge.d2,2:1:44-2:23:66", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,2:1:44-2:17:60", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,2:18:61-2:23:66", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,2:25:68-2:32:75", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/filters/edge.d2,4:0:78-4:6:84", - "src": { - "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/edge.d2,4:0:78-4:6:84", - "edges": [ - { - "range": "TestCompile/filters/edge.d2,4:0:78-4:6:84", - "src": { - "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,4:0:78-4:1:79", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,4:5:83-4:6:84", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": [ - { - "edge_id": { - "src_path": [ - "x" - ], - "src_arrow": false, - "dst_path": [ - "y" - ], - "dst_arrow": true, - "index": 0, - "glob": false - }, - "map": { - "fields": [ - { - "name": "source-arrowhead", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/filters/edge.d2,1:25:35-1:32:42", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - }, - "references": [ + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "x" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "source-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/filters/edge.d2,1:25:35-1:32:42", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ { "string": { "range": "TestCompile/filters/edge.d2,1:18:28-1:23:33", @@ -1774,92 +1270,6 @@ "due_to_glob": false, "due_to_lazy_glob": false }, - { - "string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/edge.d2,7:1:102-7:33:134", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:26:127-7:33:134", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, { "string": { "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", @@ -2009,93 +1419,7 @@ }, { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,1:18:28-1:23:33", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,1:25:35-1:32:42", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/edge.d2,7:1:102-7:33:134", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", + "range": "TestCompile/filters/edge.d2,1:18:28-1:23:33", "value": [ { "string": "shape", @@ -2109,7 +1433,7 @@ "primary": {}, "value": { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:26:127-7:33:134", + "range": "TestCompile/filters/edge.d2,1:25:35-1:32:42", "value": [ { "string": "diamond", @@ -2120,7 +1444,7 @@ } } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { @@ -2314,92 +1638,6 @@ "due_to_glob": false, "due_to_lazy_glob": false }, - { - "string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/edge.d2,8:1:136-8:33:168", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:26:161-8:33:168", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, { "string": { "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", @@ -2662,172 +1900,23 @@ }, "due_to_glob": true, "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/edge.d2,8:1:136-8:33:168", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:26:161-8:33:168", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "name": "label", - "primary": { - "value": { - "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", - "value": [ - { - "string": "diamond shape arrowheads", - "raw_string": "diamond shape arrowheads" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:32:201", - "key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", - "value": [ - { - "string": "diamond shape arrowheads", - "raw_string": "diamond shape arrowheads" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + } + ] + }, + { + "name": "label", + "primary": { + "value": { + "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", + "value": [ + { + "string": "diamond shape arrowheads", + "raw_string": "diamond shape arrowheads" + } + ] + } + }, + "references": [ { "string": { "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", @@ -3028,255 +2117,28 @@ }, { "map_key": { - "range": "TestCompile/filters/edge.d2,2:1:44-2:32:75", - "key": { - "range": "TestCompile/filters/edge.d2,2:1:44-2:23:66", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,2:1:44-2:17:60", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,2:18:61-2:23:66", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,2:25:68-2:32:75", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", - "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/edge.d2,6:0:86-10:1:203", - "edges": [ - { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", - "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/filters/edge.d2,6:8:94-6:11:97", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/edge.d2,6:13:99-10:1:203", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/edge.d2,7:1:102-7:33:134", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:26:127-7:33:134", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,8:1:136-8:33:168", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:26:161-8:33:168", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:32:201", + "range": "TestCompile/filters/edge.d2,2:1:44-2:32:75", "key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", + "range": "TestCompile/filters/edge.d2,2:1:44-2:23:66", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", + "range": "TestCompile/filters/edge.d2,2:1:44-2:17:60", "value": [ { - "string": "label", - "raw_string": "label" + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/edge.d2,2:18:61-2:23:66", + "value": [ + { + "string": "shape", + "raw_string": "shape" } ] } @@ -3286,11 +2148,11 @@ "primary": {}, "value": { "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", + "range": "TestCompile/filters/edge.d2,2:25:68-2:32:75", "value": [ { - "string": "diamond shape arrowheads", - "raw_string": "diamond shape arrowheads" + "string": "diamond", + "raw_string": "diamond" } ] } @@ -3302,7 +2164,7 @@ } } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { @@ -3865,233 +2727,6 @@ }, "due_to_glob": true, "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", - "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/edge.d2,6:0:86-10:1:203", - "edges": [ - { - "range": "TestCompile/filters/edge.d2,6:1:87-6:7:93", - "src": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,6:6:92-6:7:93", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/filters/edge.d2,6:8:94-6:11:97", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/edge.d2,6:13:99-10:1:203", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/edge.d2,7:1:102-7:33:134", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:24:125", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", - "value": [ - { - "string": "source-arrowhead", - "raw_string": "source-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,7:26:127-7:33:134", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,8:1:136-8:33:168", - "ampersand": true, - "key": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:24:159", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,8:26:161-8:33:168", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:32:201", - "key": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/edge.d2,9:8:177-9:32:201", - "value": [ - { - "string": "diamond shape arrowheads", - "raw_string": "diamond shape arrowheads" - } - ] - } - } - } - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json index 2ead5445f9..0fc2941dcc 100644 --- a/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json +++ b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json @@ -693,179 +693,6 @@ "due_to_glob": true, "due_to_lazy_glob": true }, - { - "string": { - "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/label-filter/2.d2,1:0:1-1:30:31", - "edges": [ - { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/filters/label-filter/2.d2,1:8:9-1:11:12", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/2.d2,1:27:28-1:30:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, { "string": { "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", @@ -1128,7 +955,7 @@ }, { "string": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", "value": [ { "string": "style", @@ -1137,11 +964,11 @@ ] }, "key_path": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:25:26", + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", "value": [ { "string": "style", @@ -1152,7 +979,7 @@ }, { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", "value": [ { "string": "opacity", @@ -1164,203 +991,30 @@ ] }, "context": { - "edge": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79", + "key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", "value": [ { - "string": "*", - "raw_string": "*" + "string": "style", + "raw_string": "style" } - ], - "pattern": [ - "*" ] } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "path": [ + }, { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", "value": [ { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/label-filter/2.d2,1:0:1-1:30:31", - "edges": [ - { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/filters/label-filter/2.d2,1:8:9-1:11:12", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/2.d2,1:27:28-1:30:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79", - "key": { - "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" + "string": "opacity", + "raw_string": "opacity" } ] } @@ -1807,13 +1461,13 @@ { "context": { "edge": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40", "src": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", "value": [ { "string": "*", @@ -1829,11 +1483,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", "value": [ { "string": "*", @@ -1850,16 +1504,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/filters/label-filter/2.d2,1:0:1-1:30:31", + "range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81", "edges": [ { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40", "src": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:1:2-1:2:3", + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", "value": [ { "string": "*", @@ -1875,11 +1529,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", "path": [ { "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:6:7-1:7:8", + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", "value": [ { "string": "*", @@ -1897,43 +1551,90 @@ } ], "edge_index": { - "range": "TestCompile/filters/label-filter/2.d2,1:8:9-1:11:12", + "range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44", "int": null, "glob": true }, - "edge_key": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79", + "key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } } - ] + } } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/2.d2,1:27:28-1:30:31", - "raw": "0.1", - "value": "1/10" + ] } } } @@ -2921,6 +2622,374 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79", + "key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79", + "key": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/filters/label-filter/3.exp.json b/testdata/d2ir/TestCompile/filters/label-filter/3.exp.json new file mode 100644 index 0000000000..8683499592 --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/label-filter/3.exp.json @@ -0,0 +1,941 @@ +{ + "fields": [ + { + "name": "x", + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:6:59", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:10:63", + "edges": [ + { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:6:59", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:8:61-6:10:63", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "y", + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:6:59", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:10:63", + "edges": [ + { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:6:59", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:8:61-6:10:63", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "x" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/3.d2,6:8:61-6:10:63", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/3.d2,3:17:46-3:20:49", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:20:49", + "key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/3.d2,3:17:46-3:20:49", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:20:49", + "key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/3.d2,3:17:46-3:20:49", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:6:59", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:10:63", + "edges": [ + { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:6:59", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:0:53-6:1:54", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:5:58-6:6:59", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,6:8:61-6:10:63", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:7:8", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,1:0:1-4:1:51", + "edges": [ + { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:7:8", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/filters/label-filter/3.d2,1:8:9-1:11:12", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter/3.d2,1:13:14-4:1:51", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter/3.d2,2:2:18-2:12:28", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,2:3:19-2:8:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,2:3:19-2:8:24", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,2:10:26-2:12:28", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:20:49", + "key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/3.d2,3:17:46-3:20:49", + "raw": "0.1", + "value": "1/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:7:8", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,1:0:1-4:1:51", + "edges": [ + { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:7:8", + "src": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/filters/label-filter/3.d2,1:8:9-1:11:12", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter/3.d2,1:13:14-4:1:51", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter/3.d2,2:2:18-2:12:28", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter/3.d2,2:3:19-2:8:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,2:3:19-2:8:24", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,2:10:26-2:12:28", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:20:49", + "key": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/3.d2,3:17:46-3:20:49", + "raw": "0.1", + "value": "1/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json index e30ee47895..de8c8b7c48 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json @@ -692,179 +692,6 @@ }, "due_to_glob": true, "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:0:1-1:30:31", - "edges": [ - { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:8:9-1:11:12", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:27:28-1:30:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true } ] } @@ -1044,179 +871,6 @@ }, "due_to_glob": true, "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:0:1-1:30:31", - "edges": [ - { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:8:9-1:11:12", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:27:28-1:30:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true } ] } @@ -1457,143 +1111,6 @@ }, "due_to_glob": true, "due_to_lazy_glob": true - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:0:1-1:30:31", - "edges": [ - { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:7:8", - "src": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:1:2-1:2:3", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:6:7-1:7:8", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:8:9-1:11:12", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:25:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:12:13-1:17:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:18:19-1:25:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/patterns/alixander-review/6.d2,1:27:28-1:30:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json index 03bd3132f4..c35f511d56 100644 --- a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json @@ -800,27 +800,32 @@ }, "due_to_glob": true, "due_to_lazy_glob": false - }, + } + ] + }, + { + "name": "b", + "references": [ { "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] }, "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] } @@ -829,13 +834,13 @@ }, "context": { "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", "value": [ { "string": "a", @@ -848,11 +853,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "value": [ { "string": "b", @@ -866,16 +871,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", "edges": [ { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", "value": [ { "string": "a", @@ -888,11 +893,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "value": [ { "string": "b", @@ -906,75 +911,33 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "value": {} } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] }, "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] } @@ -983,13 +946,13 @@ }, "context": { "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", "value": [ { "string": "a", @@ -1002,11 +965,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "value": [ { "string": "b", @@ -1020,16 +983,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", "edges": [ { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", "value": [ { "string": "a", @@ -1042,11 +1005,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", "value": [ { "string": "b", @@ -1060,75 +1023,33 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "value": {} } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] }, "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] } @@ -1137,13 +1058,13 @@ }, "context": { "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "value": [ { "string": "a", @@ -1156,11 +1077,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "value": [ { "string": "b", @@ -1174,16 +1095,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", "edges": [ { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "value": [ { "string": "a", @@ -1196,11 +1117,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "value": [ { "string": "b", @@ -1214,75 +1135,33 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "value": {} } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] }, "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] } @@ -1419,24 +1298,24 @@ }, { "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] }, "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] } @@ -1573,24 +1452,24 @@ }, { "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] }, "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", "value": [ { - "string": "a", - "raw_string": "a" + "string": "b", + "raw_string": "b" } ] } @@ -1726,309 +1605,434 @@ "due_to_lazy_glob": false } ] - }, + } + ], + "edges": [ { - "name": "b", - "references": [ - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", "value": [ { - "string": "b", - "raw_string": "b" + "string": "red", + "raw_string": "red" } ] } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "value": [ + "references": [ { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "value": [ + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "edges": [ { - "string": "b", - "raw_string": "b" + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" } - ] + ], + "edge_index": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } } - } - ] - }, - "dst_arrow": ">" + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] } ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "path": [ + "edges": null + }, + "references": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", "value": [ { - "string": "b", - "raw_string": "b" + "string": "style", + "raw_string": "style" } ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", + }, + "key_path": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "edges": [ + { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", "edges": [ { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", + "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", "value": [ { "string": "a", @@ -2041,11 +2045,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", + "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", "value": [ { "string": "b", @@ -2067,31 +2071,6 @@ "due_to_lazy_glob": false }, { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, "context": { "edge": { "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", @@ -2198,4649 +2177,63 @@ "string": "fill", "raw_string": "fill" } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": [ - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "b" - ], - "dst_arrow": true, - "index": 0, - "glob": false - }, - "map": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "b" - ], - "dst_arrow": true, - "index": 1, - "glob": false - }, - "map": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "b" - ], - "dst_arrow": true, - "index": 2, - "glob": false - }, - "map": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 1, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ { "string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", @@ -7046,163 +2439,396 @@ } ] } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "edges": [ + { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", + "edges": [ + { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:6:13", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:0:7-1:1:8", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,1:5:12-1:6:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ + { + "unquoted_string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } + "string": "a", + "raw_string": "a" } ] - }, - "src_arrow": "", - "dst": { + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } + "string": "b", + "raw_string": "b" } ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "edges": [ + { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "path": [ { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { + "unquoted_string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } + "string": "a", + "raw_string": "a" } ] - }, - "src_arrow": "", - "dst": { + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "path": [ + { + "unquoted_string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } + "string": "b", + "raw_string": "b" } ] - }, - "dst_arrow": ">" + } } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 2, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" } ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" } - ] - }, - "key_path": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, + }, + "references": [ { - "unquoted_string": { + "string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", "value": [ { @@ -7210,138 +2836,168 @@ "raw_string": "fill" } ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { + }, + "key_path": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ + "path": [ { - "string": "a", - "raw_string": "a" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } } ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "edges": [ { - "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ + "path": [ { - "string": "a", - "raw_string": "a" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } } ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } + }, + "dst_arrow": ">" } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ + ], + "edge_index": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, { - "string": "fill", - "raw_string": "fill" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } } ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } } } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } + }, + "due_to_glob": true, + "due_to_lazy_glob": false } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + ] + } + ], + "edges": null + }, + "references": [ { "string": { "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", @@ -7394,351 +3050,135 @@ "raw_string": "a" } ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ - { - "string": "a", - "raw_string": "a" + } } ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", - "edges": [ - { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", - "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "path": [ + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "edges": [ { - "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "src": { "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", - "value": [ + "path": [ { - "string": "a", - "raw_string": "a" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } } ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } + }, + "dst_arrow": ">" } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ + ], + "edge_index": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", + "path": [ { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, { - "string": "fill", - "raw_string": "fill" + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } } ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } } } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } + }, + "due_to_glob": true, + "due_to_lazy_glob": false } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + ] + } + ], + "edges": null + }, + "references": [ { "context": { "edge": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "value": [ { "string": "a", @@ -7751,11 +3191,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "value": [ { "string": "b", @@ -7769,16 +3209,16 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:0:21-3:27:48", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", "edges": [ { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:6:20", "src": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "range": "TestCompile/patterns/edge-glob-index.d2,2:0:14-2:1:15", "value": [ { "string": "a", @@ -7791,11 +3231,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:6:27-3:7:28", + "range": "TestCompile/patterns/edge-glob-index.d2,2:5:19-2:6:20", "value": [ { "string": "b", @@ -7809,53 +3249,11 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:8:29-3:11:32", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:22:43", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:12:33-3:17:38", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:18:39-3:22:43", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/edge-glob-index.d2,3:24:45-3:27:48", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "value": {} } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { diff --git a/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json index 1d9dceda1c..10b67da740 100644 --- a/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json @@ -1431,27 +1431,32 @@ }, "due_to_glob": true, "due_to_lazy_glob": false - }, + } + ] + }, + { + "name": "c", + "references": [ { "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "value": [ { - "string": "b", - "raw_string": "b" + "string": "c", + "raw_string": "c" } ] }, "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "value": [ { - "string": "b", - "raw_string": "b" + "string": "c", + "raw_string": "c" } ] } @@ -1460,21 +1465,18 @@ }, "context": { "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:6:27", "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "value": [ { - "string": "*", - "raw_string": "*" + "string": "c", + "raw_string": "c" } - ], - "pattern": [ - "*" ] } } @@ -1482,11 +1484,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", "value": [ { "string": "b", @@ -1500,24 +1502,21 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:6:27", "edges": [ { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:6:27", "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", "value": [ { - "string": "*", - "raw_string": "*" + "string": "c", + "raw_string": "c" } - ], - "pattern": [ - "*" ] } } @@ -1525,11 +1524,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", "value": [ { "string": "b", @@ -1543,271 +1542,432 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "value": {} } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", "value": [ { - "string": "b", - "raw_string": "b" + "string": "red", + "raw_string": "red" } ] } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" + "references": [ + { + "string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "edges": [ + { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" + }, + "due_to_glob": true, + "due_to_lazy_glob": false } ] } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ + ], + "edges": null + }, + "references": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", "value": [ { - "string": "b", - "raw_string": "b" + "string": "style", + "raw_string": "style" } ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ + }, + "key_path": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "edges": [ + { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", + "value": [ { "string": "b", "raw_string": "b" @@ -1820,24 +1980,21 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:6:6", "edges": [ { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:6:6", "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", "value": [ { - "string": "*", - "raw_string": "*" + "string": "a", + "raw_string": "a" } - ], - "pattern": [ - "*" ] } } @@ -1845,11 +2002,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", "value": [ { "string": "b", @@ -1863,270 +2020,43 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", "value": [ { - "string": "style", - "raw_string": "style" + "string": "*", + "raw_string": "*" } + ], + "pattern": [ + "*" ] } - }, + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", "value": [ { "string": "b", @@ -2229,3795 +2159,44 @@ } } }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "name": "c", - "references": [ - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:6:27", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:6:27", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:6:27", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:0:21-3:1:22", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,3:5:26-3:6:27", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": [ - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "b" - ], - "dst_arrow": true, - "index": 0, - "glob": false - }, - "map": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:6:6", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:6:6", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,0:5:5-0:6:6", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "b" - ], - "dst_arrow": true, - "index": 1, - "glob": false - }, - "map": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:6:13", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:6:13", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:6:13", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - }, - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "b" - ], - "dst_arrow": true, - "index": 2, - "glob": false - }, - "map": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 1, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + ] + } + }, + "references": [ { "string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", @@ -6237,161 +2416,400 @@ "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", "src": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "edges": [ + { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:6:13", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:6:13", + "edges": [ + { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:6:13", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:0:7-1:1:8", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,1:5:12-1:6:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } + "string": "*", + "raw_string": "*" } + ], + "pattern": [ + "*" ] - }, - "src_arrow": "", - "dst": { + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } + "string": "b", + "raw_string": "b" } ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "edges": [ + { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "path": [ { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { + "unquoted_string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } + "string": "*", + "raw_string": "*" } + ], + "pattern": [ + "*" ] - }, - "src_arrow": "", - "dst": { + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "path": [ + { + "unquoted_string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } + "string": "b", + "raw_string": "b" } ] - }, - "dst_arrow": ">" + } } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } + "string": "fill", + "raw_string": "fill" } ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } } } - }, - "due_to_glob": true, - "due_to_lazy_glob": false + ] }, - { - "string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", "value": [ { - "string": "style", - "raw_string": "style" + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 2, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] } - ] - }, - "key_path": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, + }, + "references": [ { - "unquoted_string": { + "string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", "value": [ { @@ -6399,144 +2817,174 @@ "raw_string": "fill" } ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { + }, + "key_path": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ + "path": [ { - "string": "*", - "raw_string": "*" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } } - ], - "pattern": [ - "*" ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "edges": [ { - "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ + "path": [ { - "string": "*", - "raw_string": "*" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } } - ], - "pattern": [ - "*" ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } + }, + "dst_arrow": ">" } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ + ], + "edge_index": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, { - "string": "fill", - "raw_string": "fill" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } } ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + ] + } + ], + "edges": null + }, + "references": [ { "string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", @@ -6603,357 +3051,132 @@ { "unquoted_string": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:6:20", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:6:20", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:6:20", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ - { - "string": "b", - "raw_string": "b" + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", - "edges": [ - { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", - "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "path": [ + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "edges": [ { - "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "src": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", - "value": [ + "path": [ { - "string": "*", - "raw_string": "*" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } } - ], - "pattern": [ - "*" ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "path": [ - { - "unquoted_string": { + }, + "src_arrow": "", + "dst": { "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", - "value": [ + "path": [ { - "string": "b", - "raw_string": "b" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } } ] - } + }, + "dst_arrow": ">" } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ + ], + "edge_index": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", + "path": [ { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, { - "string": "fill", - "raw_string": "fill" + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } } ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } } } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } + }, + "due_to_glob": true, + "due_to_lazy_glob": false } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": false - }, + ] + } + ], + "edges": null + }, + "references": [ { "context": { "edge": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:6:20", "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", "value": [ { - "string": "*", - "raw_string": "*" + "string": "a", + "raw_string": "a" } - ], - "pattern": [ - "*" ] } } @@ -6961,11 +3184,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", "value": [ { "string": "b", @@ -6979,24 +3202,21 @@ "dst_arrow": ">" }, "key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:0:28-4:27:55", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:6:20", "edges": [ { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:6:20", "src": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:1:29-4:2:30", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:0:14-2:1:15", "value": [ { - "string": "*", - "raw_string": "*" + "string": "a", + "raw_string": "a" } - ], - "pattern": [ - "*" ] } } @@ -7004,11 +3224,11 @@ }, "src_arrow": "", "dst": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:6:34-4:7:35", + "range": "TestCompile/patterns/glob-edge-glob-index.d2,2:5:19-2:6:20", "value": [ { "string": "b", @@ -7022,53 +3242,11 @@ "dst_arrow": ">" } ], - "edge_index": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:8:36-4:11:39", - "int": null, - "glob": true - }, - "edge_key": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:22:50", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:12:40-4:17:45", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:18:46-4:22:50", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/glob-edge-glob-index.d2,4:24:52-4:27:55", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } + "value": {} } }, - "due_to_glob": true, + "due_to_glob": false, "due_to_lazy_glob": false }, { diff --git a/testdata/d2oracle/TestDelete/connection-glob.exp.json b/testdata/d2oracle/TestDelete/connection-glob.exp.json new file mode 100644 index 0000000000..f1fb79d619 --- /dev/null +++ b/testdata/d2oracle/TestDelete/connection-glob.exp.json @@ -0,0 +1,312 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:0:0-4:0:29", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:0:0-0:6:6", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:0:0-0:6:6", + "src": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:0:0-0:1:1", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,0:5:5-0:6:6", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,1:0:7-1:1:8", + "key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,1:0:7-1:1:8", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,1:0:7-1:1:8", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,2:0:9-2:1:10", + "key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,2:0:9-2:1:10", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,2:0:9-2:1:10", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:0:11-3:17:28", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:1:12-3:7:18", + "src": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:1:12-3:2:13", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:1:12-3:2:13", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:6:17-3:7:18", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:6:17-3:7:18", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:8:19-3:11:22", + "int": 0, + "glob": false + }, + "primary": {}, + "value": { + "null": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,3:13:24-3:17:28" + } + } + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": [ + { + "index": 0, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,1:0:7-1:1:8", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,1:0:7-1:1:8", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,2:0:9-2:1:10", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/connection-glob.d2,2:0:9-2:1:10", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": "" +} diff --git a/testdata/d2oracle/TestDelete/glob-child/1.exp.json b/testdata/d2oracle/TestDelete/glob-child/1.exp.json new file mode 100644 index 0000000000..415c0c7983 --- /dev/null +++ b/testdata/d2oracle/TestDelete/glob-child/1.exp.json @@ -0,0 +1,212 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,0:0:0-3:0:16", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,0:0:0-0:3:3", + "key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,0:0:0-0:3:3", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,0:0:0-0:1:1", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,0:2:2-0:3:3", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,1:0:4-1:1:5", + "key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,1:0:4-1:1:5", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,1:0:4-1:1:5", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:0:6-2:9:15", + "key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:0:6-2:3:9", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:0:6-2:1:7", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:2:8-2:3:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:5:11-2:9:15" + } + } + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": null, + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,1:0:4-1:1:5", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,1:0:4-1:1:5", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + }, + { + "key": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:0:6-2:3:9", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:0:6-2:1:7", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestDelete/glob-child/1.d2,2:2:8-2:3:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": "" +} diff --git a/testdata/d2oracle/TestSet/glob-field/1.exp.json b/testdata/d2oracle/TestSet/glob-field/1.exp.json new file mode 100644 index 0000000000..ef0bae2ce9 --- /dev/null +++ b/testdata/d2oracle/TestSet/glob-field/1.exp.json @@ -0,0 +1,290 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:0:0-3:0:42", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:0:0-0:17:17", + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:0:0-0:12:12", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:0:0-0:1:1", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:2:2-0:7:7", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:8:8-0:12:12", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,0:14:14-0:17:17", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:0:18-1:21:39", + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:0:18-1:1:19", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:0:18-1:1:19", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:3:21-1:21:39", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:4:22-1:20:38", + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:4:22-1:14:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:4:22-1:9:27", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:10:28-1:14:32", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:16:34-1:20:38", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,2:0:40-2:1:41", + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,2:0:40-2:1:41", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,2:0:40-2:1:41", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": null, + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:0:18-1:1:19", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,1:0:18-1:1:19", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "blue" + } + }, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,2:0:40-2:1:41", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/1.d2,2:0:40-2:1:41", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "red" + } + }, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": "" +} diff --git a/testdata/d2oracle/TestSet/glob-field/2.exp.json b/testdata/d2oracle/TestSet/glob-field/2.exp.json new file mode 100644 index 0000000000..c4f0ab7375 --- /dev/null +++ b/testdata/d2oracle/TestSet/glob-field/2.exp.json @@ -0,0 +1,479 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:0:0-3:0:66", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:0:0-0:29:29", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:1:1-0:7:7", + "src": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:1:1-0:2:2", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:1:1-0:2:2", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:6:6-0:7:7", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:6:6-0:7:7", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:8:8-0:11:11", + "int": null, + "glob": true + }, + "edge_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:12:12-0:24:24", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:12:12-0:17:17", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:18:18-0:24:24", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,0:26:26-0:29:29", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:0:30-1:28:58", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:0:30-1:6:36", + "src": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:0:30-1:1:31", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:0:30-1:1:31", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:5:35-1:6:36", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:5:35-1:6:36", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:8:38-1:28:58", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:9:39-1:27:57", + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:9:39-1:21:51", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:9:39-1:14:44", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:15:45-1:21:51", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:23:53-1:27:57", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:0:59-2:6:65", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:0:59-2:6:65", + "src": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:0:59-2:1:60", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:0:59-2:1:60", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:5:64-2:6:65", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:5:64-2:6:65", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": [ + { + "index": 0, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "blue" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "index": 1, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "red" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:0:30-1:1:31", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:0:30-1:1:31", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:0:59-2:1:60", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:0:59-2:1:60", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:5:35-1:6:36", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,1:5:35-1:6:36", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:5:64-2:6:65", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/2.d2,2:5:64-2:6:65", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": "" +} diff --git a/testdata/d2oracle/TestSet/glob-field/3.exp.json b/testdata/d2oracle/TestSet/glob-field/3.exp.json new file mode 100644 index 0000000000..290195f8fb --- /dev/null +++ b/testdata/d2oracle/TestSet/glob-field/3.exp.json @@ -0,0 +1,479 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:0:0-3:0:67", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:0:0-0:29:29", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:1:1-0:7:7", + "src": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:1:1-0:2:2", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:1:1-0:2:2", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:6:6-0:7:7", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:6:6-0:7:7", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:8:8-0:11:11", + "int": null, + "glob": true + }, + "edge_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:12:12-0:24:24", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:12:12-0:17:17", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:18:18-0:24:24", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,0:26:26-0:29:29", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:0:30-1:29:59", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:0:30-1:6:36", + "src": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:0:30-1:1:31", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:0:30-1:1:31", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:5:35-1:6:36", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:5:35-1:6:36", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:8:38-1:29:59", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:9:39-1:28:58", + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:9:39-1:21:51", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:9:39-1:14:44", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:15:45-1:21:51", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:23:53-1:28:58", + "value": [ + { + "string": "green", + "raw_string": "green" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:0:60-2:6:66", + "edges": [ + { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:0:60-2:6:66", + "src": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:0:60-2:1:61", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:0:60-2:1:61", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:5:65-2:6:66", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:5:65-2:6:66", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": [ + { + "index": 0, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "green" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "index": 1, + "isCurve": false, + "src_arrow": false, + "dst_arrow": true, + "references": [ + { + "map_key_edge_index": 0 + }, + { + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "stroke": { + "value": "red" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:0:30-1:1:31", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:0:30-1:1:31", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:0:60-2:1:61", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:0:60-2:1:61", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "a" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "b", + "id_val": "b", + "references": [ + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:5:35-1:6:36", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,1:5:35-1:6:36", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + }, + { + "key": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:5:65-2:6:66", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2oracle/TestSet/glob-field/3.d2,2:5:65-2:6:66", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": 0 + } + ], + "attributes": { + "label": { + "value": "b" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": {}, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": "" +} From ba207e79cb2519dafb096df170c708217421521d Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Wed, 6 Mar 2024 22:55:20 -0800 Subject: [PATCH 2/3] go 1.21 --- go.mod | 2 +- go.sum | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e27c6847d9..f4f03f2205 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module oss.terrastruct.com/d2 -go 1.20 +go 1.21 require ( cdr.dev/slog v1.4.2-0.20221206192828-e4803b10ae17 diff --git a/go.sum b/go.sum index f39bc661fa..7019bc8fed 100644 --- a/go.sum +++ b/go.sum @@ -3,21 +3,26 @@ cdr.dev/slog v1.4.2-0.20221206192828-e4803b10ae17/go.mod h1:YPVZsUbRMaLaPgme0Rzl cloud.google.com/go v0.26.0 h1:e0WKqKTd5BnrG8aKH3J3h+QvEIQtSUcf2n5UZ5ZgLtQ= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= git.sr.ht/~sbinet/gg v0.5.0 h1:6V43j30HM623V329xA9Ntq+WJrMjDxRjuAB1LFWF5m8= +git.sr.ht/~sbinet/gg v0.5.0/go.mod h1:G2C0eRESqlKhS7ErsNey6HHrqU1PwsnCQlekFi9Q2Oo= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/PuerkitoBio/goquery v1.8.1 h1:uQxhNlArOIdbrH1tr0UXwdVFgDcZDrZVdcpygAcwmWM= github.com/PuerkitoBio/goquery v1.8.1/go.mod h1:Q8ICL1kNUJ2sXGoAhPGUdYDJvgQgHzJsnnd3H7Ho5jQ= github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b h1:slYM766cy2nI3BwyRiyQj/Ud48djTMtMebDqepE95rw= +github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b/go.mod h1:1KcenG0jGWcpt8ov532z81sp/kMMUG485J2InIOyADM= github.com/alecthomas/assert/v2 v2.2.1 h1:XivOgYcduV98QCahG8T5XTezV5bylXe+lBxLG2K2ink= +github.com/alecthomas/assert/v2 v2.2.1/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= github.com/alecthomas/chroma v0.10.0 h1:7XDcGkCQopCNKjZHfYrNLraA+M7e0fMiJ/Mfikbfjek= github.com/alecthomas/chroma v0.10.0/go.mod h1:jtJATyUxlIORhUOFNA9NZDWGAQ8wpxQQqNSB4rjA/1s= github.com/alecthomas/chroma/v2 v2.5.0 h1:CQCdj1BiBV17sD4Bd32b/Bzuiq/EqoNTrnIhyQAZ+Rk= github.com/alecthomas/chroma/v2 v2.5.0/go.mod h1:yrkMI9807G1ROx13fhe1v6PN2DDeaR73L3d+1nmYQtw= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= +github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/andybalholm/cascadia v1.3.1/go.mod h1:R4bJ1UQfqADjvDa4P6HZHLh/3OxWWEqc0Sk8XGwHqvA= github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss= github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU= github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/campoy/embedmd v1.0.0 h1:V4kI2qTJJLf4J29RzI/MAt2c3Bl4dQSYPuflzwFH2hY= +github.com/campoy/embedmd v1.0.0/go.mod h1:oxyr9RCiSXg0M3VJ3ks0UGfp98BpSSGr0kpiX3MzVl8= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= @@ -26,6 +31,7 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= +github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 h1:y5HC9v93H5EPKqaS1UYVg1uYah5Xf51mBfIoWehClUQ= github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964/go.mod h1:Xd9hchkHSWYkEqJwUGisez3G1QY8Ryz0sdWrLPMGjLk= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -78,8 +84,11 @@ github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3Bop github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-fonts/liberation v0.3.1 h1:9RPT2NhUpxQ7ukUvz3jeUckmN42T9D9TpjtQcqK/ceM= +github.com/go-fonts/liberation v0.3.1/go.mod h1:jdJ+cqF+F4SUL2V+qxBth8fvBpBDS7yloUL5Fi8GTGY= github.com/go-latex/latex v0.0.0-20230307184459-12ec69307ad9 h1:NxXI5pTAtpEaU49bpLpQoDsu1zrteW/vxzTz8Cd2UAs= +github.com/go-latex/latex v0.0.0-20230307184459-12ec69307ad9/go.mod h1:gWuR/CrFDDeVRFQwHPvsv9soJVB/iqymhuZQuJ3a9OM= github.com/go-pdf/fpdf v0.8.0 h1:IJKpdaagnWUeSkUFUjTcSzTppFxmv8ucGQyNPQWxYOQ= +github.com/go-pdf/fpdf v0.8.0/go.mod h1:gfqhcNwXrsd3XYKte9a7vM3smvU/jB4ZRDrmWSxpfdc= github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw= @@ -120,6 +129,7 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/h2non/filetype v1.1.1/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= +github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= @@ -318,3 +328,4 @@ nhooyr.io/websocket v1.8.10/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+ oss.terrastruct.com/util-go v0.0.0-20231101220827-55b3812542c2 h1:n6y6RoZCgZDchN4gLGlzNRO1Jdf9xOGGqohDBph5BG8= oss.terrastruct.com/util-go v0.0.0-20231101220827-55b3812542c2/go.mod h1:eMWv0sOtD9T2RUl90DLWfuShZCYp4NrsqNpI8eqO6U4= rsc.io/pdf v0.1.1 h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= From 993e3691e216346ca04b00ffc8cceb18c7c32938 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Wed, 6 Mar 2024 23:03:07 -0800 Subject: [PATCH 3/3] 1.22 --- docs/CONTRIBUTING.md | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index b1b0f6ded9..f1be979992 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -68,7 +68,7 @@ git submodule update --recursive ## Logistics -- Use Go 1.20. +- Use Go 1.22. - Please sign your commits ([https://github.com/terrastruct/d2/pull/557#issuecomment-1367468730](https://github.com/terrastruct/d2/pull/557#issuecomment-1367468730)). - D2 uses Issues as TODOs. No auto-closing on staleness. diff --git a/go.mod b/go.mod index f4f03f2205..106bc616b6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module oss.terrastruct.com/d2 -go 1.21 +go 1.22 require ( cdr.dev/slog v1.4.2-0.20221206192828-e4803b10ae17