From bb6b176deecb9910c14de703c2b191909567e1ee Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 30 Jul 2023 13:52:42 -0700 Subject: [PATCH 01/21] d2ir: Implement lazy globs and triple glob This finishes up the globs implementation! See tests for what I mean by lazy globs and what the triple glob does. --- d2ast/d2ast.go | 83 +- d2ir/compile.go | 126 +- d2ir/d2ir.go | 128 +- d2ir/pattern.go | 36 +- d2ir/pattern_test.go | 113 +- .../patterns/double-glob/defaults.exp.json | 2909 ++++ .../errors/glob-edge-glob-index.exp.json | 667 +- .../patterns/single-glob/defaults.exp.json | 4781 ++++++ .../patterns/triple-glob/defaults.exp.json | 3370 ++++ .../triple-glob/edge-defaults.exp.json | 14050 ++++++++++++++++ 10 files changed, 25522 insertions(+), 741 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json diff --git a/d2ast/d2ast.go b/d2ast/d2ast.go index 8434c4b96..4ec14d289 100644 --- a/d2ast/d2ast.go +++ b/d2ast/d2ast.go @@ -723,7 +723,43 @@ func (mk *Key) SetScalar(scalar ScalarBox) { } } -func (mk *Key) HasQueryGlob() bool { +func (mk *Key) HasGlob() bool { + if mk.Key.HasGlob() { + return true + } + for _, e := range mk.Edges { + if e.Src.HasGlob() || e.Dst.HasGlob() { + return true + } + } + if mk.EdgeIndex != nil && mk.EdgeIndex.Glob { + return true + } + if mk.EdgeKey.HasGlob() { + return true + } + return false +} + +func (mk *Key) HasTripleGlob() bool { + if mk.Key.HasTripleGlob() { + return true + } + for _, e := range mk.Edges { + if e.Src.HasTripleGlob() || e.Dst.HasTripleGlob() { + return true + } + } + if mk.EdgeIndex != nil && mk.EdgeIndex.Glob { + return true + } + if mk.EdgeKey.HasTripleGlob() { + return true + } + return false +} + +func (mk *Key) SupportsGlobFilters() bool { if mk.Key.HasGlob() && len(mk.Edges) == 0 { return true } @@ -736,6 +772,11 @@ func (mk *Key) HasQueryGlob() bool { return false } +func (mk *Key) Copy() *Key { + mk2 := *mk + return &mk2 +} + type KeyPath struct { Range Range `json:"range"` Path []*StringBox `json:"path"` @@ -763,16 +804,12 @@ func (kp *KeyPath) Copy() *KeyPath { return &kp2 } -func (kp *KeyPath) HasDoubleGlob() bool { - if kp == nil { - return false - } - for _, el := range kp.Path { - if el.UnquotedString != nil && el.ScalarString() == "**" { - return true - } - } - return false +func IsDoubleGlob(pattern []string) bool { + return len(pattern) == 3 && pattern[0] == "*" && pattern[1] == "" && pattern[2] == "*" +} + +func IsTripleGlob(pattern []string) bool { + return len(pattern) == 5 && pattern[0] == "*" && pattern[1] == "" && pattern[2] == "*" && pattern[3] == "" && pattern[4] == "*" } func (kp *KeyPath) HasGlob() bool { @@ -787,6 +824,30 @@ func (kp *KeyPath) HasGlob() bool { return false } +func (kp *KeyPath) HasTripleGlob() bool { + if kp == nil { + return false + } + for _, el := range kp.Path { + if el.UnquotedString != nil && IsTripleGlob(el.UnquotedString.Pattern) { + return true + } + } + return false +} + +func (kp *KeyPath) HasMultiGlob() bool { + if kp == nil { + return false + } + for _, el := range kp.Path { + if el.UnquotedString != nil && (IsDoubleGlob(el.UnquotedString.Pattern) || IsTripleGlob(el.UnquotedString.Pattern)) { + return true + } + } + return false +} + type Edge struct { Range Range `json:"range"` diff --git a/d2ir/compile.go b/d2ir/compile.go index 7d5e61493..43e19e8b2 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -5,14 +5,23 @@ import ( "strconv" "strings" + "oss.terrastruct.com/util-go/go2" + "oss.terrastruct.com/d2/d2ast" "oss.terrastruct.com/d2/d2format" "oss.terrastruct.com/d2/d2parser" "oss.terrastruct.com/d2/d2themes" "oss.terrastruct.com/d2/d2themes/d2themescatalog" - "oss.terrastruct.com/util-go/go2" ) +type globContext struct { + refctx *RefContext + // Set of BoardIDA that this glob has already applied to. + appliedFields map[string]struct{} + // Set of Edge IDs that this glob has already applied to. + appliedEdges map[string]struct{} +} + type compiler struct { err *d2parser.ParseError @@ -23,7 +32,12 @@ type compiler struct { importCache map[string]*Map utf16Pos bool - globStack []bool + // Stack of globs that must be recomputed at each new object in and below the current scope. + globContextStack [][]*globContext + // Used to prevent field globs causing infinite loops. + globRefContextStack []*RefContext + // Used to check whether ampersands are allowed in the current map. + mapRefContextStack []*RefContext } type CompileOptions struct { @@ -346,6 +360,52 @@ func (c *compiler) overlay(base *Map, f *Field) { } func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { + var globs []*globContext + if len(c.globContextStack) > 0 { + previousGlobs := c.globContextStack[len(c.globContextStack)-1] + if NodeBoardKind(dst) == BoardLayer { + for _, g := range previousGlobs { + if g.refctx.Key.HasTripleGlob() { + // Same as below but reset applied too. + g2 := *g + g2.refctx = g.refctx.Copy() + g2.appliedFields = make(map[string]struct{}) + g2.appliedEdges = make(map[string]struct{}) + prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) + g2.refctx.Key = g2.refctx.Key.Copy() + if g2.refctx.Key.Key != nil { + prefix.Path = append(prefix.Path, g2.refctx.Key.Key.Path...) + } + if len(prefix.Path) > 0 { + g2.refctx.Key.Key = prefix + } + globs = append(globs, &g2) + } + } + } else if NodeBoardKind(dst) != "" { + // Make all globs relative to the scenario or step. + for _, g := range previousGlobs { + g2 := *g + g2.refctx = g.refctx.Copy() + prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) + g2.refctx.Key = g2.refctx.Key.Copy() + if g2.refctx.Key.Key != nil { + prefix.Path = append(prefix.Path, g2.refctx.Key.Key.Path...) + } + if len(prefix.Path) > 0 { + g2.refctx.Key.Key = prefix + } + globs = append(globs, &g2) + } + } else { + globs = append(globs, previousGlobs...) + } + } + c.globContextStack = append(c.globContextStack, globs) + defer func() { + c.globContextStack = c.globContextStack[:len(c.globContextStack)-1] + }() + for _, n := range ast.Nodes { switch { case n.MapKey != nil: @@ -403,7 +463,47 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { } } +func (c *compiler) globContexts() []*globContext { + return c.globContextStack[len(c.globContextStack)-1] +} + +func (c *compiler) getGlobContext(refctx *RefContext) *globContext { + for _, gctx := range c.globContexts() { + if gctx.refctx.Equal(refctx) { + return gctx + } + } + return nil +} + +func (c *compiler) ensureGlobContext(refctx *RefContext) *globContext { + gctx := c.getGlobContext(refctx) + if gctx != nil { + return gctx + } + gctx = &globContext{ + refctx: refctx, + appliedFields: make(map[string]struct{}), + appliedEdges: make(map[string]struct{}), + } + c.globContextStack[len(c.globContextStack)-1] = append(c.globContexts(), gctx) + return gctx +} + func (c *compiler) compileKey(refctx *RefContext) { + if refctx.Key.HasGlob() { + for _, refctx2 := range c.globRefContextStack { + if refctx.Equal(refctx2) { + // Break the infinite loop. + return + } + } + c.globRefContextStack = append(c.globRefContextStack, refctx) + defer func() { + c.globRefContextStack = c.globRefContextStack[:len(c.globRefContextStack)-1] + }() + c.ensureGlobContext(refctx) + } if len(refctx.Key.Edges) == 0 { c.compileField(refctx.ScopeMap, refctx.Key.Key, refctx) } else { @@ -416,7 +516,7 @@ func (c *compiler) compileField(dst *Map, kp *d2ast.KeyPath, refctx *RefContext) return } - fa, err := dst.EnsureField(kp, refctx, true) + fa, err := dst.EnsureField(kp, refctx, true, c) if err != nil { c.err.Errors = append(c.err.Errors, err.(d2ast.Error)) return @@ -431,7 +531,7 @@ func (c *compiler) ampersandFilter(refctx *RefContext) bool { if !refctx.Key.Ampersand { return true } - if len(c.globStack) == 0 || !c.globStack[len(c.globStack)-1] { + if len(c.mapRefContextStack) == 0 || !c.mapRefContextStack[len(c.mapRefContextStack)-1].Key.SupportsGlobFilters() { c.errorf(refctx.Key, "glob filters cannot be used outside globs") return false } @@ -439,7 +539,7 @@ func (c *compiler) ampersandFilter(refctx *RefContext) bool { return true } - fa, err := refctx.ScopeMap.EnsureField(refctx.Key.Key, refctx, false) + fa, err := refctx.ScopeMap.EnsureField(refctx.Key.Key, refctx, false, c) if err != nil { c.err.Errors = append(c.err.Errors, err.(d2ast.Error)) return false @@ -532,9 +632,9 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { // If new board type, use that as the new scope AST, otherwise, carry on scopeAST = refctx.ScopeAST } - c.globStack = append(c.globStack, refctx.Key.HasQueryGlob()) + c.mapRefContextStack = append(c.mapRefContextStack, refctx) c.compileMap(f.Map(), refctx.Key.Value.Map, scopeAST) - c.globStack = c.globStack[:len(c.globStack)-1] + c.mapRefContextStack = c.mapRefContextStack[:len(c.mapRefContextStack)-1] switch NodeBoardKind(f) { case BoardScenario, BoardStep: c.overlayClasses(f.Map()) @@ -692,7 +792,7 @@ func (c *compiler) compileEdges(refctx *RefContext) { return } - fa, err := refctx.ScopeMap.EnsureField(refctx.Key.Key, refctx, true) + fa, err := refctx.ScopeMap.EnsureField(refctx.Key.Key, refctx, true, c) if err != nil { c.err.Errors = append(c.err.Errors, err.(d2ast.Error)) return @@ -728,7 +828,9 @@ func (c *compiler) _compileEdges(refctx *RefContext) { if eid.Index != nil || eid.Glob { ea = refctx.ScopeMap.GetEdges(eid, refctx) if len(ea) == 0 { - c.errorf(refctx.Edge, "indexed edge does not exist") + if !eid.Glob { + c.errorf(refctx.Edge, "indexed edge does not exist") + } continue } for _, e := range ea { @@ -740,7 +842,7 @@ func (c *compiler) _compileEdges(refctx *RefContext) { } } else { var err error - ea, err = refctx.ScopeMap.CreateEdge(eid, refctx) + ea, err = refctx.ScopeMap.CreateEdge(eid, refctx, c) if err != nil { c.err.Errors = append(c.err.Errors, err.(d2ast.Error)) continue @@ -771,9 +873,9 @@ func (c *compiler) _compileEdges(refctx *RefContext) { parent: e, } } - c.globStack = append(c.globStack, refctx.Key.HasQueryGlob()) + c.mapRefContextStack = append(c.mapRefContextStack, refctx) c.compileMap(e.Map_, refctx.Key.Value.Map, refctx.ScopeAST) - c.globStack = c.globStack[:len(c.globStack)-1] + c.mapRefContextStack = c.mapRefContextStack[:len(c.mapRefContextStack)-1] } else if refctx.Key.Value.ScalarBox().Unbox() != nil { e.Primary_ = &Scalar{ parent: e, diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 4550a9857..3f0da6feb 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -245,7 +245,11 @@ func NodeBoardKind(n Node) BoardKind { } f = ParentField(n) case *Map: - f = ParentField(n) + var ok bool + f, ok = n.parent.(*Field) + if !ok { + return "" + } if f.Root() { return BoardLayer } @@ -569,6 +573,10 @@ func (rc *RefContext) EdgeIndex() int { return -1 } +func (rc *RefContext) Equal(rc2 *RefContext) bool { + return rc.Edge == rc2.Edge && rc.Key.Equals(rc2.Key) && rc.Scope == rc2.Scope && rc.ScopeMap == rc2.ScopeMap && rc.ScopeAST == rc2.ScopeAST +} + func (m *Map) FieldCountRecursive() int { if m == nil { return 0 @@ -667,7 +675,7 @@ func (m *Map) getField(ida []string) *Field { } // EnsureField is a bit of a misnomer. It's more of a Query/Ensure combination function at this point. -func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool) ([]*Field, error) { +func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool, c *compiler) ([]*Field, error) { i := 0 for kp.Path[i].Unbox().ScalarString() == "_" { m = ParentMap(m) @@ -680,18 +688,47 @@ func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool) ([ i++ } + var gctx *globContext + if refctx != nil && refctx.Key.HasGlob() && c != nil { + gctx = c.getGlobContext(refctx) + } + var fa []*Field - err := m.ensureField(i, kp, refctx, create, &fa) - return fa, err + err := m.ensureField(i, kp, refctx, create, gctx, c, &fa) + if err != nil { + return fa, err + } + if len(fa) > 0 && create && c != nil { + for _, gctx2 := range c.globContexts() { + c.compileKey(gctx2.refctx) + } + } + return fa, nil } -func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create bool, fa *[]*Field) error { +func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create bool, gctx *globContext, c *compiler, fa *[]*Field) error { + faAppend := func(fa2 ...*Field) { + for _, f := range fa2 { + if gctx != nil { + // Always match all commons, sources and destinations for edge globs. + if len(refctx.Key.Edges) == 0 || kp == refctx.Key.EdgeKey { + ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) + if _, ok := gctx.appliedFields[ks]; ok { + continue + } + gctx.appliedFields[ks] = struct{}{} + } + } + *fa = append(*fa, f) + } + } + us, ok := kp.Path[i].Unbox().(*d2ast.UnquotedString) if ok && us.Pattern != nil { - fa2, ok := m.doubleGlob(us.Pattern) + fa2, ok := m.multiGlob(us.Pattern) if ok { if i == len(kp.Path)-1 { - *fa = append(*fa, fa2...) + faAppend(fa2...) } else { for _, f := range fa2 { if f.Map() == nil { @@ -699,7 +736,7 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b parent: f, } } - err := f.Map().ensureField(i+1, kp, refctx, create, fa) + err := f.Map().ensureField(i+1, kp, refctx, create, gctx, c, fa) if err != nil { return err } @@ -710,14 +747,14 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b for _, f := range m.Fields { if matchPattern(f.Name, us.Pattern) { if i == len(kp.Path)-1 { - *fa = append(*fa, f) + faAppend(f) } else { if f.Map() == nil { f.Composite = &Map{ parent: f, } } - err := f.Map().ensureField(i+1, kp, refctx, create, fa) + err := f.Map().ensureField(i+1, kp, refctx, create, gctx, c, fa) if err != nil { return err } @@ -763,7 +800,7 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b } if i+1 == len(kp.Path) { - *fa = append(*fa, f) + faAppend(f) return nil } if _, ok := f.Composite.(*Array); ok { @@ -774,7 +811,7 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b parent: f, } } - return f.Map().ensureField(i+1, kp, refctx, create, fa) + return f.Map().ensureField(i+1, kp, refctx, create, gctx, c, fa) } if !create { @@ -797,10 +834,12 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b *fa = append(*fa, f) return nil } - f.Composite = &Map{ - parent: f, + if f.Composite == nil { + f.Composite = &Map{ + parent: f, + } } - return f.Map().ensureField(i+1, kp, refctx, create, fa) + return f.Map().ensureField(i+1, kp, refctx, create, gctx, c, fa) } func (m *Map) DeleteEdge(eid *EdgeID) *Edge { @@ -914,7 +953,7 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { } } } - fa, err := m.EnsureField(commonKP, nil, false) + fa, err := m.EnsureField(commonKP, nil, false, nil) if err != nil { return nil } @@ -935,11 +974,11 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { return nil } - srcFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Src, nil, false) + srcFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Src, nil, false, nil) if err != nil { return err } - dstFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Dst, nil, false) + dstFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Dst, nil, false, nil) if err != nil { return err } @@ -957,12 +996,25 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { return nil } -func (m *Map) CreateEdge(eid *EdgeID, refctx *RefContext) ([]*Edge, error) { +func (m *Map) CreateEdge(eid *EdgeID, refctx *RefContext, c *compiler) ([]*Edge, error) { var ea []*Edge - return ea, m.createEdge(eid, refctx, &ea) + var gctx *globContext + if refctx != nil && refctx.Key.HasGlob() && c != nil { + gctx = c.getGlobContext(refctx) + } + err := m.createEdge(eid, refctx, gctx, c, &ea) + if err != nil { + return ea, err + } + if len(ea) > 0 && c != nil { + for _, gctx2 := range c.globContexts() { + c.compileKey(gctx2.refctx) + } + } + return ea, nil } -func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { +func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, gctx *globContext, c *compiler, ea *[]*Edge) error { if ParentEdge(m) != nil { return d2parser.Errorf(refctx.Edge, "cannot create edge inside edge") } @@ -983,7 +1035,7 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { } } } - fa, err := m.EnsureField(commonKP, nil, true) + fa, err := m.EnsureField(commonKP, nil, true, c) if err != nil { return err } @@ -996,7 +1048,7 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { parent: f, } } - err = f.Map().createEdge(eid, refctx, ea) + err = f.Map().createEdge(eid, refctx, gctx, c, ea) if err != nil { return err } @@ -1022,11 +1074,11 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { return d2parser.Errorf(refctx.Edge.Dst.Path[ij].Unbox(), "edge with board keyword alone doesn't make sense") } - srcFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Src, refctx, true) + srcFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Src, refctx, true, c) if err != nil { return err } - dstFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Dst, refctx, true) + dstFA, err := refctx.ScopeMap.EnsureField(refctx.Edge.Dst, refctx, true, c) if err != nil { return err } @@ -1038,21 +1090,21 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { continue } - if refctx.Edge.Src.HasDoubleGlob() { + if refctx.Edge.Src.HasMultiGlob() { // If src has a double glob we only select leafs, those without children. if src.Map().IsContainer() { continue } - if ParentBoard(src) != ParentBoard(dst) { + if NodeBoardKind(src) != "" || ParentBoard(src) != ParentBoard(dst) { continue } } - if refctx.Edge.Dst.HasDoubleGlob() { + if refctx.Edge.Dst.HasMultiGlob() { // If dst has a double glob we only select leafs, those without children. if dst.Map().IsContainer() { continue } - if ParentBoard(src) != ParentBoard(dst) { + if NodeBoardKind(dst) != "" || ParentBoard(src) != ParentBoard(dst) { continue } } @@ -1060,17 +1112,20 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { eid2 := eid.Copy() eid2.SrcPath = RelIDA(m, src) eid2.DstPath = RelIDA(m, dst) - e, err := m.createEdge2(eid2, refctx, src, dst) + + e, err := m.createEdge2(eid2, refctx, gctx, src, dst) if err != nil { return err } - *ea = append(*ea, e) + if e != nil { + *ea = append(*ea, e) + } } } return nil } -func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, src, dst *Field) (*Edge, error) { +func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, src, dst *Field) (*Edge, error) { if NodeBoardKind(src) != "" { return nil, d2parser.Errorf(refctx.Edge.Src, "cannot create edges between boards") } @@ -1094,6 +1149,15 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, src, dst *Field) (*Ed Context: refctx, }}, } + + if gctx != nil { + ks := e.String() + if _, ok := gctx.appliedEdges[ks]; ok { + return nil, nil + } + gctx.appliedEdges[ks] = struct{}{} + } + m.Edges = append(m.Edges, e) return e, nil diff --git a/d2ir/pattern.go b/d2ir/pattern.go index 9409e0363..e0a8d5294 100644 --- a/d2ir/pattern.go +++ b/d2ir/pattern.go @@ -3,19 +3,41 @@ package d2ir import ( "strings" + "oss.terrastruct.com/d2/d2ast" "oss.terrastruct.com/d2/d2graph" ) -func (m *Map) doubleGlob(pattern []string) ([]*Field, bool) { - if !(len(pattern) == 3 && pattern[0] == "*" && pattern[1] == "" && pattern[2] == "*") { - return nil, false - } +func (m *Map) multiGlob(pattern []string) ([]*Field, bool) { var fa []*Field - m._doubleGlob(&fa) - return fa, true + if d2ast.IsDoubleGlob(pattern) { + m._doubleGlob(&fa) + return fa, true + } + if d2ast.IsTripleGlob(pattern) { + m._tripleGlob(&fa) + return fa, true + } + return nil, false } func (m *Map) _doubleGlob(fa *[]*Field) { + for _, f := range m.Fields { + if _, ok := d2graph.ReservedKeywords[f.Name]; ok { + if f.Name == "layers" { + continue + } + if _, ok := d2graph.BoardKeywords[f.Name]; !ok { + continue + } + } + *fa = append(*fa, f) + if f.Map() != nil { + f.Map()._doubleGlob(fa) + } + } +} + +func (m *Map) _tripleGlob(fa *[]*Field) { for _, f := range m.Fields { if _, ok := d2graph.ReservedKeywords[f.Name]; ok { if _, ok := d2graph.BoardKeywords[f.Name]; !ok { @@ -24,7 +46,7 @@ func (m *Map) _doubleGlob(fa *[]*Field) { } *fa = append(*fa, f) if f.Map() != nil { - f.Map()._doubleGlob(fa) + f.Map()._tripleGlob(fa) } } } diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 613751ab3..2ae65bfe1 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -285,6 +285,31 @@ d assertQuery(t, m, 0, 0, nil, "(* -> *)[*]") }, }, + { + name: "single-glob/defaults", + run: func(t testing.TB) { + m, err := compile(t, `wrapper.*: { + shape: page +} + +wrapper.a +wrapper.b +wrapper.c +wrapper.d + +scenarios.x: { wrapper.p } +layers.x: { wrapper.p } +`) + assert.Success(t, err) + assertQuery(t, m, 26, 0, nil, "") + assertQuery(t, m, 0, 0, "page", "wrapper.a.shape") + assertQuery(t, m, 0, 0, "page", "wrapper.b.shape") + assertQuery(t, m, 0, 0, "page", "wrapper.c.shape") + assertQuery(t, m, 0, 0, "page", "wrapper.d.shape") + assertQuery(t, m, 0, 0, "page", "scenarios.x.wrapper.p.shape") + assertQuery(t, m, 0, 0, nil, "layers.x.wrapper.p") + }, + }, { name: "double-glob/edge/1", run: func(t testing.TB) { @@ -314,21 +339,81 @@ task.** -> fast assertQuery(t, m, 3, 1, nil, "") }, }, + { + name: "double-glob/defaults", + run: func(t testing.TB) { + m, err := compile(t, `**: { + shape: page +} + +a +b +c +d + +scenarios.x: { p } +layers.x: { p } +`) + assert.Success(t, err) + assertQuery(t, m, 25, 0, nil, "") + assertQuery(t, m, 0, 0, "page", "a.shape") + assertQuery(t, m, 0, 0, "page", "b.shape") + assertQuery(t, m, 0, 0, "page", "c.shape") + assertQuery(t, m, 0, 0, "page", "d.shape") + assertQuery(t, m, 0, 0, "page", "scenarios.x.p.shape") + assertQuery(t, m, 0, 0, nil, "layers.x.p") + }, + }, + { + name: "triple-glob/defaults", + run: func(t testing.TB) { + m, err := compile(t, `***: { + shape: page +} + +a +b +c +d + +scenarios.x: { p } +layers.x: { p } +`) + assert.Success(t, err) + assertQuery(t, m, 27, 0, nil, "") + assertQuery(t, m, 0, 0, "page", "a.shape") + assertQuery(t, m, 0, 0, "page", "b.shape") + assertQuery(t, m, 0, 0, "page", "c.shape") + assertQuery(t, m, 0, 0, "page", "d.shape") + assertQuery(t, m, 0, 0, "page", "scenarios.x.p.shape") + assertQuery(t, m, 0, 0, "page", "layers.x.p.shape") + }, + }, + { + name: "triple-glob/edge-defaults", + run: func(t testing.TB) { + m, err := compile(t, `(*** -> ***)[*]: { + target-arrowhead.shape: diamond +} + +a -> b +c -> d + +scenarios.x: { p -> q } +layers.x: { j -> f } +`) + assert.Success(t, err) + assertQuery(t, m, 28, 6, nil, "") + assertQuery(t, m, 0, 0, "diamond", "(a -> b)[0].target-arrowhead.shape") + assertQuery(t, m, 0, 0, "diamond", "(c -> d)[0].target-arrowhead.shape") + assertQuery(t, m, 0, 0, "diamond", "scenarios.x.(a -> b)[0].target-arrowhead.shape") + assertQuery(t, m, 0, 0, "diamond", "scenarios.x.(c -> d)[0].target-arrowhead.shape") + assertQuery(t, m, 0, 0, "diamond", "scenarios.x.(p -> q)[0].target-arrowhead.shape") + assertQuery(t, m, 4, 1, nil, "layers.x") + assertQuery(t, m, 0, 0, "diamond", "layers.x.(j -> f)[0].target-arrowhead.shape") + }, + }, } runa(t, tca) - - t.Run("errors", func(t *testing.T) { - tca := []testCase{ - { - name: "glob-edge-glob-index", - run: func(t testing.TB) { - _, err := compile(t, `(* -> b)[*].style.fill: red -`) - assert.ErrorString(t, err, `TestCompile/patterns/errors/glob-edge-glob-index.d2:1:2: indexed edge does not exist`) - }, - }, - } - runa(t, tca) - }) } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json new file mode 100644 index 000000000..0e415825f --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -0,0 +1,2909 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + }, + { + "name": "p", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:17:48", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:10:41-9:11:42", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:11:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:10:41-9:11:42", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:18:49", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:11:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:10:41-9:11:42", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:13:44-9:18:49", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:17:48", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:11:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:10:41-9:11:42", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:18:49", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:11:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:0:31-9:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:10:41-9:11:42", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:13:44-9:18:49", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:17:48", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,9:15:46-9:16:47", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "p", + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:14:64", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:7:57-10:8:58", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:8:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:6:56", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:7:57-10:8:58", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:15:65", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:8:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:6:56", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:7:57-10:8:58", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:10:60-10:15:65", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:14:64", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:6:56", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:8:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:6:56", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:7:57-10:8:58", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:15:65", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:8:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:0:50-10:6:56", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:7:57-10:8:58", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:10:60-10:15:65", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:14:64", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,10:12:62-10:13:63", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json index 9735275e6..fbfc21849 100644 --- a/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json @@ -1,667 +1,4 @@ { - "fields": [ - { - "name": "b", - "references": [ - { - "string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:0:0-0:24:24", - "edges": [ - { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:19:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:21:21-0:24:24", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": [ - { - "edge_id": { - "src_path": [ - "b" - ], - "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/errors/glob-edge-glob-index.d2,0:21:21-0:24:24", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:19:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:0:0-0:24:24", - "edges": [ - { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:19:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:21:21-0:24:24", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:19:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:0:0-0:24:24", - "edges": [ - { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:19:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:21:21-0:24:24", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:0:0-0:24:24", - "edges": [ - { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:7:7", - "src": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:1:1-0:2:2", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_key": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:19:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:9:9-0:14:14", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:15:15-0:19:19", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/errors/glob-edge-glob-index.d2,0:21:21-0:24:24", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ] + "fields": null, + "edges": null } diff --git a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json new file mode 100644 index 000000000..abae25174 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json @@ -0,0 +1,4781 @@ +{ + "fields": [ + { + "name": "wrapper", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "wrapper", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "p", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:24:94", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:25:95", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:24:94", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:9:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:0:29-4:7:36", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,4:8:37-4:9:38", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:9:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,5:8:47-5:9:48", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:9:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,6:8:57-6:9:58", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:9:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,7:8:67-7:9:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:24:94", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:25:95", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:24:94", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:10:80-9:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:10:80-9:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:26:96", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:10:80-9:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:13:83-9:26:96", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:25:95", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:24:94", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:10:80-9:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:26:96", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:0:70-9:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:10:80-9:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:13:83-9:26:96", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:25:95", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:24:94", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,9:23:93-9:24:94", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "wrapper", + "composite": { + "fields": [ + { + "name": "p", + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:21:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:22:119", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:21:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:21:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:22:119", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:21:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:7:104-10:8:105", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:8:105", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:6:103", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:7:104-10:8:105", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:23:120", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:8:105", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:6:103", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:7:104-10:8:105", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:10:107-10:23:120", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:22:119", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:21:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:6:103", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:8:105", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:6:103", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:7:104-10:8:105", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:23:120", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:8:105", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:0:97-10:6:103", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:7:104-10:8:105", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:10:107-10:23:120", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:22:119", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:21:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:12:109-10:19:116", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,10:20:117-10:21:118", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json new file mode 100644 index 000000000..25dbbc3e8 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -0,0 +1,3370 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + }, + { + "name": "p", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:17:49", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:10:42-9:11:43", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:11:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:9:41", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:10:42-9:11:43", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:18:50", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:11:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:9:41", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:10:42-9:11:43", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:13:45-9:18:50", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:17:49", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:9:41", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:11:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:9:41", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:10:42-9:11:43", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:18:50", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:11:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:0:32-9:9:41", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:10:42-9:11:43", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:13:45-9:18:50", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:17:49", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,9:15:47-9:16:48", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "p", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:14:65", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:7:58-10:8:59", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:8:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:6:57", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:7:58-10:8:59", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:15:66", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:8:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:6:57", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:7:58-10:8:59", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:10:61-10:15:66", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:14:65", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:6:57", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:8:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:6:57", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:7:58-10:8:59", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:15:66", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:8:59", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:0:51-10:6:57", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:7:58-10:8:59", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:10:61-10:15:66", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:14:65", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,10:12:63-10:13:64", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json new file mode 100644 index 000000000..819fea0ae --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -0,0 +1,14050 @@ +{ + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "d", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "p", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:22:92", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "q", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:22:92", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "edge_id": { + "src_path": [ + "c" + ], + "src_arrow": false, + "dst_path": [ + "d" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "edge_id": { + "src_path": [ + "p" + ], + "src_arrow": false, + "dst_path": [ + "q" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:22:92", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:10:80-7:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:10:80-7:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:23:93", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:10:80-7:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:13:83-7:23:93", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:22:92", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:10:80-7:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:23:93", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:11:81", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:0:70-7:9:79", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:10:80-7:11:81", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:13:83-7:23:93", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:22:92", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:21:91", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:15:85-7:16:86", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,7:20:90-7:21:91", + "value": [ + { + "string": "q", + "raw_string": "q" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "j", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:19:113", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "f", + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:19:113", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "j" + ], + "src_arrow": false, + "dst_path": [ + "f" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:19:113", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:7:101-8:8:102", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:8:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:6:100", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:7:101-8:8:102", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:20:114", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:8:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:6:100", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:7:101-8:8:102", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:10:104-8:20:114", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:19:113", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:6:100", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:8:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:6:100", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:7:101-8:8:102", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:20:114", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:8:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:0:94-8:6:100", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:7:101-8:8:102", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:10:104-8:20:114", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:19:113", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:18:112", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:12:106-8:13:107", + "value": [ + { + "string": "j", + "raw_string": "j" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,8:17:111-8:18:112", + "value": [ + { + "string": "f", + "raw_string": "f" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:6:61", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:0:55-4:1:56", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,4:5:60-4:6:61", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + }, + { + "edge_id": { + "src_path": [ + "c" + ], + "src_arrow": false, + "dst_path": [ + "d" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:6:68", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:0:62-5:1:63", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,5:5:67-5:6:68", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + } + ] + } + ] +} From 507b2d622e25b56f42b10b9b1f6bcdd7535b3d79 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 15 Aug 2023 18:39:14 -0700 Subject: [PATCH 02/21] d2ir: Add IDA support for edges Not perfectly robust but good enough for now without massive refactor. --- d2ir/d2ir.go | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 3f0da6feb..9fa8e593f 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -1151,7 +1151,7 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, sr } if gctx != nil { - ks := e.String() + ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(e))) if _, ok := gctx.appliedEdges[ks]; ok { return nil, nil } @@ -1389,60 +1389,65 @@ func parentPrimaryKey(n Node) *d2ast.Key { // BoardIDA returns the absolute path to n from the nearest board root. func BoardIDA(n Node) (ida []string) { for { - f, ok := n.(*Field) - if ok { - if f.Root() || NodeBoardKind(f) != "" { + switch n := n.(type) { + case *Field: + if n.Root() || NodeBoardKind(n) != "" { reverseIDA(ida) return ida } - ida = append(ida, f.Name) + ida = append(ida, n.Name) + case *Edge: + ida = append(ida, n.String()) } - f = ParentField(n) - if f == nil { + n = n.Parent() + if n == nil { reverseIDA(ida) return ida } - n = f } } // IDA returns the absolute path to n. func IDA(n Node) (ida []string) { for { - f, ok := n.(*Field) - if ok { - ida = append(ida, f.Name) - if f.Root() { + switch n := n.(type) { + case *Field: + ida = append(ida, n.Name) + if n.Root() { reverseIDA(ida) return ida } + case *Edge: + ida = append(ida, n.String()) } - f = ParentField(n) - if f == nil { + n = n.Parent() + if n == nil { reverseIDA(ida) return ida } - n = f } } // RelIDA returns the path to n relative to p. func RelIDA(p, n Node) (ida []string) { for { - f, ok := n.(*Field) - if ok { - ida = append(ida, f.Name) - if f.Root() { + switch n := n.(type) { + case *Field: + ida = append(ida, n.Name) + if n.Root() { reverseIDA(ida) return ida } + case *Edge: + ida = append(ida, n.String()) } - f = ParentField(n) - if f == nil || f.Root() || f == p || f.Composite == p { + n = ParentField(n) + f, fok := n.(*Field) + e, eok := n.(*Edge) + if n == nil || (fok && (f.Root() || f == p || f.Composite == p)) || (eok && (e == p || e.Map_ == p)) { reverseIDA(ida) return ida } - n = f } } From 89b400b8f1443cef1a0bca7b870a94b7f7eb22da Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 15 Aug 2023 23:33:50 -0700 Subject: [PATCH 03/21] d2ir: Alixander review lazy glob fixes --- d2compiler/compile_test.go | 43 + d2ir/d2ir.go | 7 +- d2ir/pattern.go | 5 + d2ir/pattern_test.go | 39 +- .../alixander-lazy-globs-review.exp.json | 674 ++ .../patterns/alixander-review/1.exp.json | 7128 +++++++++++++++++ .../patterns/alixander-review/2.exp.json | 848 ++ .../patterns/triple-glob/defaults.exp.json | 154 - 8 files changed, 8740 insertions(+), 158 deletions(-) create mode 100644 testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index a713c3622..4c9ccefbb 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -2745,6 +2745,7 @@ func TestCompile2(t *testing.T) { t.Run("seqdiagrams", testSeqDiagrams) t.Run("nulls", testNulls) t.Run("vars", testVars) + t.Run("globs", testGlobs) } func testBoards(t *testing.T) { @@ -4032,6 +4033,48 @@ z: { }) } +func testGlobs(t *testing.T) { + t.Parallel() + + tca := []struct { + name string + skip bool + run func(t *testing.T) + }{ + { + name: "alixander-lazy-globs-review", + run: func(t *testing.T) { + assertCompile(t, ` +***.style.fill: yellow +**.shape: circle +*.style.multiple: true + +x: { + y +} + +layers: { + next: { + a + } +} +`, "") + }, + }, + } + + for _, tc := range tca { + tc := tc + t.Run(tc.name, func(t *testing.T) { + t.Parallel() + if tc.skip { + t.SkipNow() + } + tc.run(t) + }) + } +} + func assertCompile(t *testing.T, text string, expErr string) (*d2graph.Graph, *d2target.Config) { d2Path := fmt.Sprintf("d2/testdata/d2compiler/%v.d2", t.Name()) g, config, err := d2compiler.Compile(d2Path, strings.NewReader(text), nil) diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 9fa8e593f..abbdbd5d5 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -574,7 +574,8 @@ func (rc *RefContext) EdgeIndex() int { } func (rc *RefContext) Equal(rc2 *RefContext) bool { - return rc.Edge == rc2.Edge && rc.Key.Equals(rc2.Key) && rc.Scope == rc2.Scope && rc.ScopeMap == rc2.ScopeMap && rc.ScopeAST == rc2.ScopeAST + // We intentionally ignore edges here because the same glob can produce multiple RefContexts that should be treated the same with only the edge as the difference. + return rc.Key.Equals(rc2.Key) && rc.Scope == rc2.Scope && rc.ScopeMap == rc2.ScopeMap && rc.ScopeAST == rc2.ScopeAST } func (m *Map) FieldCountRecursive() int { @@ -1000,7 +1001,7 @@ func (m *Map) CreateEdge(eid *EdgeID, refctx *RefContext, c *compiler) ([]*Edge, var ea []*Edge var gctx *globContext if refctx != nil && refctx.Key.HasGlob() && c != nil { - gctx = c.getGlobContext(refctx) + gctx = c.ensureGlobContext(refctx) } err := m.createEdge(eid, refctx, gctx, c, &ea) if err != nil { @@ -1441,7 +1442,7 @@ func RelIDA(p, n Node) (ida []string) { case *Edge: ida = append(ida, n.String()) } - n = ParentField(n) + n = n.Parent() f, fok := n.(*Field) e, eok := n.(*Edge) if n == nil || (fok && (f.Root() || f == p || f.Composite == p)) || (eok && (e == p || e.Map_ == p)) { diff --git a/d2ir/pattern.go b/d2ir/pattern.go index e0a8d5294..2b0aa9d25 100644 --- a/d2ir/pattern.go +++ b/d2ir/pattern.go @@ -43,6 +43,11 @@ func (m *Map) _tripleGlob(fa *[]*Field) { if _, ok := d2graph.BoardKeywords[f.Name]; !ok { continue } + // We don't ever want to append layers, scenarios or steps directly. + if f.Map() != nil { + f.Map()._tripleGlob(fa) + } + continue } *fa = append(*fa, f) if f.Map() != nil { diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 2ae65bfe1..c25fb9304 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -380,7 +380,7 @@ scenarios.x: { p } layers.x: { p } `) assert.Success(t, err) - assertQuery(t, m, 27, 0, nil, "") + assertQuery(t, m, 25, 0, nil, "") assertQuery(t, m, 0, 0, "page", "a.shape") assertQuery(t, m, 0, 0, "page", "b.shape") assertQuery(t, m, 0, 0, "page", "c.shape") @@ -413,6 +413,43 @@ layers.x: { j -> f } assertQuery(t, m, 0, 0, "diamond", "layers.x.(j -> f)[0].target-arrowhead.shape") }, }, + { + name: "alixander-review/1", + run: func(t testing.TB) { + m, err := compile(t, ` +***.style.fill: yellow +**.shape: circle +*.style.multiple: true + +x: { + y +} + +layers: { + next: { + a + } +} +`) + assert.Success(t, err) + assertQuery(t, m, 16, 0, nil, "") + }, + }, + { + name: "alixander-review/2", + run: func(t testing.TB) { + m, err := compile(t, ` +a + +* -> y + +b +c +`) + assert.Success(t, err) + assertQuery(t, m, 4, 3, nil, "") + }, + }, } runa(t, tca) diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json new file mode 100644 index 000000000..abe75b210 --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json @@ -0,0 +1,674 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,0:0:0-14:0:109", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:0:1-1:22:23", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:0:24-2:16:40", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:0:41-3:22:63", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-7:1:75", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:3:68-7:1:75", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:0:77-13:1:108", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:0:77-9:6:83", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:0:77-9:6:83", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:8:85-13:1:108", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:2:89-12:3:106", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:2:89-10:6:93", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:2:89-10:6:93", + "value": [ + { + "string": "next", + "raw_string": "next" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:8:95-12:3:106", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "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": "x", + "id_val": "x", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "x" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "yellow" + }, + "multiple": { + "value": "true" + } + }, + "near_key": null, + "shape": { + "value": "circle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "y", + "id_val": "y", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "y" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "yellow" + } + }, + "near_key": null, + "shape": { + "value": "circle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "layers": [ + { + "name": "next", + "isFolderOnly": false, + "ast": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "fill" + } + ] + } + } + ] + }, + "primary": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "value": {} + } + } + ] + } + } + } + }, + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "fill" + } + ] + } + } + ] + }, + "primary": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + ] + }, + "root": { + "id": "", + "id_val": "", + "attributes": { + "label": { + "value": "" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "yellow" + } + }, + "near_key": null, + "shape": { + "value": "" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + "edges": null, + "objects": [ + { + "id": "a", + "id_val": "a", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", + "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": "yellow" + } + }, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + } + ] + }, + "err": null +} diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json new file mode 100644 index 000000000..8813f416c --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -0,0 +1,7128 @@ +{ + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + }, + { + "name": "multiple", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + } + ] + }, + { + "name": "y", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:0:65-5:1:66", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:0:65-7:1:75", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:0:65-5:1:66", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/1.d2,5:3:68-7:1:75", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "next", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + }, + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "value": [ + { + "string": "next", + "raw_string": "next" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "value": [ + { + "string": "next", + "raw_string": "next" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-12:3:106", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "value": [ + { + "string": "next", + "raw_string": "next" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:8:95-12:3:106", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:0:77-9:6:83", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:0:77-9:6:83", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:0:77-9:6:83", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:0:77-13:1:108", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:0:77-9:6:83", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:0:77-9:6:83", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/1.d2,9:8:85-13:1:108", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-12:3:106", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:2:89-10:6:93", + "value": [ + { + "string": "next", + "raw_string": "next" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/1.d2,10:8:95-12:3:106", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json new file mode 100644 index 000000000..0c0043b7f --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json @@ -0,0 +1,848 @@ +{ + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,1:0:1-1:1:2", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,1:0:1-1:1:2", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,1:0:1-1:1:2", + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,1:0:1-1:1:2", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "y", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,5:0:12-5:1:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,5:0:12-5:1:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,5:0:12-5:1:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,5:0:12-5:1:13", + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,5:0:12-5:1:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,5:0:12-5:1:13", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,6:0:14-6:1:15", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,6:0:14-6:1:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,6:0:14-6:1:15", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,6:0:14-6:1:15", + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,6:0:14-6:1:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,6:0:14-6:1:15", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "edge_id": { + "src_path": [ + "b" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "edge_id": { + "src_path": [ + "c" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index 25dbbc3e8..a16e93bf7 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -2168,83 +2168,6 @@ } } ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - } - ] } ], "edges": null @@ -3036,83 +2959,6 @@ } } ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - } - ] } ], "edges": null From 4090e780f810321d0a3d40f66b3acfcc254de7b6 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 15 Aug 2023 23:40:39 -0700 Subject: [PATCH 04/21] d2ir: Prevent triple globs from applying at a board root --- d2ir/pattern.go | 3 + d2ir/pattern_test.go | 4 +- .../alixander-lazy-globs-review.exp.json | 66 +- .../patterns/alixander-review/1.exp.json | 662 ----------- .../patterns/triple-glob/defaults.exp.json | 811 ------------- .../triple-glob/edge-defaults.exp.json | 1002 ----------------- 6 files changed, 6 insertions(+), 2542 deletions(-) diff --git a/d2ir/pattern.go b/d2ir/pattern.go index 2b0aa9d25..034083b09 100644 --- a/d2ir/pattern.go +++ b/d2ir/pattern.go @@ -49,6 +49,9 @@ func (m *Map) _tripleGlob(fa *[]*Field) { } continue } + if NodeBoardKind(f) != "" { + continue + } *fa = append(*fa, f) if f.Map() != nil { f.Map()._tripleGlob(fa) diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index c25fb9304..96d0c2fa0 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -380,7 +380,7 @@ scenarios.x: { p } layers.x: { p } `) assert.Success(t, err) - assertQuery(t, m, 25, 0, nil, "") + assertQuery(t, m, 24, 0, nil, "") assertQuery(t, m, 0, 0, "page", "a.shape") assertQuery(t, m, 0, 0, "page", "b.shape") assertQuery(t, m, 0, 0, "page", "c.shape") @@ -432,7 +432,7 @@ layers: { } `) assert.Success(t, err) - assertQuery(t, m, 16, 0, nil, "") + assertQuery(t, m, 14, 0, nil, "") }, }, { diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json index abe75b210..d25a94a2c 100644 --- a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.exp.json @@ -438,66 +438,6 @@ "ast": { "range": ",1:0:0-2:0:0", "nodes": [ - { - "map_key": { - "range": ",0:0:0-0:0:0", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": ",1:0:0-2:0:0", - "nodes": [ - { - "map_key": { - "range": ",0:0:0-0:0:0", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "fill" - } - ] - } - } - ] - }, - "primary": { - "unquoted_string": { - "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - }, - "value": {} - } - } - ] - } - } - } - }, { "map_key": { "range": ",0:0:0-0:0:0", @@ -599,11 +539,7 @@ "width": 0, "height": 0 }, - "style": { - "fill": { - "value": "yellow" - } - }, + "style": {}, "near_key": null, "shape": { "value": "" diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 8813f416c..177f3ee48 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -1687,112 +1687,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } } ] } @@ -3454,112 +3348,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } } ] }, @@ -4135,99 +3923,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", @@ -5598,99 +5293,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", @@ -5937,270 +5539,6 @@ "name": "next", "composite": { "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - } - ] - }, { "name": "a", "composite": { diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index a16e93bf7..e0b0bfe2e 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -578,67 +578,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -706,57 +645,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,4:0:23-4:1:24", @@ -828,67 +716,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -956,57 +783,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,5:0:25-5:1:26", @@ -1078,67 +854,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -1206,57 +921,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,6:0:27-6:1:28", @@ -1328,67 +992,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -1506,134 +1109,6 @@ "value": {} } } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", - "value": [ - { - "string": "d", - "raw_string": "d" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", - "value": [ - { - "string": "d", - "raw_string": "d" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,7:0:29-7:1:30", - "value": [ - { - "string": "d", - "raw_string": "d" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - } - ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } } ] }, @@ -2023,149 +1498,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - ] - } - } - } - } } ] } @@ -2417,149 +1749,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", - "key": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index 819fea0ae..64a4e7727 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -1774,89 +1774,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -2527,89 +2444,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -4202,174 +4036,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -4738,89 +4404,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -5242,89 +4825,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -6413,174 +5913,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -6617,89 +5949,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -6789,89 +6038,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -7238,174 +6404,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } From a24716d1f16b4bcc1e71f67c41278ee914141841 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 16 Aug 2023 00:02:09 -0700 Subject: [PATCH 05/21] d2ir: Fix infinite loop in triple globs --- d2ir/compile.go | 4 + d2ir/d2ir.go | 48 +- d2ir/pattern_test.go | 19 + .../patterns/alixander-review/1.exp.json | 993 -------- .../patterns/alixander-review/3.exp.json | 2199 +++++++++++++++++ .../patterns/double-glob/defaults.exp.json | 278 --- 6 files changed, 2258 insertions(+), 1283 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 43e19e8b2..96ef29a91 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -492,11 +492,15 @@ func (c *compiler) ensureGlobContext(refctx *RefContext) *globContext { func (c *compiler) compileKey(refctx *RefContext) { if refctx.Key.HasGlob() { + // These three printlns are for debugging infinite loops. + // println("og", refctx.Edge, refctx.Key, refctx.Scope, refctx.ScopeMap, refctx.ScopeAST) for _, refctx2 := range c.globRefContextStack { + // println("st", refctx2.Edge, refctx2.Key, refctx2.Scope, refctx2.ScopeMap, refctx2.ScopeAST) if refctx.Equal(refctx2) { // Break the infinite loop. return } + // println("keys", d2format.Format(refctx2.Key), d2format.Format(refctx.Key)) } c.globRefContextStack = append(c.globRefContextStack, refctx) defer func() { diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index abbdbd5d5..5746eaf23 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -575,7 +575,8 @@ func (rc *RefContext) EdgeIndex() int { func (rc *RefContext) Equal(rc2 *RefContext) bool { // We intentionally ignore edges here because the same glob can produce multiple RefContexts that should be treated the same with only the edge as the difference. - return rc.Key.Equals(rc2.Key) && rc.Scope == rc2.Scope && rc.ScopeMap == rc2.ScopeMap && rc.ScopeAST == rc2.ScopeAST + // Same with ScopeMap. + return rc.Key.Equals(rc2.Key) && rc.Scope == rc2.Scope && rc.ScopeAST == rc2.ScopeAST } func (m *Map) FieldCountRecursive() int { @@ -708,19 +709,30 @@ func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool, c } func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create bool, gctx *globContext, c *compiler, fa *[]*Field) error { - faAppend := func(fa2 ...*Field) { - for _, f := range fa2 { - if gctx != nil { - // Always match all commons, sources and destinations for edge globs. - if len(refctx.Key.Edges) == 0 || kp == refctx.Key.EdgeKey { - ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) - if _, ok := gctx.appliedFields[ks]; ok { - continue - } + filter := func(f *Field, passthrough bool) bool { + if gctx != nil { + // For globs with edges, we only ignore duplicate fields if the glob is not at the terminal of the keypath, the glob is on the common key or the glob is on the edge key. + if !kp.HasGlob() { + return true + } + lastEl := kp.Path[len(kp.Path)-1] + if len(refctx.Key.Edges) == 0 || lastEl.UnquotedString == nil || len(lastEl.UnquotedString.Pattern) == 0 || kp == refctx.Key.Key || kp == refctx.Key.EdgeKey { + ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) + if _, ok := gctx.appliedFields[ks]; ok { + return false + } + if !passthrough { gctx.appliedFields[ks] = struct{}{} } } - *fa = append(*fa, f) + } + return true + } + faAppend := func(fa2 ...*Field) { + for _, f := range fa2 { + if filter(f, false) { + *fa = append(*fa, f) + } } } @@ -732,6 +744,9 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b faAppend(fa2...) } else { for _, f := range fa2 { + if !filter(f, true) { + return nil + } if f.Map() == nil { f.Composite = &Map{ parent: f, @@ -750,6 +765,9 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b if i == len(kp.Path)-1 { faAppend(f) } else { + if !filter(f, true) { + return nil + } if f.Map() == nil { f.Composite = &Map{ parent: f, @@ -804,6 +822,9 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b faAppend(f) return nil } + if !filter(f, true) { + return nil + } if _, ok := f.Composite.(*Array); ok { return d2parser.Errorf(kp.Path[i].Unbox(), "cannot index into array") } @@ -832,7 +853,10 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b } m.Fields = append(m.Fields, f) if i+1 == len(kp.Path) { - *fa = append(*fa, f) + faAppend(f) + return nil + } + if !filter(f, true) { return nil } if f.Composite == nil { diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 96d0c2fa0..bd32a5355 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -432,6 +432,7 @@ layers: { } `) assert.Success(t, err) + t.Log(m) assertQuery(t, m, 14, 0, nil, "") }, }, @@ -450,6 +451,24 @@ c assertQuery(t, m, 4, 3, nil, "") }, }, + { + name: "alixander-review/3", + run: func(t testing.TB) { + m, err := compile(t, ` +a + +***.b -> c + +layers: { + z: { + d + } +} +`) + assert.Success(t, err) + assertQuery(t, m, 8, 2, nil, "") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 177f3ee48..76ebe7c77 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -497,125 +497,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } } ] }, @@ -1475,218 +1356,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } } ] } @@ -2462,337 +2131,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", @@ -3830,99 +3168,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", @@ -4396,125 +3641,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } } ] } @@ -4878,125 +4004,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json new file mode 100644 index 000000000..426624b29 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json @@ -0,0 +1,2199 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,1:0:1-1:1:2", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,1:0:1-1:1:2", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,1:0:1-1:1:2", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,1:0:1-1:1:2", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "z", + "composite": { + "fields": [ + { + "name": "d", + "composite": { + "fields": [ + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "d", + "b" + ], + "src_arrow": false, + "dst_path": [ + "c" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-8:3:42", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:5:31-8:3:42", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:0:16-5:6:22", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:0:16-5:6:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:0:16-5:6:22", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:0:16-9:1:44", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:0:16-5:6:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:0:16-5:6:22", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/3.d2,5:8:24-9:1:44", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-8:3:42", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:2:28-6:3:29", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/3.d2,6:5:31-8:3:42", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,7:4:37-7:5:38", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a", + "b" + ], + "src_arrow": false, + "dst_path": [ + "c" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json index 0e415825f..bae761521 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -1880,284 +1880,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, From 8455a7da8dfbddc2f5f0ab198b9aa9088a1477ed Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 16 Aug 2023 02:21:33 -0700 Subject: [PATCH 06/21] d2ir: Fix another lazy glob bug found by Alex --- d2ir/d2ir.go | 15 +- d2ir/pattern_test.go | 15 +- .../patterns/alixander-review/4.exp.json | 701 ++++++++++++++++++ 3 files changed, 724 insertions(+), 7 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 5746eaf23..f5319511c 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -710,20 +710,23 @@ func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool, c func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create bool, gctx *globContext, c *compiler, fa *[]*Field) error { filter := func(f *Field, passthrough bool) bool { + ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) if gctx != nil { // For globs with edges, we only ignore duplicate fields if the glob is not at the terminal of the keypath, the glob is on the common key or the glob is on the edge key. if !kp.HasGlob() { + if !passthrough { + gctx.appliedFields[ks] = struct{}{} + } return true } lastEl := kp.Path[len(kp.Path)-1] if len(refctx.Key.Edges) == 0 || lastEl.UnquotedString == nil || len(lastEl.UnquotedString.Pattern) == 0 || kp == refctx.Key.Key || kp == refctx.Key.EdgeKey { - ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) if _, ok := gctx.appliedFields[ks]; ok { return false } - if !passthrough { - gctx.appliedFields[ks] = struct{}{} - } + } + if !passthrough { + gctx.appliedFields[ks] = struct{}{} } } return true @@ -745,7 +748,7 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b } else { for _, f := range fa2 { if !filter(f, true) { - return nil + continue } if f.Map() == nil { f.Composite = &Map{ @@ -766,7 +769,7 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b faAppend(f) } else { if !filter(f, true) { - return nil + continue } if f.Map() == nil { f.Composite = &Map{ diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index bd32a5355..e5064752d 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -432,7 +432,6 @@ layers: { } `) assert.Success(t, err) - t.Log(m) assertQuery(t, m, 14, 0, nil, "") }, }, @@ -469,6 +468,20 @@ layers: { assertQuery(t, m, 8, 2, nil, "") }, }, + { + name: "alixander-review/4", + run: func(t testing.TB) { + m, err := compile(t, ` +**.child + +a +b +c +`) + assert.Success(t, err) + assertQuery(t, m, 6, 0, nil, "") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json new file mode 100644 index 000000000..c605e295d --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json @@ -0,0 +1,701 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "child", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,3:0:11-3:1:12", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,3:0:11-3:1:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,3:0:11-3:1:12", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,3:0:11-3:1:12", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,3:0:11-3:1:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,3:0:11-3:1:12", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "child", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,4:0:13-4:1:14", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,4:0:13-4:1:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,4:0:13-4:1:14", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,4:0:13-4:1:14", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,4:0:13-4:1:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,4:0:13-4:1:14", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "c", + "composite": { + "fields": [ + { + "name": "child", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,5:0:15-5:1:16", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,5:0:15-5:1:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,5:0:15-5:1:16", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,5:0:15-5:1:16", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,5:0:15-5:1:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,5:0:15-5:1:16", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null +} From d90f8253df71899e52dd53ce971a873a141f81b3 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 16 Aug 2023 15:34:48 -0700 Subject: [PATCH 07/21] d2ir: Fix lazy globs being applied in reverse --- d2ir/compile.go | 51 +- d2ir/d2ir.go | 34 +- d2ir/pattern.go | 5 +- d2ir/pattern_test.go | 33 + .../patterns/alixander-review/1.exp.json | 3702 +++++++------- .../patterns/alixander-review/3.exp.json | 328 ++ .../patterns/double-glob/defaults.exp.json | 293 +- .../TestCompile/patterns/override/1.exp.json | 782 +++ .../TestCompile/patterns/override/2.exp.json | 2003 ++++++++ .../patterns/single-glob/defaults.exp.json | 118 - .../patterns/triple-glob/defaults.exp.json | 244 + .../triple-glob/edge-defaults.exp.json | 4514 ++++------------- 12 files changed, 6645 insertions(+), 5462 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/override/1.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/override/2.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 96ef29a91..d7bfa82f4 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -359,6 +359,20 @@ func (c *compiler) overlay(base *Map, f *Field) { f.Composite = base } +func (g *globContext) prefixed(dst *Map) *globContext { + g2 := *g + g2.refctx = g.refctx.Copy() + prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) + g2.refctx.Key = g2.refctx.Key.Copy() + if g2.refctx.Key.Key != nil { + prefix.Path = append(prefix.Path, g2.refctx.Key.Key.Path...) + } + if len(prefix.Path) > 0 { + g2.refctx.Key.Key = prefix + } + return &g2 +} + func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { var globs []*globContext if len(c.globContextStack) > 0 { @@ -366,36 +380,13 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { if NodeBoardKind(dst) == BoardLayer { for _, g := range previousGlobs { if g.refctx.Key.HasTripleGlob() { - // Same as below but reset applied too. - g2 := *g - g2.refctx = g.refctx.Copy() - g2.appliedFields = make(map[string]struct{}) - g2.appliedEdges = make(map[string]struct{}) - prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) - g2.refctx.Key = g2.refctx.Key.Copy() - if g2.refctx.Key.Key != nil { - prefix.Path = append(prefix.Path, g2.refctx.Key.Key.Path...) - } - if len(prefix.Path) > 0 { - g2.refctx.Key.Key = prefix - } - globs = append(globs, &g2) + globs = append(globs, g.prefixed(dst)) } } } else if NodeBoardKind(dst) != "" { // Make all globs relative to the scenario or step. for _, g := range previousGlobs { - g2 := *g - g2.refctx = g.refctx.Copy() - prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) - g2.refctx.Key = g2.refctx.Key.Copy() - if g2.refctx.Key.Key != nil { - prefix.Path = append(prefix.Path, g2.refctx.Key.Key.Path...) - } - if len(prefix.Path) > 0 { - g2.refctx.Key.Key = prefix - } - globs = append(globs, &g2) + globs = append(globs, g.prefixed(dst)) } } else { globs = append(globs, previousGlobs...) @@ -492,7 +483,7 @@ func (c *compiler) ensureGlobContext(refctx *RefContext) *globContext { func (c *compiler) compileKey(refctx *RefContext) { if refctx.Key.HasGlob() { - // These three printlns are for debugging infinite loops. + // These printlns are for debugging infinite loops. // println("og", refctx.Edge, refctx.Key, refctx.Scope, refctx.ScopeMap, refctx.ScopeAST) for _, refctx2 := range c.globRefContextStack { // println("st", refctx2.Edge, refctx2.Key, refctx2.Scope, refctx2.ScopeMap, refctx2.ScopeAST) @@ -508,11 +499,19 @@ func (c *compiler) compileKey(refctx *RefContext) { }() c.ensureGlobContext(refctx) } + oldFields := refctx.ScopeMap.FieldCountRecursive() + oldEdges := refctx.ScopeMap.EdgeCountRecursive() if len(refctx.Key.Edges) == 0 { c.compileField(refctx.ScopeMap, refctx.Key.Key, refctx) } else { c.compileEdges(refctx) } + if oldFields != refctx.ScopeMap.FieldCountRecursive() || oldEdges != refctx.ScopeMap.EdgeCountRecursive() { + for _, gctx2 := range c.globContexts() { + // println(d2format.Format(gctx2.refctx.Key), d2format.Format(refctx.Key)) + c.compileKey(gctx2.refctx) + } + } } func (c *compiler) compileField(dst *Map, kp *d2ast.KeyPath, refctx *RefContext) { diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index f5319511c..5d49913a7 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -697,21 +697,18 @@ func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool, c var fa []*Field err := m.ensureField(i, kp, refctx, create, gctx, c, &fa) - if err != nil { - return fa, err - } - if len(fa) > 0 && create && c != nil { - for _, gctx2 := range c.globContexts() { - c.compileKey(gctx2.refctx) - } - } - return fa, nil + return fa, err } func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create bool, gctx *globContext, c *compiler, fa *[]*Field) error { filter := func(f *Field, passthrough bool) bool { - ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) if gctx != nil { + var ks string + if refctx.Key.HasTripleGlob() { + ks = d2format.Format(d2ast.MakeKeyPath(IDA(f))) + } else { + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) + } // For globs with edges, we only ignore duplicate fields if the glob is not at the terminal of the keypath, the glob is on the common key or the glob is on the edge key. if !kp.HasGlob() { if !passthrough { @@ -1031,15 +1028,7 @@ func (m *Map) CreateEdge(eid *EdgeID, refctx *RefContext, c *compiler) ([]*Edge, gctx = c.ensureGlobContext(refctx) } err := m.createEdge(eid, refctx, gctx, c, &ea) - if err != nil { - return ea, err - } - if len(ea) > 0 && c != nil { - for _, gctx2 := range c.globContexts() { - c.compileKey(gctx2.refctx) - } - } - return ea, nil + return ea, err } func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, gctx *globContext, c *compiler, ea *[]*Edge) error { @@ -1179,7 +1168,12 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, sr } if gctx != nil { - ks := d2format.Format(d2ast.MakeKeyPath(BoardIDA(e))) + var ks string + if refctx.Key.HasTripleGlob() { + ks = d2format.Format(d2ast.MakeKeyPath(IDA(e))) + } else { + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(e))) + } if _, ok := gctx.appliedEdges[ks]; ok { return nil, nil } diff --git a/d2ir/pattern.go b/d2ir/pattern.go index 034083b09..34fe14f86 100644 --- a/d2ir/pattern.go +++ b/d2ir/pattern.go @@ -49,10 +49,9 @@ func (m *Map) _tripleGlob(fa *[]*Field) { } continue } - if NodeBoardKind(f) != "" { - continue + if NodeBoardKind(f) == "" { + *fa = append(*fa, f) } - *fa = append(*fa, f) if f.Map() != nil { f.Map()._tripleGlob(fa) } diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index e5064752d..a1cdd4c46 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -482,6 +482,39 @@ c assertQuery(t, m, 6, 0, nil, "") }, }, + { + name: "override/1", + run: func(t testing.TB) { + m, err := compile(t, ` +**.style.fill: yellow +**.style.fill: red + +a +`) + assert.Success(t, err) + assertQuery(t, m, 3, 0, nil, "") + assertQuery(t, m, 0, 0, "red", "a.style.fill") + }, + }, + { + name: "override/2", + run: func(t testing.TB) { + m, err := compile(t, ` +***.style.fill: yellow + +layers: { + hi: { + **.style.fill: red + # should be red, but it's yellow right now + a + } +} +`) + assert.Success(t, err) + assertQuery(t, m, 5, 0, nil, "") + assertQuery(t, m, 0, 0, "red", "layers.hi.a.style.fill") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 76ebe7c77..2d16cfb4b 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -4,6 +4,1526 @@ "name": "x", "composite": { "fields": [ + { + "name": "y", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + }, { "name": "style", "composite": { @@ -1144,218 +2664,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } } ] } @@ -2025,218 +3333,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", - "value": true - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", @@ -3167,1288 +4263,6 @@ } } } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - } - ] - }, - { - "name": "y", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - } - } - ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } } ] } @@ -4726,6 +4540,244 @@ } } } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } } ] } @@ -4891,6 +4943,244 @@ } } } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json index 426624b29..a9262751f 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json @@ -1204,6 +1204,334 @@ "value": {} } } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json index bae761521..27b8540f3 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -1560,83 +1560,6 @@ } ] }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - } - ] - }, { "name": "p", "composite": { @@ -1774,6 +1697,83 @@ } } ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + } + ] } ], "edges": null @@ -1880,6 +1880,145 @@ } } } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + } } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/override/1.exp.json b/testdata/d2ir/TestCompile/patterns/override/1.exp.json new file mode 100644 index 000000000..41699da8d --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/1.exp.json @@ -0,0 +1,782 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:21:22", + "key": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:15:16-1:21:22", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:18:41", + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:18:41", + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:21:22", + "key": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:15:16-1:21:22", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:18:41", + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:18:41", + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/1.d2,4:0:43-4:1:44", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,4:0:43-4:1:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,4:0:43-4:1:44", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,4:0:43-4:1:44", + "key": { + "range": "TestCompile/patterns/override/1.d2,4:0:43-4:1:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,4:0:43-4:1:44", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/override/2.exp.json b/testdata/d2ir/TestCompile/patterns/override/2.exp.json new file mode 100644 index 000000000..a360c2c0a --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/2.exp.json @@ -0,0 +1,2003 @@ +{ + "fields": [ + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "hi", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "key": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-8:3:122", + "key": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/2.d2,4:6:41-8:3:122", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "comment": { + "range": "TestCompile/patterns/override/2.d2,6:4:70-6:46:112", + "value": "should be red, but it's yellow right now" + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "key": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/2.d2,3:0:25-3:6:31", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,3:0:25-3:6:31", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,3:0:25-3:6:31", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,3:0:25-9:1:124", + "key": { + "range": "TestCompile/patterns/override/2.d2,3:0:25-3:6:31", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,3:0:25-3:6:31", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/2.d2,3:8:33-9:1:124", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-8:3:122", + "key": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,4:2:37-4:4:39", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/2.d2,4:6:41-8:3:122", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + { + "comment": { + "range": "TestCompile/patterns/override/2.d2,6:4:70-6:46:112", + "value": "should be red, but it's yellow right now" + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "key": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,7:4:117-7:5:118", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json index abae25174..08e7283b5 100644 --- a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json @@ -3466,124 +3466,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", - "value": [ - { - "string": "wrapper", - "raw_string": "wrapper" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", - "value": [ - { - "string": "wrapper", - "raw_string": "wrapper" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", - "key": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", - "value": [ - { - "string": "wrapper", - "raw_string": "wrapper" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", - "key": { - "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index e0b0bfe2e..dc21aecd1 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -578,6 +578,67 @@ } }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -716,6 +777,67 @@ } }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -854,6 +976,67 @@ } }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", @@ -992,6 +1175,67 @@ } }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index 64a4e7727..e44017522 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -1525,255 +1525,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -2195,255 +1946,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -2954,510 +2456,6 @@ } } }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, { "context": { "edge": { @@ -3706,31 +2704,6 @@ }, "key": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, "edges": [ { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", @@ -3899,31 +2872,6 @@ }, "key": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, "edges": [ { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", @@ -4321,89 +3269,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -4742,89 +3607,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -5167,174 +3949,6 @@ } } }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, { "context": { "edge": { @@ -5583,31 +4197,6 @@ }, "key": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, "edges": [ { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", @@ -5776,31 +4365,6 @@ }, "key": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, "edges": [ { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", @@ -5949,6 +4513,172 @@ } }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -6038,6 +4768,172 @@ "edges": null }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -6404,6 +5300,342 @@ } } } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } } ] } @@ -6710,358 +5942,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } @@ -7369,358 +6249,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -7997,6 +6525,89 @@ } }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -8086,6 +6697,89 @@ "edges": null }, "references": [ + { + "string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -8452,6 +7146,174 @@ } } } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + } } ] } @@ -8758,358 +7620,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } @@ -9417,358 +7927,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - } - ] - }, - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } @@ -10056,172 +8214,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -10560,172 +8552,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -11571,342 +9397,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, From aba28d365a984dfc9c9f3f00555003c81c4b6e8e Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 16 Aug 2023 19:17:41 -0700 Subject: [PATCH 08/21] d2ir: More alixander identified lazy glob bugs --- d2compiler/compile_test.go | 16 +- d2ir/compile.go | 7 +- d2ir/d2ir.go | 45 +- d2ir/merge.go | 2 +- d2ir/pattern.go | 9 +- d2ir/pattern_test.go | 47 +- d2ir/query.go | 2 +- .../alixander-lazy-globs-review/1.exp.json | 610 +++ .../alixander-lazy-globs-review/2.exp.json | 587 +++ .../patterns/alixander-review/5.exp.json | 2502 +++++++++ .../patterns/double-glob/defaults.exp.json | 741 --- .../TestCompile/patterns/override/3.exp.json | 4606 +++++++++++++++++ .../TestCompile/patterns/scenarios.exp.json | 22 - .../triple-glob/edge-defaults.exp.json | 4342 ---------------- 14 files changed, 8416 insertions(+), 5122 deletions(-) create mode 100644 testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.exp.json create mode 100644 testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/override/3.exp.json diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 4c9ccefbb..169145af2 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -4042,7 +4042,7 @@ func testGlobs(t *testing.T) { run func(t *testing.T) }{ { - name: "alixander-lazy-globs-review", + name: "alixander-lazy-globs-review/1", run: func(t *testing.T) { assertCompile(t, ` ***.style.fill: yellow @@ -4058,6 +4058,20 @@ layers: { a } } +`, "") + }, + }, + { + name: "alixander-lazy-globs-review/2", + run: func(t *testing.T) { + assertCompile(t, ` +**.style.fill: yellow + +scenarios: { + b: { + a -> b + } +} `, "") }, }, diff --git a/d2ir/compile.go b/d2ir/compile.go index d7bfa82f4..e16d51655 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -15,7 +15,9 @@ import ( ) type globContext struct { + root *globContext refctx *RefContext + // Set of BoardIDA that this glob has already applied to. appliedFields map[string]struct{} // Set of Edge IDs that this glob has already applied to. @@ -361,7 +363,7 @@ func (c *compiler) overlay(base *Map, f *Field) { func (g *globContext) prefixed(dst *Map) *globContext { g2 := *g - g2.refctx = g.refctx.Copy() + g2.refctx = g.root.refctx.Copy() prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) g2.refctx.Key = g2.refctx.Key.Copy() if g2.refctx.Key.Key != nil { @@ -477,6 +479,7 @@ func (c *compiler) ensureGlobContext(refctx *RefContext) *globContext { appliedFields: make(map[string]struct{}), appliedEdges: make(map[string]struct{}), } + gctx.root = gctx c.globContextStack[len(c.globContextStack)-1] = append(c.globContexts(), gctx) return gctx } @@ -829,7 +832,7 @@ func (c *compiler) _compileEdges(refctx *RefContext) { var ea []*Edge if eid.Index != nil || eid.Glob { - ea = refctx.ScopeMap.GetEdges(eid, refctx) + ea = refctx.ScopeMap.GetEdges(eid, refctx, c) if len(ea) == 0 { if !eid.Glob { c.errorf(refctx.Edge, "indexed edge does not exist") diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 5d49913a7..b0a3b2345 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -929,10 +929,14 @@ func (m *Map) DeleteField(ida ...string) *Field { return nil } -func (m *Map) GetEdges(eid *EdgeID, refctx *RefContext) []*Edge { +func (m *Map) GetEdges(eid *EdgeID, refctx *RefContext, c *compiler) []*Edge { if refctx != nil { + var gctx *globContext + if refctx.Key.HasGlob() && c != nil { + gctx = c.ensureGlobContext(refctx) + } var ea []*Edge - m.getEdges(eid, refctx, &ea) + m.getEdges(eid, refctx, gctx, &ea) return ea } @@ -946,7 +950,7 @@ func (m *Map) GetEdges(eid *EdgeID, refctx *RefContext) []*Edge { return nil } if f.Map() != nil { - return f.Map().GetEdges(eid, nil) + return f.Map().GetEdges(eid, nil, nil) } return nil } @@ -960,7 +964,7 @@ func (m *Map) GetEdges(eid *EdgeID, refctx *RefContext) []*Edge { return ea } -func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { +func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, gctx *globContext, ea *[]*Edge) error { eid, m, common, err := eid.resolve(m) if err != nil { return err @@ -991,7 +995,7 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { parent: f, } } - err = f.Map().getEdges(eid, refctx, ea) + err = f.Map().getEdges(eid, refctx, gctx, ea) if err != nil { return err } @@ -1014,8 +1018,22 @@ func (m *Map) getEdges(eid *EdgeID, refctx *RefContext, ea *[]*Edge) error { eid2.SrcPath = RelIDA(m, src) eid2.DstPath = RelIDA(m, dst) - ea2 := m.GetEdges(eid2, nil) - *ea = append(*ea, ea2...) + ea2 := m.GetEdges(eid2, nil, nil) + for _, e := range ea2 { + if gctx != nil { + var ks string + if refctx.Key.HasTripleGlob() { + ks = d2format.Format(d2ast.MakeKeyPath(IDA(e))) + } else { + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(e))) + } + if _, ok := gctx.appliedEdges[ks]; ok { + continue + } + gctx.appliedEdges[ks] = struct{}{} + } + *ea = append(*ea, ea2...) + } } } return nil @@ -1155,7 +1173,7 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, sr eid.Index = nil eid.Glob = true - ea := m.GetEdges(eid, nil) + ea := m.GetEdges(eid, nil, nil) index := len(ea) eid.Index = &index eid.Glob = false @@ -1234,6 +1252,13 @@ func (e *Edge) AST() d2ast.Node { return k } +func (e *Edge) IDString() string { + ast := e.AST().(*d2ast.Key) + ast.Primary = d2ast.ScalarBox{} + ast.Value = d2ast.ValueBox{} + return d2format.Format(ast) +} + func (a *Array) AST() d2ast.Node { if a == nil { return nil @@ -1419,7 +1444,7 @@ func BoardIDA(n Node) (ida []string) { } ida = append(ida, n.Name) case *Edge: - ida = append(ida, n.String()) + ida = append(ida, n.IDString()) } n = n.Parent() if n == nil { @@ -1440,7 +1465,7 @@ func IDA(n Node) (ida []string) { return ida } case *Edge: - ida = append(ida, n.String()) + ida = append(ida, n.IDString()) } n = n.Parent() if n == nil { diff --git a/d2ir/merge.go b/d2ir/merge.go index a4a30d21f..d68464bbe 100644 --- a/d2ir/merge.go +++ b/d2ir/merge.go @@ -11,7 +11,7 @@ func OverlayMap(base, overlay *Map) { } for _, oe := range overlay.Edges { - bea := base.GetEdges(oe.ID, nil) + bea := base.GetEdges(oe.ID, nil, nil) if len(bea) == 0 { base.Edges = append(base.Edges, oe.Copy(base).(*Edge)) continue diff --git a/d2ir/pattern.go b/d2ir/pattern.go index 34fe14f86..f73f15d45 100644 --- a/d2ir/pattern.go +++ b/d2ir/pattern.go @@ -29,8 +29,15 @@ func (m *Map) _doubleGlob(fa *[]*Field) { if _, ok := d2graph.BoardKeywords[f.Name]; !ok { continue } + // We don't ever want to append layers, scenarios or steps directly. + if f.Map() != nil { + f.Map()._tripleGlob(fa) + } + continue + } + if NodeBoardKind(f) == "" { + *fa = append(*fa, f) } - *fa = append(*fa, f) if f.Map() != nil { f.Map()._doubleGlob(fa) } diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index a1cdd4c46..653c8c106 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -355,7 +355,7 @@ scenarios.x: { p } layers.x: { p } `) assert.Success(t, err) - assertQuery(t, m, 25, 0, nil, "") + assertQuery(t, m, 23, 0, nil, "") assertQuery(t, m, 0, 0, "page", "a.shape") assertQuery(t, m, 0, 0, "page", "b.shape") assertQuery(t, m, 0, 0, "page", "c.shape") @@ -482,6 +482,24 @@ c assertQuery(t, m, 6, 0, nil, "") }, }, + { + name: "alixander-review/5", + run: func(t testing.TB) { + m, err := compile(t, ` +**.style.fill: red + +scenarios: { + b: { + a -> b + } +} +`) + assert.Success(t, err) + assertQuery(t, m, 8, 1, nil, "") + assertQuery(t, m, 0, 0, "red", "scenarios.b.a.style.fill") + assertQuery(t, m, 0, 0, "red", "scenarios.b.b.style.fill") + }, + }, { name: "override/1", run: func(t testing.TB) { @@ -515,6 +533,33 @@ layers: { assertQuery(t, m, 0, 0, "red", "layers.hi.a.style.fill") }, }, + { + name: "override/3", + run: func(t testing.TB) { + m, err := compile(t, ` +(*** -> ***)[*].label: hi + +a -> b + +layers: { + hi: { + (*** -> ***)[*].label: bye + + scenarios: { + b: { + # This label is "hi", but it should be "bye" + a -> b + } + } + } +} +`) + assert.Success(t, err) + assertQuery(t, m, 10, 2, nil, "") + assertQuery(t, m, 0, 0, "hi", "(a -> b)[0].label") + assertQuery(t, m, 0, 0, "bye", "layers.hi.scenarios.b.(a -> b)[0].label") + }, + }, } runa(t, tca) diff --git a/d2ir/query.go b/d2ir/query.go index 8534d53e5..92031a5f6 100644 --- a/d2ir/query.go +++ b/d2ir/query.go @@ -36,7 +36,7 @@ func (m *Map) QueryAll(idStr string) (na []Node, _ error) { ScopeMap: m, Edge: k.Edges[i], } - ea := m.GetEdges(eid, refctx) + ea := m.GetEdges(eid, refctx, nil) for _, e := range ea { if k.EdgeKey == nil { na = append(na, e) diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.exp.json new file mode 100644 index 000000000..c3895ff2c --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.exp.json @@ -0,0 +1,610 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,0:0:0-14:0:109", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,5:0:65-7:1:75", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,5:0:65-5:1:66", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,5:3:68-7:1:75", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,6:2:72-6:3:73", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,9:0:77-13:1:108", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,9:0:77-9:6:83", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,9:0:77-9:6:83", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,9:8:85-13:1:108", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,10:2:89-12:3:106", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,10:2:89-10:6:93", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,10:2:89-10:6:93", + "value": [ + { + "string": "next", + "raw_string": "next" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,10:8:95-12:3:106", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,11:4:101-11:5:102", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,11:4:101-11:5:102", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "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": "x", + "id_val": "x", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,5:0:65-5:1:66", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,5:0:65-5:1:66", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "x" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "yellow" + }, + "multiple": { + "value": "true" + } + }, + "near_key": null, + "shape": { + "value": "circle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + }, + { + "id": "y", + "id_val": "y", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "attributes": { + "label": { + "value": "y" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "yellow" + } + }, + "near_key": null, + "shape": { + "value": "circle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ], + "layers": [ + { + "name": "next", + "isFolderOnly": false, + "ast": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "fill" + } + ] + } + } + ] + }, + "primary": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "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/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,11:4:101-11:5:102", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/1.d2,11:4:101-11:5:102", + "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": "yellow" + } + }, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + } + ] + }, + "err": null +} diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.exp.json new file mode 100644 index 000000000..a2f7e9adc --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.exp.json @@ -0,0 +1,587 @@ +{ + "graph": { + "name": "", + "isFolderOnly": true, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,0:0:0-8:0:61", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:0:1-1:21:22", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:15:16-1:21:22", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,3:0:24-7:1:60", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,3:0:24-3:9:33", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,3:0:24-3:9:33", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,3:11:35-7:1:60", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,4:2:39-6:3:58", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,4:2:39-4:3:40", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,4:2:39-4:3:40", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,4:5:42-6:3:58", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:4:48-5:10:54", + "edges": [ + { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:4:48-5:10:54", + "src": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:4:48-5:5:49", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:4:48-5:5:49", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:9:53-5:10:54", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:9:53-5:10:54", + "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": null, + "objects": null, + "scenarios": [ + { + "name": "b", + "isFolderOnly": false, + "ast": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "fill" + } + ] + } + } + ] + }, + "primary": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:15:16-1:21:22", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": ",1:0:0-2:0:0", + "nodes": [ + { + "map_key": { + "range": ",0:0:0-0:0:0", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "fill" + } + ] + } + } + ] + }, + "primary": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,1:15:16-1:21:22", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": ",0:0:0-0:0:0", + "edges": [ + { + "range": ",0:0:0-0:0:0", + "src": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "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 + } + ], + "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/alixander-lazy-globs-review/2.d2,5:4:48-5:5:49", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:4:48-5:5:49", + "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": { + "fill": { + "value": "yellow" + } + }, + "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/alixander-lazy-globs-review/2.d2,5:9:53-5:10:54", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/2.d2,5:9:53-5:10:54", + "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": { + "fill": { + "value": "yellow" + } + }, + "near_key": null, + "shape": { + "value": "rectangle" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + } + ] + }, + "err": null +} diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json new file mode 100644 index 000000000..7e9211e56 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json @@ -0,0 +1,2502 @@ +{ + "fields": [ + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "b", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-6:3:55", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:5:39-6:3:55", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:0:21-3:9:30", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:0:21-3:9:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:0:21-3:9:30", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:0:21-7:1:57", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:0:21-3:9:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:0:21-3:9:30", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/5.d2,3:11:32-7:1:57", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-6:3:55", + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:2:36-4:3:37", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/5.d2,4:5:39-6:3:55", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:10:51", + "src": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:4:45-5:5:46", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,5:9:50-5:10:51", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json index 27b8540f3..2a48981fe 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -578,67 +578,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", @@ -706,57 +645,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,4:0:22-4:1:23", @@ -828,67 +716,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", @@ -956,57 +783,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,5:0:24-5:1:25", @@ -1078,67 +854,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", @@ -1206,57 +921,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", - "value": [ - { - "string": "c", - "raw_string": "c" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,6:0:26-6:1:27", @@ -1328,67 +992,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", @@ -1456,57 +1059,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", - "value": [ - { - "string": "d", - "raw_string": "d" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", - "value": [ - { - "string": "d", - "raw_string": "d" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", - "value": [ - { - "string": "d", - "raw_string": "d" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, { "string": { "range": "TestCompile/patterns/double-glob/defaults.d2,7:0:28-7:1:29", @@ -1697,83 +1249,6 @@ } } ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - } - ] } ], "edges": null @@ -2021,83 +1496,6 @@ } } ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - } - ] } ], "edges": null @@ -2343,145 +1741,6 @@ } } } - }, - { - "string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - }, - "key_path": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", - "key": { - "range": ",0:0:0-0:0:0", - "path": [ - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "scenarios" - } - ] - } - }, - { - "unquoted_string": { - "range": ",0:0:0-0:0:0", - "value": [ - { - "string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", - "key": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", - "value": [ - { - "string": "page", - "raw_string": "page" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/override/3.exp.json b/testdata/d2ir/TestCompile/patterns/override/3.exp.json new file mode 100644 index 000000000..fc7ed84a5 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/3.exp.json @@ -0,0 +1,4606 @@ +{ + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "layers", + "composite": { + "fields": [ + { + "name": "hi", + "composite": { + "fields": [ + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "b", + "composite": { + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "label", + "primary": { + "value": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-13:7:189", + "key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,10:9:112-13:7:189", + "nodes": [ + { + "comment": { + "range": "TestCompile/patterns/override/3.d2,11:8:122-11:52:166", + "value": "This label is \"hi\", but it should be \"bye\"" + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-14:5:195", + "key": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,9:15:101-14:5:195", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-13:7:189", + "key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,10:9:112-13:7:189", + "nodes": [ + { + "comment": { + "range": "TestCompile/patterns/override/3.d2,11:8:122-11:52:166", + "value": "This label is \"hi\", but it should be \"bye\"" + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-15:3:199", + "key": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,6:6:52-15:3:199", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-14:5:195", + "key": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,9:15:101-14:5:195", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-13:7:189", + "key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,10:9:112-13:7:189", + "nodes": [ + { + "comment": { + "range": "TestCompile/patterns/override/3.d2,11:8:122-11:52:166", + "value": "This label is \"hi\", but it should be \"bye\"" + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,5:0:36-5:6:42", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,5:0:36-5:6:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,5:0:36-5:6:42", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,5:0:36-16:1:201", + "key": { + "range": "TestCompile/patterns/override/3.d2,5:0:36-5:6:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,5:0:36-5:6:42", + "value": [ + { + "string": "layers", + "raw_string": "layers" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,5:8:44-16:1:201", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-15:3:199", + "key": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,6:2:48-6:4:50", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,6:6:52-15:3:199", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-14:5:195", + "key": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,9:4:90-9:13:99", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,9:15:101-14:5:195", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-13:7:189", + "key": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,10:6:109-10:7:110", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/3.d2,10:9:112-13:7:189", + "nodes": [ + { + "comment": { + "range": "TestCompile/patterns/override/3.d2,11:8:122-11:52:166", + "value": "This label is \"hi\", but it should be \"bye\"" + } + }, + { + "map_key": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:14:181", + "src": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:8:175-12:9:176", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,12:13:180-12:14:181", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + ] + } + } + } + } + ] + } + } + } + } + ] + } + } + } + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "label", + "primary": { + "value": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + } + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + } + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/scenarios.exp.json b/testdata/d2ir/TestCompile/patterns/scenarios.exp.json index 4fdd38d3b..6f97c5e81 100644 --- a/testdata/d2ir/TestCompile/patterns/scenarios.exp.json +++ b/testdata/d2ir/TestCompile/patterns/scenarios.exp.json @@ -2,32 +2,10 @@ "fields": [ { "name": "scenarios", - "primary": { - "value": { - "range": "TestCompile/patterns/scenarios.d2,16:4:57-16:13:66", - "value": [ - { - "string": "something", - "raw_string": "something" - } - ] - } - }, "composite": { "fields": [ { "name": "meow", - "primary": { - "value": { - "range": "TestCompile/patterns/scenarios.d2,16:4:57-16:13:66", - "value": [ - { - "string": "something", - "raw_string": "something" - } - ] - } - }, "composite": { "fields": [ { diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index e44017522..6cd63562f 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -1276,255 +1276,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -1697,255 +1448,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -2288,174 +1790,6 @@ } } }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, { "context": { "edge": { @@ -2648,342 +1982,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -3103,172 +2101,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -3441,172 +2273,6 @@ } } }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -4141,342 +2807,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -4513,172 +2843,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -4768,172 +2932,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -5300,342 +3298,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } @@ -6525,89 +4187,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -6697,89 +4276,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -7146,174 +4642,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } @@ -7965,255 +5293,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -8303,255 +5382,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -8893,510 +5723,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] }, @@ -9433,172 +5759,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", @@ -9688,172 +5848,6 @@ "edges": null }, "references": [ - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - }, { "string": { "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", @@ -10195,342 +6189,6 @@ } } } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } - }, - { - "context": { - "edge": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", - "edges": [ - { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", - "src": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", - "nodes": [ - { - "map_key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", - "key": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - } } ] } From 976ec17476e1cc49bd53387b72f7ffbd6462df61 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 17 Aug 2023 14:10:09 -0700 Subject: [PATCH 09/21] d2ir: Prevent globs from overriding any fields set by non globs --- d2compiler/compile.go | 30 +- d2ir/compile.go | 42 +- d2ir/d2ir.go | 145 ++- d2ir/import.go | 6 +- d2ir/pattern_test.go | 31 + .../d2ir/TestCompile/classes/basic.exp.json | 15 +- .../TestCompile/classes/inherited.exp.json | 240 +++-- .../TestCompile/classes/layer-modify.exp.json | 39 +- .../d2ir/TestCompile/classes/merge.exp.json | 42 +- .../d2ir/TestCompile/classes/nested.exp.json | 51 +- .../d2ir/TestCompile/edges/chain.exp.json | 27 +- .../d2ir/TestCompile/edges/nested.exp.json | 15 +- testdata/d2ir/TestCompile/edges/root.exp.json | 9 +- .../TestCompile/edges/underscore.exp.json | 12 +- .../d2ir/TestCompile/fields/array.exp.json | 3 +- .../d2ir/TestCompile/fields/label.exp.json | 3 +- .../d2ir/TestCompile/fields/nested.exp.json | 6 +- .../fields/primary/nested.exp.json | 9 +- .../TestCompile/fields/primary/root.exp.json | 6 +- .../d2ir/TestCompile/fields/root.exp.json | 3 +- .../d2ir/TestCompile/filters/array.exp.json | 39 +- .../d2ir/TestCompile/filters/base.exp.json | 21 +- .../d2ir/TestCompile/filters/edge.exp.json | 57 +- .../d2ir/TestCompile/filters/order.exp.json | 21 +- .../d2ir/TestCompile/imports/boards.exp.json | 27 +- .../TestCompile/imports/nested/array.exp.json | 3 +- .../TestCompile/imports/nested/map.exp.json | 9 +- .../imports/nested/scalar.exp.json | 3 +- .../imports/nested/spread.exp.json | 6 +- .../imports/nested/spread_primary.exp.json | 9 +- .../d2ir/TestCompile/imports/spread.exp.json | 3 +- .../imports/steps-inheritence.exp.json | 48 +- .../d2ir/TestCompile/imports/value.exp.json | 9 +- .../d2ir/TestCompile/imports/vars/1.exp.json | 9 +- .../d2ir/TestCompile/imports/vars/2.exp.json | 15 +- .../d2ir/TestCompile/imports/vars/3.exp.json | 15 +- .../layers/errs/4/good_edge.exp.json | 21 +- .../d2ir/TestCompile/layers/root.exp.json | 24 +- .../patterns/alixander-review/1.exp.json | 153 ++- .../patterns/alixander-review/2.exp.json | 27 +- .../patterns/alixander-review/3.exp.json | 54 +- .../patterns/alixander-review/4.exp.json | 27 +- .../patterns/alixander-review/5.exp.json | 57 +- .../d2ir/TestCompile/patterns/case/1.exp.json | 6 +- .../d2ir/TestCompile/patterns/case/2.exp.json | 6 +- .../patterns/double-glob/1.exp.json | 30 +- .../patterns/double-glob/defaults.exp.json | 75 +- .../double-glob/edge-no-container.exp.json | 30 +- .../patterns/double-glob/edge/1.exp.json | 24 +- .../patterns/double-glob/edge/2.exp.json | 12 +- .../patterns/edge-glob-index.exp.json | 72 +- .../TestCompile/patterns/edge-nexus.exp.json | 27 +- .../d2ir/TestCompile/patterns/edge/1.exp.json | 12 +- .../d2ir/TestCompile/patterns/edge/2.exp.json | 18 +- .../d2ir/TestCompile/patterns/edge/3.exp.json | 18 +- .../TestCompile/patterns/escaped.exp.json | 9 +- .../patterns/glob-edge-glob-index.exp.json | 84 +- .../patterns/nested/prefix-suffix/3.exp.json | 24 +- .../TestCompile/patterns/override/1.exp.json | 21 +- .../TestCompile/patterns/override/2.exp.json | 45 +- .../TestCompile/patterns/override/3.exp.json | 84 +- .../TestCompile/patterns/override/4.exp.json | 855 +++++++++++++++ .../TestCompile/patterns/override/5.exp.json | 991 ++++++++++++++++++ .../patterns/prefix-suffix.exp.json | 6 +- .../patterns/prefix-suffix/2.exp.json | 6 +- .../patterns/prefix-suffix/3.exp.json | 6 +- .../d2ir/TestCompile/patterns/prefix.exp.json | 6 +- .../TestCompile/patterns/reserved.exp.json | 36 +- .../TestCompile/patterns/scenarios.exp.json | 102 +- .../patterns/single-glob/defaults.exp.json | 144 ++- .../d2ir/TestCompile/patterns/suffix.exp.json | 6 +- .../patterns/triple-glob/defaults.exp.json | 96 +- .../triple-glob/edge-defaults.exp.json | 150 ++- .../d2ir/TestCompile/scenarios/edge.exp.json | 39 +- .../d2ir/TestCompile/scenarios/root.exp.json | 48 +- .../d2ir/TestCompile/steps/recursive.exp.json | 87 +- testdata/d2ir/TestCompile/steps/root.exp.json | 57 +- 77 files changed, 3721 insertions(+), 902 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/override/4.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/override/5.exp.json diff --git a/d2compiler/compile.go b/d2compiler/compile.go index 841e381a0..6b40777e4 100644 --- a/d2compiler/compile.go +++ b/d2compiler/compile.go @@ -322,21 +322,21 @@ func (c *compiler) compileField(obj *d2graph.Object, f *d2ir.Field) { } for _, fr := range f.References { if fr.Primary() { - if fr.Context.Key.Value.Map != nil { - obj.Map = fr.Context.Key.Value.Map + if fr.Context_.Key.Value.Map != nil { + obj.Map = fr.Context_.Key.Value.Map } } r := d2graph.Reference{ Key: fr.KeyPath, KeyPathIndex: fr.KeyPathIndex(), - MapKey: fr.Context.Key, - MapKeyEdgeIndex: fr.Context.EdgeIndex(), - Scope: fr.Context.Scope, - ScopeAST: fr.Context.ScopeAST, + MapKey: fr.Context_.Key, + MapKeyEdgeIndex: fr.Context_.EdgeIndex(), + Scope: fr.Context_.Scope, + ScopeAST: fr.Context_.ScopeAST, } - if fr.Context.ScopeMap != nil && !d2ir.IsVar(fr.Context.ScopeMap) { - scopeObjIDA := d2graphIDA(d2ir.BoardIDA(fr.Context.ScopeMap)) + if fr.Context_.ScopeMap != nil && !d2ir.IsVar(fr.Context_.ScopeMap) { + scopeObjIDA := d2graphIDA(d2ir.BoardIDA(fr.Context_.ScopeMap)) r.ScopeObj = obj.Graph.Root.EnsureChild(scopeObjIDA) } obj.References = append(obj.References, r) @@ -725,14 +725,14 @@ func (c *compiler) compileEdge(obj *d2graph.Object, e *d2ir.Edge) { edge.Label.MapKey = e.LastPrimaryKey() for _, er := range e.References { r := d2graph.EdgeReference{ - Edge: er.Context.Edge, - MapKey: er.Context.Key, - MapKeyEdgeIndex: er.Context.EdgeIndex(), - Scope: er.Context.Scope, - ScopeAST: er.Context.ScopeAST, + Edge: er.Context_.Edge, + MapKey: er.Context_.Key, + MapKeyEdgeIndex: er.Context_.EdgeIndex(), + Scope: er.Context_.Scope, + ScopeAST: er.Context_.ScopeAST, } - if er.Context.ScopeMap != nil && !d2ir.IsVar(er.Context.ScopeMap) { - scopeObjIDA := d2graphIDA(d2ir.BoardIDA(er.Context.ScopeMap)) + if er.Context_.ScopeMap != nil && !d2ir.IsVar(er.Context_.ScopeMap) { + scopeObjIDA := d2graphIDA(d2ir.BoardIDA(er.Context_.ScopeMap)) r.ScopeObj = edge.Src.Graph.Root.EnsureChild(scopeObjIDA) } edge.References = append(edge.References, r) diff --git a/d2ir/compile.go b/d2ir/compile.go index e16d51655..0d5b98557 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -39,7 +39,8 @@ type compiler struct { // Used to prevent field globs causing infinite loops. globRefContextStack []*RefContext // Used to check whether ampersands are allowed in the current map. - mapRefContextStack []*RefContext + mapRefContextStack []*RefContext + lazyGlobBeingApplied bool } type CompileOptions struct { @@ -65,8 +66,8 @@ func Compile(ast *d2ast.Map, opts *CompileOptions) (*Map, error) { } m := &Map{} m.initRoot() - m.parent.(*Field).References[0].Context.Scope = ast - m.parent.(*Field).References[0].Context.ScopeAST = ast + m.parent.(*Field).References[0].Context_.Scope = ast + m.parent.(*Field).References[0].Context_.ScopeAST = ast c.pushImportStack(&d2ast.Import{ Path: []*d2ast.StringBox{d2ast.RawStringBox(ast.GetRange().Path, true)}, @@ -99,7 +100,7 @@ func (c *compiler) overlayClasses(m *Map) { for _, lf := range layers.Fields { if lf.Map() == nil || lf.Primary() != nil { - c.errorf(lf.References[0].Context.Key, "invalid layer") + c.errorf(lf.References[0].Context_.Key, "invalid layer") continue } l := lf.Map() @@ -353,7 +354,7 @@ func (c *compiler) resolveSubstitution(vars *Map, substitution *d2ast.Substituti func (c *compiler) overlay(base *Map, f *Field) { if f.Map() == nil || f.Primary() != nil { - c.errorf(f.References[0].Context.Key, "invalid %s", NodeBoardKind(f)) + c.errorf(f.References[0].Context_.Key, "invalid %s", NodeBoardKind(f)) return } base = base.CopyBase(f) @@ -512,7 +513,9 @@ func (c *compiler) compileKey(refctx *RefContext) { if oldFields != refctx.ScopeMap.FieldCountRecursive() || oldEdges != refctx.ScopeMap.EdgeCountRecursive() { for _, gctx2 := range c.globContexts() { // println(d2format.Format(gctx2.refctx.Key), d2format.Format(refctx.Key)) + c.lazyGlobBeingApplied = true c.compileKey(gctx2.refctx) + c.lazyGlobBeingApplied = false } } } @@ -600,6 +603,9 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { } if refctx.Key.Primary.Unbox() != nil { + if c.ignoreLazyGlob(f) { + return + } f.Primary_ = &Scalar{ parent: f, Value: refctx.Key.Primary.Unbox(), @@ -686,6 +692,9 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { } } } else if refctx.Key.Value.ScalarBox().Unbox() != nil { + if c.ignoreLazyGlob(f) { + return + } f.Primary_ = &Scalar{ parent: f, Value: refctx.Key.Value.ScalarBox().Unbox(), @@ -697,6 +706,17 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { } } +// Whether the current lazy glob being applied should not override the field +// if already set by a non glob key. +func (c *compiler) ignoreLazyGlob(n Node) bool { + if c.lazyGlobBeingApplied && n.Primary() != nil { + if ref := n.SecondLastPrimaryRef(); ref != nil && !ref.DueToGlob() { + return true + } + } + return false +} + func (c *compiler) updateLinks(m *Map) { for _, f := range m.Fields { if f.Name == "link" { @@ -841,10 +861,10 @@ func (c *compiler) _compileEdges(refctx *RefContext) { } for _, e := range ea { e.References = append(e.References, &EdgeReference{ - Context: refctx, + Context_: refctx, }) - refctx.ScopeMap.appendFieldReferences(0, refctx.Edge.Src, refctx) - refctx.ScopeMap.appendFieldReferences(0, refctx.Edge.Dst, refctx) + refctx.ScopeMap.appendFieldReferences(0, refctx.Edge.Src, refctx, c) + refctx.ScopeMap.appendFieldReferences(0, refctx.Edge.Dst, refctx, c) } } else { var err error @@ -865,6 +885,9 @@ func (c *compiler) _compileEdges(refctx *RefContext) { c.compileField(e.Map_, refctx.Key.EdgeKey, refctx) } else { if refctx.Key.Primary.Unbox() != nil { + if c.ignoreLazyGlob(e) { + return + } e.Primary_ = &Scalar{ parent: e, Value: refctx.Key.Primary.Unbox(), @@ -883,6 +906,9 @@ func (c *compiler) _compileEdges(refctx *RefContext) { c.compileMap(e.Map_, refctx.Key.Value.Map, refctx.ScopeAST) c.mapRefContextStack = c.mapRefContextStack[:len(c.mapRefContextStack)-1] } else if refctx.Key.Value.ScalarBox().Unbox() != nil { + if c.ignoreLazyGlob(e) { + return + } e.Primary_ = &Scalar{ parent: e, Value: refctx.Key.Value.ScalarBox().Unbox(), diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index b0a3b2345..78780d501 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -29,6 +29,8 @@ type Node interface { fmt.Stringer LastRef() Reference + LastPrimaryRef() Reference + SecondLastPrimaryRef() Reference LastPrimaryKey() *d2ast.Key } @@ -110,6 +112,14 @@ func (n *Scalar) LastRef() Reference { return parentRef(n) } func (n *Map) LastRef() Reference { return parentRef(n) } func (n *Array) LastRef() Reference { return parentRef(n) } +func (n *Scalar) LastPrimaryRef() Reference { return parentPrimaryRef(n) } +func (n *Map) LastPrimaryRef() Reference { return parentPrimaryRef(n) } +func (n *Array) LastPrimaryRef() Reference { return parentPrimaryRef(n) } + +func (n *Scalar) SecondLastPrimaryRef() Reference { return parentSecondPrimaryRef(n) } +func (n *Map) SecondLastPrimaryRef() Reference { return parentSecondPrimaryRef(n) } +func (n *Array) SecondLastPrimaryRef() Reference { return parentSecondPrimaryRef(n) } + func (n *Scalar) LastPrimaryKey() *d2ast.Key { return parentPrimaryKey(n) } func (n *Map) LastPrimaryKey() *d2ast.Key { return parentPrimaryKey(n) } func (n *Array) LastPrimaryKey() *d2ast.Key { return parentPrimaryKey(n) } @@ -119,13 +129,20 @@ type Reference interface { // Most specific AST node for the reference. AST() d2ast.Node Primary() bool + Context() *RefContext + // Result of a glob in Context or from above. + DueToGlob() bool } var _ Reference = &FieldReference{} var _ Reference = &EdgeReference{} -func (r *FieldReference) reference() {} -func (r *EdgeReference) reference() {} +func (r *FieldReference) reference() {} +func (r *EdgeReference) reference() {} +func (r *FieldReference) Context() *RefContext { return r.Context_ } +func (r *EdgeReference) Context() *RefContext { return r.Context_ } +func (r *FieldReference) DueToGlob() bool { return r.DueToGlob_ } +func (r *EdgeReference) DueToGlob() bool { return r.DueToGlob_ } type Scalar struct { parent Node @@ -160,7 +177,7 @@ func (m *Map) initRoot() { m.parent = &Field{ Name: "root", References: []*FieldReference{{ - Context: &RefContext{ + Context_: &RefContext{ ScopeMap: m, }, }}, @@ -299,7 +316,7 @@ func (f *Field) Copy(newParent Node) Node { return f } -func (f *Field) lastPrimaryRef() *FieldReference { +func (f *Field) LastPrimaryRef() Reference { for i := len(f.References) - 1; i >= 0; i-- { if f.References[i].Primary() { return f.References[i] @@ -308,12 +325,26 @@ func (f *Field) lastPrimaryRef() *FieldReference { return nil } +func (f *Field) SecondLastPrimaryRef() Reference { + second := false + for i := len(f.References) - 1; i >= 0; i-- { + if f.References[i].Primary() { + if !second { + second = true + continue + } + return f.References[i] + } + } + return nil +} + func (f *Field) LastPrimaryKey() *d2ast.Key { - fr := f.lastPrimaryRef() + fr := f.LastPrimaryRef() if fr == nil { return nil } - return fr.Context.Key + return fr.(*FieldReference).Context_.Key } func (f *Field) LastRef() Reference { @@ -455,10 +486,25 @@ func (e *Edge) Copy(newParent Node) Node { return e } -func (e *Edge) lastPrimaryRef() *EdgeReference { +func (e *Edge) LastPrimaryRef() Reference { for i := len(e.References) - 1; i >= 0; i-- { fr := e.References[i] - if fr.Context.Key.EdgeKey == nil { + if fr.Context_.Key.EdgeKey == nil { + return fr + } + } + return nil +} + +func (e *Edge) SecondLastPrimaryRef() Reference { + second := false + for i := len(e.References) - 1; i >= 0; i-- { + fr := e.References[i] + if fr.Context_.Key.EdgeKey == nil { + if !second { + second = true + continue + } return fr } } @@ -466,11 +512,11 @@ func (e *Edge) lastPrimaryRef() *EdgeReference { } func (e *Edge) LastPrimaryKey() *d2ast.Key { - er := e.lastPrimaryRef() + er := e.LastPrimaryRef() if er == nil { return nil } - return er.Context.Key + return er.(*EdgeReference).Context_.Key } func (e *Edge) LastRef() Reference { @@ -498,16 +544,17 @@ type FieldReference struct { String d2ast.String `json:"string"` KeyPath *d2ast.KeyPath `json:"key_path"` - Context *RefContext `json:"context"` + Context_ *RefContext `json:"context"` + DueToGlob_ bool `json:"from_glob"` } // Primary returns true if the Value in Context.Key.Value corresponds to the Field // represented by String. func (fr *FieldReference) Primary() bool { - if fr.KeyPath == fr.Context.Key.Key { - return len(fr.Context.Key.Edges) == 0 && fr.KeyPathIndex() == len(fr.KeyPath.Path)-1 - } else if fr.KeyPath == fr.Context.Key.EdgeKey { - return len(fr.Context.Key.Edges) == 1 && fr.KeyPathIndex() == len(fr.KeyPath.Path)-1 + if fr.KeyPath == fr.Context_.Key.Key { + return len(fr.Context_.Key.Edges) == 0 && fr.KeyPathIndex() == len(fr.KeyPath.Path)-1 + } else if fr.KeyPath == fr.Context_.Key.EdgeKey { + return len(fr.Context_.Key.Edges) == 1 && fr.KeyPathIndex() == len(fr.KeyPath.Path)-1 } return false } @@ -522,33 +569,34 @@ func (fr *FieldReference) KeyPathIndex() int { } func (fr *FieldReference) EdgeDest() bool { - return fr.KeyPath == fr.Context.Edge.Dst + return fr.KeyPath == fr.Context_.Edge.Dst } func (fr *FieldReference) InEdge() bool { - return fr.Context.Edge != nil + return fr.Context_.Edge != nil } func (fr *FieldReference) AST() d2ast.Node { if fr.String == nil { // Root map. - return fr.Context.Scope + return fr.Context_.Scope } return fr.String } type EdgeReference struct { - Context *RefContext `json:"context"` + Context_ *RefContext `json:"context"` + DueToGlob_ bool `json:"from_glob"` } func (er *EdgeReference) AST() d2ast.Node { - return er.Context.Edge + return er.Context_.Edge } // Primary returns true if the Value in Context.Key.Value corresponds to the *Edge // represented by Context.Edge func (er *EdgeReference) Primary() bool { - return len(er.Context.Key.Edges) == 1 && er.Context.Key.EdgeKey == nil + return len(er.Context_.Key.Edges) == 1 && er.Context_.Key.EdgeKey == nil } type RefContext struct { @@ -812,9 +860,10 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b // Don't add references for fake common KeyPath from trimCommon in CreateEdge. if refctx != nil { f.References = append(f.References, &FieldReference{ - String: kp.Path[i].Unbox(), - KeyPath: kp, - Context: refctx, + String: kp.Path[i].Unbox(), + KeyPath: kp, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, }) } @@ -846,9 +895,10 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b // Don't add references for fake common KeyPath from trimCommon in CreateEdge. if refctx != nil { f.References = append(f.References, &FieldReference{ - String: kp.Path[i].Unbox(), - KeyPath: kp, - Context: refctx, + String: kp.Path[i].Unbox(), + KeyPath: kp, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, }) } m.Fields = append(m.Fields, f) @@ -897,7 +947,7 @@ func (m *Map) DeleteField(ida ...string) *Field { for _, fr := range f.References { for _, e := range m.Edges { for _, er := range e.References { - if er.Context == fr.Context { + if er.Context_ == fr.Context_ { m.DeleteEdge(e.ID) break } @@ -1181,7 +1231,7 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, sr parent: m, ID: eid, References: []*EdgeReference{{ - Context: refctx, + Context_: refctx, }}, } @@ -1289,7 +1339,7 @@ func (m *Map) AST() d2ast.Node { return astMap } -func (m *Map) appendFieldReferences(i int, kp *d2ast.KeyPath, refctx *RefContext) { +func (m *Map) appendFieldReferences(i int, kp *d2ast.KeyPath, refctx *RefContext, c *compiler) { sb := kp.Path[i] f := m.GetField(sb.Unbox().ScalarString()) if f == nil { @@ -1297,15 +1347,16 @@ func (m *Map) appendFieldReferences(i int, kp *d2ast.KeyPath, refctx *RefContext } f.References = append(f.References, &FieldReference{ - String: sb.Unbox(), - KeyPath: kp, - Context: refctx, + String: sb.Unbox(), + KeyPath: kp, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, }) if i+1 == len(kp.Path) { return } if f.Map() != nil { - f.Map().appendFieldReferences(i+1, kp, refctx) + f.Map().appendFieldReferences(i+1, kp, refctx, c) } } @@ -1421,6 +1472,30 @@ func parentRef(n Node) Reference { return nil } +func parentPrimaryRef(n Node) Reference { + f := ParentField(n) + if f != nil { + return f.LastPrimaryRef() + } + e := ParentEdge(n) + if e != nil { + return e.LastPrimaryRef() + } + return nil +} + +func parentSecondPrimaryRef(n Node) Reference { + f := ParentField(n) + if f != nil { + return f.SecondLastPrimaryRef() + } + e := ParentEdge(n) + if e != nil { + return e.SecondLastPrimaryRef() + } + return nil +} + func parentPrimaryKey(n Node) *d2ast.Key { f := ParentField(n) if f != nil { @@ -1592,7 +1667,7 @@ func (m *Map) InClass(key *d2ast.Key) bool { } for _, ref := range classF.References { - if ref.Context.Key == key { + if ref.Context_.Key == key { return true } } diff --git a/d2ir/import.go b/d2ir/import.go index 44cf509ff..ef5687127 100644 --- a/d2ir/import.go +++ b/d2ir/import.go @@ -108,7 +108,7 @@ func (c *compiler) __import(imp *d2ast.Import) (*Map, bool) { ir = &Map{} ir.initRoot() - ir.parent.(*Field).References[0].Context.Scope = ast + ir.parent.(*Field).References[0].Context_.Scope = ast c.compileMap(ir, ast, ast) @@ -128,14 +128,14 @@ func nilScopeMap(n Node) { } case *Edge: for _, r := range n.References { - r.Context.ScopeMap = nil + r.Context_.ScopeMap = nil } if n.Map() != nil { nilScopeMap(n.Map()) } case *Field: for _, r := range n.References { - r.Context.ScopeMap = nil + r.Context_.ScopeMap = nil } if n.Map() != nil { nilScopeMap(n.Map()) diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 653c8c106..6889a29a1 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -560,6 +560,37 @@ layers: { assertQuery(t, m, 0, 0, "bye", "layers.hi.scenarios.b.(a -> b)[0].label") }, }, + { + name: "override/4", + run: func(t testing.TB) { + m, err := compile(t, ` +(*** -> ***)[*].label: hi + +a -> b: { + label: bye +} +`) + assert.Success(t, err) + assertQuery(t, m, 3, 1, nil, "") + assertQuery(t, m, 0, 0, "bye", "(a -> b)[0].label") + }, + }, + { + name: "override/5", + run: func(t testing.TB) { + m, err := compile(t, ` +(*** -> ***)[*].label: hi + +# This is "hey" right now but should be "hi"? +a -> b + +(*** -> ***)[*].label: hey +`) + assert.Success(t, err) + assertQuery(t, m, 3, 1, nil, "") + assertQuery(t, m, 0, 0, "hey", "(a -> b)[0].label") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/classes/basic.exp.json b/testdata/d2ir/TestCompile/classes/basic.exp.json index eed20a6c8..ee64de956 100644 --- a/testdata/d2ir/TestCompile/classes/basic.exp.json +++ b/testdata/d2ir/TestCompile/classes/basic.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -163,7 +164,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -252,7 +254,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -359,7 +362,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -495,7 +499,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/inherited.exp.json b/testdata/d2ir/TestCompile/classes/inherited.exp.json index f88697361..2d6741f30 100644 --- a/testdata/d2ir/TestCompile/classes/inherited.exp.json +++ b/testdata/d2ir/TestCompile/classes/inherited.exp.json @@ -107,7 +107,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -196,7 +197,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -303,7 +305,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -439,7 +442,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -558,7 +562,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -647,7 +652,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -754,7 +760,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -890,7 +897,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1009,7 +1017,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1098,7 +1107,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1205,7 +1215,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1312,7 +1323,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1401,7 +1413,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1508,7 +1521,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1644,7 +1658,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1774,7 +1789,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1830,7 +1846,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2018,7 +2035,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2133,7 +2151,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2222,7 +2241,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2329,7 +2349,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2436,7 +2457,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2525,7 +2547,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2632,7 +2655,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2768,7 +2792,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2898,7 +2923,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2954,7 +2980,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3010,7 +3037,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -3096,7 +3124,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -3211,7 +3240,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3300,7 +3330,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3407,7 +3438,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -3514,7 +3546,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3597,7 +3630,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3686,7 +3720,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3769,7 +3804,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3876,7 +3912,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3977,7 +4014,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -4113,7 +4151,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -4243,7 +4282,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -4373,7 +4413,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -4429,7 +4470,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -4485,7 +4527,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -4536,7 +4579,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -4724,7 +4768,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -4839,7 +4884,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -4928,7 +4974,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -5035,7 +5082,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -5142,7 +5190,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5225,7 +5274,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -5314,7 +5364,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5397,7 +5448,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -5504,7 +5556,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5605,7 +5658,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -5741,7 +5795,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5871,7 +5926,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -6001,7 +6057,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -6057,7 +6114,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -6108,7 +6166,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -6164,7 +6223,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -6215,7 +6275,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -6279,7 +6340,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -6390,7 +6452,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -6479,7 +6542,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -6586,7 +6650,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -6693,7 +6758,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -6776,7 +6842,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -6865,7 +6932,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -6948,7 +7016,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -7055,7 +7124,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -7156,7 +7226,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -7292,7 +7363,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -7422,7 +7494,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -7552,7 +7625,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -7638,7 +7712,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -7753,7 +7828,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -7920,7 +7996,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -8476,7 +8553,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -9061,7 +9139,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -9675,7 +9754,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/layer-modify.exp.json b/testdata/d2ir/TestCompile/classes/layer-modify.exp.json index 087bc4de2..0cc411490 100644 --- a/testdata/d2ir/TestCompile/classes/layer-modify.exp.json +++ b/testdata/d2ir/TestCompile/classes/layer-modify.exp.json @@ -107,7 +107,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -196,7 +197,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -303,7 +305,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -439,7 +442,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -558,7 +562,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -701,7 +706,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -790,7 +796,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -917,7 +924,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1024,7 +1032,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1151,7 +1160,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1287,7 +1297,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1416,7 +1427,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1574,7 +1586,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/merge.exp.json b/testdata/d2ir/TestCompile/classes/merge.exp.json index 1ad04233f..af3cf33f5 100644 --- a/testdata/d2ir/TestCompile/classes/merge.exp.json +++ b/testdata/d2ir/TestCompile/classes/merge.exp.json @@ -107,7 +107,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -196,7 +197,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -265,7 +267,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -401,7 +404,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -566,7 +570,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -685,7 +690,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -774,7 +780,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -843,7 +850,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -900,7 +908,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1036,7 +1045,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1122,7 +1132,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1287,7 +1298,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1437,7 +1449,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1616,7 +1629,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/nested.exp.json b/testdata/d2ir/TestCompile/classes/nested.exp.json index 9fec0c647..dde7b34e0 100644 --- a/testdata/d2ir/TestCompile/classes/nested.exp.json +++ b/testdata/d2ir/TestCompile/classes/nested.exp.json @@ -107,7 +107,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -196,7 +197,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -303,7 +305,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -439,7 +442,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -511,7 +515,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -622,7 +627,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -711,7 +717,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -818,7 +825,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -954,7 +962,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1040,7 +1049,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1155,7 +1165,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1266,7 +1277,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1355,7 +1367,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1462,7 +1475,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1598,7 +1612,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1742,7 +1757,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1915,7 +1931,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/chain.exp.json b/testdata/d2ir/TestCompile/edges/chain.exp.json index 8484dbbdb..b3aec64de 100644 --- a/testdata/d2ir/TestCompile/edges/chain.exp.json +++ b/testdata/d2ir/TestCompile/edges/chain.exp.json @@ -185,7 +185,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -374,7 +375,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -558,7 +560,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -747,7 +750,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -931,7 +935,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1120,7 +1125,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1297,7 +1303,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1472,7 +1479,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1647,7 +1655,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/nested.exp.json b/testdata/d2ir/TestCompile/edges/nested.exp.json index 548780974..dd69ea403 100644 --- a/testdata/d2ir/TestCompile/edges/nested.exp.json +++ b/testdata/d2ir/TestCompile/edges/nested.exp.json @@ -170,7 +170,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -341,7 +342,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -515,7 +517,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -686,7 +689,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -835,7 +839,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/root.exp.json b/testdata/d2ir/TestCompile/edges/root.exp.json index ec08bcf95..0b20726a8 100644 --- a/testdata/d2ir/TestCompile/edges/root.exp.json +++ b/testdata/d2ir/TestCompile/edges/root.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -329,7 +331,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/underscore.exp.json b/testdata/d2ir/TestCompile/edges/underscore.exp.json index 066323086..5f506aea1 100644 --- a/testdata/d2ir/TestCompile/edges/underscore.exp.json +++ b/testdata/d2ir/TestCompile/edges/underscore.exp.json @@ -137,7 +137,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -257,7 +258,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -405,7 +407,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -531,7 +534,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/array.exp.json b/testdata/d2ir/TestCompile/fields/array.exp.json index 4530ab3bc..4587fa35e 100644 --- a/testdata/d2ir/TestCompile/fields/array.exp.json +++ b/testdata/d2ir/TestCompile/fields/array.exp.json @@ -118,7 +118,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/label.exp.json b/testdata/d2ir/TestCompile/fields/label.exp.json index 278d70857..a4503c572 100644 --- a/testdata/d2ir/TestCompile/fields/label.exp.json +++ b/testdata/d2ir/TestCompile/fields/label.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/nested.exp.json b/testdata/d2ir/TestCompile/fields/nested.exp.json index 042d9865f..44377bd15 100644 --- a/testdata/d2ir/TestCompile/fields/nested.exp.json +++ b/testdata/d2ir/TestCompile/fields/nested.exp.json @@ -99,7 +99,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -188,7 +189,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/primary/nested.exp.json b/testdata/d2ir/TestCompile/fields/primary/nested.exp.json index 815fc5fcc..2397dbeac 100644 --- a/testdata/d2ir/TestCompile/fields/primary/nested.exp.json +++ b/testdata/d2ir/TestCompile/fields/primary/nested.exp.json @@ -71,7 +71,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -189,7 +190,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -307,7 +309,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/primary/root.exp.json b/testdata/d2ir/TestCompile/fields/primary/root.exp.json index 5b82d2d85..5f418d72b 100644 --- a/testdata/d2ir/TestCompile/fields/primary/root.exp.json +++ b/testdata/d2ir/TestCompile/fields/primary/root.exp.json @@ -67,7 +67,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -163,7 +164,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/root.exp.json b/testdata/d2ir/TestCompile/fields/root.exp.json index daba81dbf..94688803b 100644 --- a/testdata/d2ir/TestCompile/fields/root.exp.json +++ b/testdata/d2ir/TestCompile/fields/root.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/array.exp.json b/testdata/d2ir/TestCompile/filters/array.exp.json index 1fc271233..68be20b30 100644 --- a/testdata/d2ir/TestCompile/filters/array.exp.json +++ b/testdata/d2ir/TestCompile/filters/array.exp.json @@ -110,7 +110,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -172,7 +173,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -265,7 +267,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -349,7 +352,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -463,7 +467,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -577,7 +582,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -639,7 +645,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -753,7 +760,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -867,7 +875,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -929,7 +938,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1022,7 +1032,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1106,7 +1117,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1220,7 +1232,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/base.exp.json b/testdata/d2ir/TestCompile/filters/base.exp.json index c8a934bbc..3179710ed 100644 --- a/testdata/d2ir/TestCompile/filters/base.exp.json +++ b/testdata/d2ir/TestCompile/filters/base.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -139,7 +140,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -235,7 +237,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -316,7 +319,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -378,7 +382,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -455,7 +460,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -551,7 +557,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/edge.exp.json b/testdata/d2ir/TestCompile/filters/edge.exp.json index 7e65c4f85..afbb299e8 100644 --- a/testdata/d2ir/TestCompile/filters/edge.exp.json +++ b/testdata/d2ir/TestCompile/filters/edge.exp.json @@ -205,7 +205,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -315,7 +316,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -565,7 +567,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -815,7 +818,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1024,7 +1028,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1134,7 +1139,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1254,7 +1260,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1338,7 +1345,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1427,7 +1435,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1511,7 +1520,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1614,7 +1624,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1698,7 +1709,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1787,7 +1799,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1871,7 +1884,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1948,7 +1962,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2133,7 +2148,8 @@ } } } - } + }, + "from_glob": false }, { "context": { @@ -2358,7 +2374,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2463,7 +2480,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -2688,7 +2706,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/order.exp.json b/testdata/d2ir/TestCompile/filters/order.exp.json index d7a77a374..78ee0cbd7 100644 --- a/testdata/d2ir/TestCompile/filters/order.exp.json +++ b/testdata/d2ir/TestCompile/filters/order.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -139,7 +140,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -235,7 +237,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -316,7 +319,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -378,7 +382,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -455,7 +460,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -551,7 +557,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/boards.exp.json b/testdata/d2ir/TestCompile/imports/boards.exp.json index 236a496dc..ea018af8a 100644 --- a/testdata/d2ir/TestCompile/imports/boards.exp.json +++ b/testdata/d2ir/TestCompile/imports/boards.exp.json @@ -98,7 +98,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -187,7 +188,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -297,7 +299,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -386,7 +389,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -450,7 +454,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -526,7 +531,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -631,7 +637,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -707,7 +714,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -812,7 +820,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/array.exp.json b/testdata/d2ir/TestCompile/imports/nested/array.exp.json index 9e1737148..343595700 100644 --- a/testdata/d2ir/TestCompile/imports/nested/array.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/array.exp.json @@ -97,7 +97,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/map.exp.json b/testdata/d2ir/TestCompile/imports/nested/map.exp.json index b1dedaa35..6834aea20 100644 --- a/testdata/d2ir/TestCompile/imports/nested/map.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/map.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -154,7 +155,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -241,7 +243,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json b/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json index ed273c2c0..7f245892d 100644 --- a/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json @@ -93,7 +93,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/spread.exp.json b/testdata/d2ir/TestCompile/imports/nested/spread.exp.json index 6a7baa961..63803460c 100644 --- a/testdata/d2ir/TestCompile/imports/nested/spread.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/spread.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -108,7 +109,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json b/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json index 1dbc2241c..6ec12f9df 100644 --- a/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json @@ -67,7 +67,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -123,7 +124,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -217,7 +219,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/spread.exp.json b/testdata/d2ir/TestCompile/imports/spread.exp.json index cc2a0a3e5..e8d2264bb 100644 --- a/testdata/d2ir/TestCompile/imports/spread.exp.json +++ b/testdata/d2ir/TestCompile/imports/spread.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json b/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json index e80dff636..f0770efbc 100644 --- a/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json +++ b/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -116,7 +117,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -172,7 +174,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -248,7 +251,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -308,7 +312,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -364,7 +369,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -440,7 +446,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -587,7 +594,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -651,7 +659,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -707,7 +716,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -783,7 +793,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -843,7 +854,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -899,7 +911,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -955,7 +968,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1031,7 +1045,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1178,7 +1193,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/value.exp.json b/testdata/d2ir/TestCompile/imports/value.exp.json index 8e5c0f021..3ea82ca07 100644 --- a/testdata/d2ir/TestCompile/imports/value.exp.json +++ b/testdata/d2ir/TestCompile/imports/value.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -154,7 +155,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -230,7 +232,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/vars/1.exp.json b/testdata/d2ir/TestCompile/imports/vars/1.exp.json index 9d278fd74..c7a748bd9 100644 --- a/testdata/d2ir/TestCompile/imports/vars/1.exp.json +++ b/testdata/d2ir/TestCompile/imports/vars/1.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -160,7 +161,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -252,7 +254,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/vars/2.exp.json b/testdata/d2ir/TestCompile/imports/vars/2.exp.json index 3107e5c6e..31f57b470 100644 --- a/testdata/d2ir/TestCompile/imports/vars/2.exp.json +++ b/testdata/d2ir/TestCompile/imports/vars/2.exp.json @@ -69,7 +69,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -126,7 +127,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -218,7 +220,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -304,7 +307,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -392,7 +396,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/vars/3.exp.json b/testdata/d2ir/TestCompile/imports/vars/3.exp.json index e2ddd2094..deaa81819 100644 --- a/testdata/d2ir/TestCompile/imports/vars/3.exp.json +++ b/testdata/d2ir/TestCompile/imports/vars/3.exp.json @@ -69,7 +69,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -126,7 +127,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -218,7 +220,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -304,7 +307,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -392,7 +396,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json b/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json index c18033088..13ff5bce7 100644 --- a/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json +++ b/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json @@ -229,7 +229,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -449,7 +450,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -640,7 +642,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -865,7 +868,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1085,7 +1089,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1311,7 +1316,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1531,7 +1537,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/layers/root.exp.json b/testdata/d2ir/TestCompile/layers/root.exp.json index 82ca928ad..9370da3f7 100644 --- a/testdata/d2ir/TestCompile/layers/root.exp.json +++ b/testdata/d2ir/TestCompile/layers/root.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -342,7 +344,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -443,7 +446,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -544,7 +548,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -652,7 +657,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -789,7 +795,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -892,7 +899,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 2d16cfb4b..42a332ada 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -143,7 +143,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -262,7 +263,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -381,7 +383,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -500,7 +503,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -625,7 +629,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -744,7 +749,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -863,7 +869,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -982,7 +989,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1091,7 +1099,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1184,7 +1193,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1277,7 +1287,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1370,7 +1381,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1463,7 +1475,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1520,7 +1533,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1659,7 +1673,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1778,7 +1793,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1897,7 +1913,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2016,7 +2033,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -2133,7 +2151,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2239,7 +2258,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2345,7 +2365,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2451,7 +2472,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2557,7 +2579,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2663,7 +2686,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2788,7 +2812,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2894,7 +2919,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3000,7 +3026,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3106,7 +3133,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3225,7 +3253,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3331,7 +3360,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3450,7 +3480,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3556,7 +3587,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3675,7 +3707,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3781,7 +3814,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -3890,7 +3924,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3983,7 +4018,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4076,7 +4112,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4169,7 +4206,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4262,7 +4300,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4348,7 +4387,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -4539,7 +4579,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4658,7 +4699,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4777,7 +4819,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4942,7 +4985,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -5061,7 +5105,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -5180,7 +5225,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5237,7 +5283,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -5323,7 +5370,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5481,7 +5529,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5596,7 +5645,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5754,7 +5804,8 @@ } } } - } + }, + "from_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json index 0c0043b7f..5fe90243b 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -173,7 +174,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -289,7 +291,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -405,7 +408,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] }, @@ -461,7 +465,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -517,7 +522,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -626,7 +632,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -733,7 +740,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -840,7 +848,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json index a9262751f..1dfd83ec0 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json @@ -169,7 +169,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -333,7 +334,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -497,7 +499,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -554,7 +557,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -705,7 +709,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -851,7 +856,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -997,7 +1003,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] }, @@ -1203,7 +1210,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -1367,7 +1375,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -1531,7 +1540,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -1588,7 +1598,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1764,7 +1775,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -1929,7 +1941,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2014,7 +2027,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2139,7 +2153,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -2254,7 +2269,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2379,7 +2395,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -2519,7 +2536,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json index c605e295d..8627b7a66 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json @@ -88,7 +88,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -171,7 +172,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -254,7 +256,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -311,7 +314,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -403,7 +407,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true }, { "string": { @@ -486,7 +491,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -543,7 +549,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -635,7 +642,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -692,7 +700,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json index 7e9211e56..5c9fd8757 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json @@ -183,7 +183,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -298,7 +299,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -413,7 +415,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -574,7 +577,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -689,7 +693,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -804,7 +809,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -920,7 +926,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1099,7 +1106,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1214,7 +1222,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1329,7 +1338,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1490,7 +1500,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1605,7 +1616,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1720,7 +1732,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1836,7 +1849,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1939,7 +1953,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2047,7 +2062,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2201,7 +2217,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2339,7 +2356,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2493,7 +2511,8 @@ } } } - } + }, + "from_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/case/1.exp.json b/testdata/d2ir/TestCompile/patterns/case/1.exp.json index 292d5d24e..45339a73c 100644 --- a/testdata/d2ir/TestCompile/patterns/case/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/case/1.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/case/2.exp.json b/testdata/d2ir/TestCompile/patterns/case/2.exp.json index 283008b8a..345e90886 100644 --- a/testdata/d2ir/TestCompile/patterns/case/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/case/2.exp.json @@ -63,7 +63,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -130,7 +131,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json index 804f187d0..33284cbbf 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json @@ -139,7 +139,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -260,7 +261,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -339,7 +341,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -478,7 +481,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -599,7 +603,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -678,7 +683,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -813,7 +819,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -934,7 +941,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1013,7 +1021,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1086,7 +1095,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json index 2a48981fe..8a133ee07 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -134,7 +135,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -215,7 +217,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -272,7 +275,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -353,7 +357,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -410,7 +415,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -491,7 +497,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -548,7 +555,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -637,7 +645,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -694,7 +703,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -775,7 +785,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -832,7 +843,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -913,7 +925,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -970,7 +983,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1051,7 +1065,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1108,7 +1123,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1189,7 +1205,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1246,7 +1263,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1354,7 +1372,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1493,7 +1512,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1601,7 +1621,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1740,7 +1761,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1804,7 +1826,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1912,7 +1935,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2020,7 +2044,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json index 9e115779c..537f1bd20 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json @@ -56,7 +56,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -116,7 +117,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -172,7 +174,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -281,7 +284,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -442,7 +446,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -600,7 +605,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] }, @@ -747,7 +753,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -883,7 +890,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1018,7 +1026,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1153,7 +1162,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json index 209501268..fb629ad1a 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json @@ -56,7 +56,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -112,7 +113,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -221,7 +223,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -363,7 +366,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] }, @@ -423,7 +427,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -509,7 +514,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -667,7 +673,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -803,7 +810,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json index ec8c116c4..0e397a6c2 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json @@ -163,7 +163,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -220,7 +221,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -367,7 +369,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -503,7 +506,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json index 8da87a6c9..1602ba3c0 100644 --- a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -221,7 +222,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -331,7 +333,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -483,7 +486,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -635,7 +639,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -787,7 +792,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -902,7 +908,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1012,7 +1019,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1122,7 +1130,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1274,7 +1283,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1426,7 +1436,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1578,7 +1589,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1778,7 +1790,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1947,7 +1960,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2038,7 +2052,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -2165,7 +2180,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2363,7 +2379,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2532,7 +2549,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2623,7 +2641,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -2750,7 +2769,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2948,7 +2968,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3117,7 +3138,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3208,7 +3230,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -3335,7 +3358,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json b/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json index ee685d494..2710e14e0 100644 --- a/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -108,7 +109,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -164,7 +166,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -220,7 +223,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -341,7 +345,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": true } ] } @@ -450,7 +455,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -557,7 +563,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -664,7 +671,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -771,7 +779,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge/1.exp.json b/testdata/d2ir/TestCompile/patterns/edge/1.exp.json index 087072d2d..f8934f6a8 100644 --- a/testdata/d2ir/TestCompile/patterns/edge/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge/1.exp.json @@ -52,7 +52,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -108,7 +109,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -227,7 +229,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -344,7 +347,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge/2.exp.json b/testdata/d2ir/TestCompile/patterns/edge/2.exp.json index 016f524db..83eb78b88 100644 --- a/testdata/d2ir/TestCompile/patterns/edge/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge/2.exp.json @@ -78,7 +78,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -156,7 +157,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -295,7 +297,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -432,7 +435,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -510,7 +514,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -583,7 +588,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge/3.exp.json b/testdata/d2ir/TestCompile/patterns/edge/3.exp.json index a6a0200bc..511b7ae9c 100644 --- a/testdata/d2ir/TestCompile/patterns/edge/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge/3.exp.json @@ -78,7 +78,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -156,7 +157,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -335,7 +337,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -512,7 +515,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -590,7 +594,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -663,7 +668,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/escaped.exp.json b/testdata/d2ir/TestCompile/patterns/escaped.exp.json index 27262dd30..a616540f4 100644 --- a/testdata/d2ir/TestCompile/patterns/escaped.exp.json +++ b/testdata/d2ir/TestCompile/patterns/escaped.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -227,7 +229,8 @@ } } } - } + }, + "from_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 76ba3598f..08612280b 100644 --- a/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -221,7 +222,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -331,7 +333,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -446,7 +449,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -556,7 +560,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -666,7 +671,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -776,7 +782,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -934,7 +941,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1092,7 +1100,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1250,7 +1259,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1408,7 +1418,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1523,7 +1534,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1729,7 +1741,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1904,7 +1917,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1995,7 +2009,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -2128,7 +2143,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2332,7 +2348,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2507,7 +2524,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2598,7 +2616,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -2731,7 +2750,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2935,7 +2955,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3110,7 +3131,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3201,7 +3223,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -3334,7 +3357,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -3538,7 +3562,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3713,7 +3738,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3804,7 +3830,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -3937,7 +3964,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json b/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json index 9b5259d95..8547094f3 100644 --- a/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json @@ -125,7 +125,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -236,7 +237,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -381,7 +383,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -492,7 +495,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -621,7 +625,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -732,7 +737,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -877,7 +883,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -988,7 +995,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/1.exp.json b/testdata/d2ir/TestCompile/patterns/override/1.exp.json index 41699da8d..19da6353a 100644 --- a/testdata/d2ir/TestCompile/patterns/override/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/1.exp.json @@ -135,7 +135,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -250,7 +251,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -365,7 +367,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -486,7 +489,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -601,7 +605,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -716,7 +721,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -773,7 +779,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/2.exp.json b/testdata/d2ir/TestCompile/patterns/override/2.exp.json index a360c2c0a..ff58cb9b5 100644 --- a/testdata/d2ir/TestCompile/patterns/override/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/2.exp.json @@ -187,7 +187,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -302,7 +303,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -417,7 +419,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -536,7 +539,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -655,7 +659,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -820,7 +825,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -935,7 +941,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1050,7 +1057,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1169,7 +1177,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1288,7 +1297,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1345,7 +1355,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1497,7 +1508,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1655,7 +1667,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1836,7 +1849,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1994,7 +2008,8 @@ } } } - } + }, + "from_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/3.exp.json b/testdata/d2ir/TestCompile/patterns/override/3.exp.json index fc7ed84a5..b7bf800cc 100644 --- a/testdata/d2ir/TestCompile/patterns/override/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/3.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -357,7 +359,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -472,7 +475,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -719,7 +723,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -913,7 +918,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1004,7 +1010,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -1193,7 +1200,8 @@ } } } - } + }, + "from_glob": false }, { "context": { @@ -1362,7 +1370,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1476,7 +1485,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1668,7 +1678,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1820,7 +1831,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1972,7 +1984,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2116,7 +2129,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2308,7 +2322,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2460,7 +2475,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2612,7 +2628,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2876,7 +2893,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3068,7 +3086,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3220,7 +3239,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3372,7 +3392,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3665,7 +3686,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3857,7 +3879,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4009,7 +4032,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -4161,7 +4185,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4363,7 +4388,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4454,7 +4480,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -4598,7 +4625,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/4.exp.json b/testdata/d2ir/TestCompile/patterns/override/4.exp.json new file mode 100644 index 000000000..90e7d0802 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/4.exp.json @@ -0,0 +1,855 @@ +{ + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-5:1:52", + "edges": [ + { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/4.d2,3:8:36-5:1:52", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:12:50", + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-5:1:52", + "edges": [ + { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/4.d2,3:8:36-5:1:52", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:12:50", + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "label", + "primary": { + "value": { + "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:12:50", + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/4.d2,1:0:1-1:25:26", + "edges": [ + { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/4.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-5:1:52", + "edges": [ + { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:6:34", + "src": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:0:28-3:1:29", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,3:5:33-3:6:34", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/override/4.d2,3:8:36-5:1:52", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:12:50", + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/4.d2,1:0:1-1:25:26", + "edges": [ + { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/4.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/override/5.exp.json b/testdata/d2ir/TestCompile/patterns/override/5.exp.json new file mode 100644 index 000000000..57c08fa6a --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/5.exp.json @@ -0,0 +1,991 @@ +{ + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "src": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "src": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "src": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "src": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "label", + "primary": { + "value": { + "range": "TestCompile/patterns/override/5.d2,6:23:105-6:26:108", + "value": [ + { + "string": "hey", + "raw_string": "hey" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,1:0:1-1:25:26", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/5.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:11:93", + "src": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,6:0:82-6:26:108", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:11:93", + "src": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/5.d2,6:12:94-6:15:97", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:23:105-6:26:108", + "value": [ + { + "string": "hey", + "raw_string": "hey" + } + ] + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "src": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:6:80", + "src": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:0:74-4:1:75", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,4:5:79-4:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,1:0:1-1:25:26", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/5.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:11:93", + "src": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/override/5.d2,6:0:82-6:26:108", + "edges": [ + { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:11:93", + "src": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:1:83-6:4:86", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:8:90-6:11:93", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/5.d2,6:12:94-6:15:97", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:16:98-6:21:103", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/5.d2,6:23:105-6:26:108", + "value": [ + { + "string": "hey", + "raw_string": "hey" + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json b/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json index a71fb970b..6e28bd0a3 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json b/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json index 175299dad..9186b1f98 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json b/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json index 1504168b9..ab4acb574 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix.exp.json b/testdata/d2ir/TestCompile/patterns/prefix.exp.json index 62dec6cc3..d9d0cb092 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/reserved.exp.json b/testdata/d2ir/TestCompile/patterns/reserved.exp.json index 01fb1938f..bbce28ec2 100644 --- a/testdata/d2ir/TestCompile/patterns/reserved.exp.json +++ b/testdata/d2ir/TestCompile/patterns/reserved.exp.json @@ -81,7 +81,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -177,7 +178,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -302,7 +304,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -358,7 +361,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -414,7 +418,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -470,7 +475,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -606,7 +612,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -740,7 +747,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -874,7 +882,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1008,7 +1017,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1142,7 +1152,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1276,7 +1287,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/scenarios.exp.json b/testdata/d2ir/TestCompile/patterns/scenarios.exp.json index 6f97c5e81..addb06ac4 100644 --- a/testdata/d2ir/TestCompile/patterns/scenarios.exp.json +++ b/testdata/d2ir/TestCompile/patterns/scenarios.exp.json @@ -71,7 +71,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -138,7 +139,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -205,7 +207,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -272,7 +275,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -427,7 +431,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -611,7 +616,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -678,7 +684,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -745,7 +752,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -812,7 +820,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -879,7 +888,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1006,7 +1016,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1131,7 +1142,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1256,7 +1268,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1381,7 +1394,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1506,7 +1520,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1631,7 +1646,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1756,7 +1772,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1881,7 +1898,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2006,7 +2024,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2131,7 +2150,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2256,7 +2276,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2381,7 +2402,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2502,7 +2524,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2623,7 +2646,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2744,7 +2768,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2865,7 +2890,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2986,7 +3012,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3107,7 +3134,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3228,7 +3256,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3349,7 +3378,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3470,7 +3500,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3591,7 +3622,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3712,7 +3744,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -3833,7 +3866,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json index 08e7283b5..a9e6f9b64 100644 --- a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json @@ -81,7 +81,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -160,7 +161,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -241,7 +243,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -320,7 +323,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -401,7 +405,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -480,7 +485,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -561,7 +567,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -640,7 +647,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -764,7 +772,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -837,7 +846,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -955,7 +965,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1028,7 +1039,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1146,7 +1158,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1219,7 +1232,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1337,7 +1351,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1410,7 +1425,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -1528,7 +1544,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1646,7 +1663,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1764,7 +1782,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -1857,7 +1876,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1936,7 +1956,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2017,7 +2038,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2096,7 +2118,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2177,7 +2200,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2256,7 +2280,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2337,7 +2362,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2416,7 +2442,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2497,7 +2524,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2576,7 +2604,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2700,7 +2729,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2773,7 +2803,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -2891,7 +2922,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2964,7 +2996,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -3082,7 +3115,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3155,7 +3189,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -3273,7 +3308,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3346,7 +3382,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -3464,7 +3501,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -3537,7 +3575,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -3695,7 +3734,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3814,7 +3854,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3971,7 +4012,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4090,7 +4132,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -4247,7 +4290,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -4337,7 +4381,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -4416,7 +4461,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -4535,7 +4581,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -4654,7 +4701,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/suffix.exp.json b/testdata/d2ir/TestCompile/patterns/suffix.exp.json index 40da3b5a1..50d92a2f8 100644 --- a/testdata/d2ir/TestCompile/patterns/suffix.exp.json +++ b/testdata/d2ir/TestCompile/patterns/suffix.exp.json @@ -73,7 +73,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -150,7 +151,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index dc21aecd1..9d27ec3e8 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -77,7 +77,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -134,7 +135,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -215,7 +217,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -272,7 +275,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -353,7 +357,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -410,7 +415,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -491,7 +497,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -548,7 +555,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -637,7 +645,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -698,7 +707,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -755,7 +765,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -836,7 +847,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -897,7 +909,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -954,7 +967,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1035,7 +1049,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1096,7 +1111,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1153,7 +1169,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1234,7 +1251,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1295,7 +1313,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1352,7 +1371,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1433,7 +1453,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1490,7 +1511,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1598,7 +1620,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1741,7 +1764,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1849,7 +1873,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -1992,7 +2017,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -2081,7 +2107,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2138,7 +2165,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2246,7 +2274,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2389,7 +2418,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2497,7 +2527,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -2640,7 +2671,8 @@ } } } - } + }, + "from_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index 6cd63562f..d4020736a 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -341,7 +343,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -456,7 +459,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -579,7 +583,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -694,7 +699,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -809,7 +815,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -924,7 +931,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1039,7 +1047,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1154,7 +1163,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1274,7 +1284,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1357,7 +1368,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1446,7 +1458,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -1529,7 +1542,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -1620,7 +1634,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -1788,7 +1803,8 @@ } } } - } + }, + "from_glob": false }, { "context": { @@ -1981,7 +1997,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2099,7 +2116,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2182,7 +2200,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2271,7 +2290,8 @@ } } } - } + }, + "from_glob": true }, { "string": { @@ -2354,7 +2374,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -2445,7 +2466,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -2613,7 +2635,8 @@ } } } - } + }, + "from_glob": false }, { "context": { @@ -2806,7 +2829,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -2924,7 +2948,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3013,7 +3038,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3104,7 +3130,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -3297,7 +3324,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3427,7 +3455,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3603,7 +3632,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -3734,7 +3764,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -3910,7 +3941,8 @@ } } } - } + }, + "from_glob": true } ] }, @@ -4033,7 +4065,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -4148,7 +4181,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -4268,7 +4302,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4357,7 +4392,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -4448,7 +4484,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -4641,7 +4678,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -4771,7 +4809,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -4947,7 +4986,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5078,7 +5118,8 @@ } } } - } + }, + "from_glob": false }, { "string": { @@ -5254,7 +5295,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5374,7 +5416,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5463,7 +5506,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5554,7 +5598,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -5722,7 +5767,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -5840,7 +5886,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -5929,7 +5976,8 @@ } } } - } + }, + "from_glob": true } ] } @@ -6020,7 +6068,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -6188,7 +6237,8 @@ } } } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/scenarios/edge.exp.json b/testdata/d2ir/TestCompile/scenarios/edge.exp.json index c0ef78879..d9cefa0df 100644 --- a/testdata/d2ir/TestCompile/scenarios/edge.exp.json +++ b/testdata/d2ir/TestCompile/scenarios/edge.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -349,7 +351,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -497,7 +500,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -612,7 +616,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "string": { @@ -760,7 +765,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -952,7 +958,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1117,7 +1124,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1208,7 +1216,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false }, { "context": { @@ -1331,7 +1340,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1477,7 +1487,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1653,7 +1664,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1756,7 +1768,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/scenarios/root.exp.json b/testdata/d2ir/TestCompile/scenarios/root.exp.json index 0c7ae1e33..058c75b24 100644 --- a/testdata/d2ir/TestCompile/scenarios/root.exp.json +++ b/testdata/d2ir/TestCompile/scenarios/root.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -349,7 +351,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -464,7 +467,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -572,7 +576,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -673,7 +678,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -774,7 +780,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -877,7 +884,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -984,7 +992,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1103,7 +1112,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1218,7 +1228,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1274,7 +1285,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1377,7 +1389,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1462,7 +1475,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1651,7 +1665,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1754,7 +1769,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/steps/recursive.exp.json b/testdata/d2ir/TestCompile/steps/recursive.exp.json index bcaeb4be0..41f2e2656 100644 --- a/testdata/d2ir/TestCompile/steps/recursive.exp.json +++ b/testdata/d2ir/TestCompile/steps/recursive.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -349,7 +351,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -464,7 +467,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -572,7 +576,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -673,7 +678,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -774,7 +780,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -877,7 +884,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -984,7 +992,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1103,7 +1112,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1218,7 +1228,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1326,7 +1337,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1427,7 +1439,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1528,7 +1541,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1584,7 +1598,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1707,7 +1722,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1822,7 +1838,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1930,7 +1947,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2031,7 +2049,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2132,7 +2151,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2188,7 +2208,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -2244,7 +2265,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2347,7 +2369,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2432,7 +2455,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2547,7 +2571,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2650,7 +2675,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -2816,7 +2842,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3086,7 +3113,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -3189,7 +3217,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/steps/root.exp.json b/testdata/d2ir/TestCompile/steps/root.exp.json index a8b486f76..f87f3cf67 100644 --- a/testdata/d2ir/TestCompile/steps/root.exp.json +++ b/testdata/d2ir/TestCompile/steps/root.exp.json @@ -111,7 +111,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -226,7 +227,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -349,7 +351,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -464,7 +467,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -572,7 +576,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -673,7 +678,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -774,7 +780,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -877,7 +884,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -984,7 +992,8 @@ } } } - } + }, + "from_glob": false } ] }, @@ -1103,7 +1112,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1218,7 +1228,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1326,7 +1337,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1427,7 +1439,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1528,7 +1541,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] }, @@ -1584,7 +1598,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1687,7 +1702,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } @@ -1772,7 +1788,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -1961,7 +1978,8 @@ } } } - } + }, + "from_glob": false } ] } @@ -2064,7 +2082,8 @@ "primary": {}, "value": {} } - } + }, + "from_glob": false } ] } From 1800ae344894f5cd3404e639d12dd0230d0025f0 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 17 Aug 2023 14:42:52 -0700 Subject: [PATCH 10/21] d2ir: Add exception for &label filter --- d2ast/d2ast.go | 4 + d2ir/compile.go | 26 +- d2ir/filter_test.go | 25 + .../TestCompile/filters/id-filter.exp.json | 1246 +++++++++++++++++ 4 files changed, 1300 insertions(+), 1 deletion(-) create mode 100644 testdata/d2ir/TestCompile/filters/id-filter.exp.json diff --git a/d2ast/d2ast.go b/d2ast/d2ast.go index 4ec14d289..63daf011e 100644 --- a/d2ast/d2ast.go +++ b/d2ast/d2ast.go @@ -804,6 +804,10 @@ func (kp *KeyPath) Copy() *KeyPath { return &kp2 } +func (kp *KeyPath) Last() *StringBox { + return kp.Path[len(kp.Path)-1] +} + func IsDoubleGlob(pattern []string) bool { return len(pattern) == 3 && pattern[0] == "*" && pattern[1] == "" && pattern[2] == "*" } diff --git a/d2ir/compile.go b/d2ir/compile.go index 0d5b98557..60ffa68ef 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -414,6 +414,7 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { } } } + for _, n := range ast.Nodes { switch { case n.MapKey != nil: @@ -554,7 +555,30 @@ func (c *compiler) ampersandFilter(refctx *RefContext) bool { return false } if len(fa) == 0 { - return false + if refctx.Key.Key.Last().ScalarString() != "label" { + return false + } + kp := refctx.Key.Key.Copy() + kp.Path = kp.Path[:len(kp.Path)-1] + if len(kp.Path) == 0 { + fa = append(fa, ParentField(refctx.ScopeMap)) + } else { + fa, err = refctx.ScopeMap.EnsureField(kp, refctx, false, c) + if err != nil { + c.err.Errors = append(c.err.Errors, err.(d2ast.Error)) + return false + } + } + for _, f := range fa { + label := f.Name + if f.Primary_ != nil { + label = f.Primary_.Value.ScalarString() + } + if label != refctx.Key.Value.ScalarBox().Unbox().ScalarString() { + return false + } + } + return true } for _, f := range fa { ok := c._ampersandFilter(f, refctx) diff --git a/d2ir/filter_test.go b/d2ir/filter_test.go index 710ba0803..e7c0b014e 100644 --- a/d2ir/filter_test.go +++ b/d2ir/filter_test.go @@ -96,6 +96,31 @@ x -> y assertQuery(t, m, 0, 0, nil, "(x -> y)[1]") }, }, + { + name: "id-filter", + run: func(t testing.TB) { + m, err := compile(t, ` +x +y +p: p + +*.style.opacity: 0.1 +*: { + &label: x + style.opacity: 1 +} +*: { + &label: p + style.opacity: 0.5 +} +`) + assert.Success(t, err) + assertQuery(t, m, 9, 0, nil, "") + assertQuery(t, m, 0, 0, 1, "x.style.opacity") + assertQuery(t, m, 0, 0, 0.1, "y.style.opacity") + assertQuery(t, m, 0, 0, 0.5, "p.style.opacity") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/filters/id-filter.exp.json b/testdata/d2ir/TestCompile/filters/id-filter.exp.json new file mode 100644 index 000000000..9a19ec594 --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/id-filter.exp.json @@ -0,0 +1,1246 @@ +{ + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/id-filter.d2,8:17:66-8:18:67", + "raw": "1", + "value": "1" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:18:67", + "key": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,8:17:66-8:18:67", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:18:67", + "key": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,8:17:66-8:18:67", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", + "key": { + "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "y", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", + "key": { + "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "p", + "primary": { + "value": { + "range": "TestCompile/filters/id-filter.d2,3:3:8-3:4:9", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/id-filter.d2,12:17:104-12:20:107", + "raw": "0.5", + "value": "1/2" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:20:107", + "key": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,12:17:104-12:20:107", + "raw": "0.5", + "value": "1/2" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", + "key": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:20:107", + "key": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/id-filter.d2,12:17:104-12:20:107", + "raw": "0.5", + "value": "1/2" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/id-filter.d2,3:0:5-3:4:9", + "key": { + "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/id-filter.d2,3:3:8-3:4:9", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ], + "edges": null +} From 2efd87f05960ed622ce3223d768b34627f74337b Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 17 Aug 2023 14:53:51 -0700 Subject: [PATCH 11/21] d2ir: Add label filter exception for edges too --- d2ir/compile.go | 16 +- d2ir/filter_test.go | 12 +- .../TestCompile/filters/label-filter.exp.json | 4654 +++++++++++++++++ 3 files changed, 4679 insertions(+), 3 deletions(-) create mode 100644 testdata/d2ir/TestCompile/filters/label-filter.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 60ffa68ef..54ff45e75 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -561,7 +561,21 @@ func (c *compiler) ampersandFilter(refctx *RefContext) bool { kp := refctx.Key.Key.Copy() kp.Path = kp.Path[:len(kp.Path)-1] if len(kp.Path) == 0 { - fa = append(fa, ParentField(refctx.ScopeMap)) + n := refctx.ScopeMap.Parent() + switch n := n.(type) { + case *Field: + fa = append(fa, n) + case *Edge: + if n.Primary_ == nil { + if refctx.Key.Value.ScalarBox().Unbox().ScalarString() == "" { + return true + } + return false + } + if n.Primary_.Value.ScalarString() != refctx.Key.Value.ScalarBox().Unbox().ScalarString() { + return false + } + } } else { fa, err = refctx.ScopeMap.EnsureField(kp, refctx, false, c) if err != nil { diff --git a/d2ir/filter_test.go b/d2ir/filter_test.go index e7c0b014e..fa1419775 100644 --- a/d2ir/filter_test.go +++ b/d2ir/filter_test.go @@ -97,12 +97,13 @@ x -> y }, }, { - name: "id-filter", + name: "label-filter", run: func(t testing.TB) { m, err := compile(t, ` x y p: p +a -> z: delta *.style.opacity: 0.1 *: { @@ -113,12 +114,19 @@ p: p &label: p style.opacity: 0.5 } +(* -> *)[*]: { + &label: delta + target-arrowhead.shape: diamond +} `) assert.Success(t, err) - assertQuery(t, m, 9, 0, nil, "") + assertQuery(t, m, 17, 1, nil, "") assertQuery(t, m, 0, 0, 1, "x.style.opacity") assertQuery(t, m, 0, 0, 0.1, "y.style.opacity") assertQuery(t, m, 0, 0, 0.5, "p.style.opacity") + assertQuery(t, m, 0, 0, 0.1, "a.style.opacity") + assertQuery(t, m, 0, 0, 0.1, "z.style.opacity") + assertQuery(t, m, 0, 0, "diamond", "(a -> z).target-arrowhead.shape") }, }, } diff --git a/testdata/d2ir/TestCompile/filters/label-filter.exp.json b/testdata/d2ir/TestCompile/filters/label-filter.exp.json new file mode 100644 index 000000000..5c21b7858 --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/label-filter.exp.json @@ -0,0 +1,4654 @@ +{ + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,9:17:80-9:18:81", + "raw": "1", + "value": "1" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:18:81", + "key": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,9:17:80-9:18:81", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:18:81", + "key": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,9:17:80-9:18:81", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", + "key": { + "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "y", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", + "key": { + "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "p", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,3:3:8-3:4:9", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,13:17:118-13:20:121", + "raw": "0.5", + "value": "1/2" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:20:121", + "key": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,13:17:118-13:20:121", + "raw": "0.5", + "value": "1/2" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:20:121", + "key": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,13:17:118-13:20:121", + "raw": "0.5", + "value": "1/2" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,3:0:5-3:4:9", + "key": { + "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,3:3:8-3:4:9", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + } + }, + "from_glob": false + } + ] + }, + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:13:23", + "edges": [ + { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + "from_glob": false + } + ] + }, + { + "name": "z", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:13:23", + "edges": [ + { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "z" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:32:186", + "key": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:32:186", + "key": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:13:23", + "edges": [ + { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter.d2,15:1:125-15:7:131", + "src": { + "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter.d2,15:0:124-18:1:188", + "edges": [ + { + "range": "TestCompile/filters/label-filter.d2,15:1:125-15:7:131", + "src": { + "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/filters/label-filter.d2,15:8:132-15:11:135", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter.d2,15:13:137-18:1:188", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter.d2,16:1:140-16:14:153", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter.d2,16:2:141-16:7:146", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,16:2:141-16:7:146", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,16:9:148-16:14:153", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:32:186", + "key": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ] +} From 69df741a6b9a63c59b6f398f046b80882f264829 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 17 Aug 2023 14:57:14 -0700 Subject: [PATCH 12/21] d2ir: Remove stale testdata --- .../classes/merge-classes.exp.json | 1202 -------------- .../classes/nonroot-class.exp.json | 617 -------- .../d2ir/TestCompile/filters/base#01.exp.json | 560 ------- .../filters/errors/bad-syntax.exp.json | 749 --------- .../filters/errors/composite.exp.json | 449 ------ .../filters/errors/no-glob.exp.json | 750 --------- .../d2ir/TestCompile/filters/escaped.exp.json | 560 ------- .../TestCompile/filters/id-filter.exp.json | 1246 --------------- .../d2ir/TestCompile/globs/escaped.exp.json | 159 -- .../d2ir/TestCompile/globs/prefix.exp.json | 159 -- .../d2ir/TestCompile/imports/#00.exp.json | 82 - .../d2ir/TestCompile/imports/nested.exp.json | 249 --- .../layers/errs/3/bad_edge.exp.json | 1375 ----------------- .../d2ir/TestCompile/patterns/case.exp.json | 159 -- .../TestCompile/patterns/double-glob.exp.json | 903 ----------- .../errors/glob-edge-glob-index.exp.json | 4 - 16 files changed, 9223 deletions(-) delete mode 100644 testdata/d2ir/TestCompile/classes/merge-classes.exp.json delete mode 100644 testdata/d2ir/TestCompile/classes/nonroot-class.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/base#01.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/errors/bad-syntax.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/errors/composite.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/errors/no-glob.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/escaped.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/id-filter.exp.json delete mode 100644 testdata/d2ir/TestCompile/globs/escaped.exp.json delete mode 100644 testdata/d2ir/TestCompile/globs/prefix.exp.json delete mode 100644 testdata/d2ir/TestCompile/imports/#00.exp.json delete mode 100644 testdata/d2ir/TestCompile/imports/nested.exp.json delete mode 100644 testdata/d2ir/TestCompile/layers/errs/3/bad_edge.exp.json delete mode 100644 testdata/d2ir/TestCompile/patterns/case.exp.json delete mode 100644 testdata/d2ir/TestCompile/patterns/double-glob.exp.json delete mode 100644 testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json diff --git a/testdata/d2ir/TestCompile/classes/merge-classes.exp.json b/testdata/d2ir/TestCompile/classes/merge-classes.exp.json deleted file mode 100644 index 4c52c1b60..000000000 --- a/testdata/d2ir/TestCompile/classes/merge-classes.exp.json +++ /dev/null @@ -1,1202 +0,0 @@ -{ - "fields": [ - { - "name": "classes", - "composite": { - "fields": [ - { - "name": "mango", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/classes/merge-classes.d2,2:16:38-2:22:44", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:14:36", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:22:44", - "key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:14:36", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:16:38-2:22:44", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:14:36", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:22:44", - "key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:14:36", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:16:38-2:22:44", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - } - ] - }, - { - "name": "width", - "primary": { - "value": { - "range": "TestCompile/classes/merge-classes.d2,3:9:54-3:11:56", - "raw": "10", - "value": "10" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:11:56", - "key": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,3:9:54-3:11:56", - "raw": "10", - "value": "10" - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-4:3:60", - "key": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,1:9:20-4:2:59", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:22:44", - "key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:14:36", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:16:38-2:22:44", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:11:56", - "key": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,3:9:54-3:11:56", - "raw": "10", - "value": "10" - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,0:0:0-0:7:7", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,0:0:0-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,0:0:0-0:7:7", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,0:0:0-5:1:62", - "key": { - "range": "TestCompile/classes/merge-classes.d2,0:0:0-0:7:7", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,0:0:0-0:7:7", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,0:9:9-5:0:61", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-4:3:60", - "key": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,1:2:13-1:7:18", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,1:9:20-4:2:59", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:22:44", - "key": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:14:36", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:4:26-2:9:31", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:10:32-2:14:36", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,2:16:38-2:22:44", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:11:56", - "key": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,3:2:47-3:7:52", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,3:9:54-3:11:56", - "raw": "10", - "value": "10" - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - }, - { - "name": "layers", - "composite": { - "fields": [ - { - "name": "hawaii", - "composite": { - "fields": [ - { - "name": "classes", - "composite": { - "fields": [ - { - "name": "mango", - "composite": { - "fields": [ - { - "name": "width", - "primary": { - "value": { - "range": "TestCompile/classes/merge-classes.d2,10:15:130-10:19:134", - "raw": "9000", - "value": "9000" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:19:134", - "key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,10:15:130-10:19:134", - "raw": "9000", - "value": "9000" - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-11:7:142", - "key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,9:13:113-11:6:141", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:19:134", - "key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,10:15:130-10:19:134", - "raw": "9000", - "value": "9000" - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-12:5:148", - "key": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,8:13:98-12:4:147", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-11:7:142", - "key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,9:13:113-11:6:141", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:19:134", - "key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,10:15:130-10:19:134", - "raw": "9000", - "value": "9000" - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "value": [ - { - "string": "hawaii", - "raw_string": "hawaii" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "value": [ - { - "string": "hawaii", - "raw_string": "hawaii" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-13:3:152", - "key": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "value": [ - { - "string": "hawaii", - "raw_string": "hawaii" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,7:10:83-13:2:151", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-12:5:148", - "key": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,8:13:98-12:4:147", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-11:7:142", - "key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,9:13:113-11:6:141", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:19:134", - "key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,10:15:130-10:19:134", - "raw": "9000", - "value": "9000" - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/merge-classes.d2,6:0:63-6:6:69", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/merge-classes.d2,6:0:63-6:6:69", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,6:0:63-6:6:69", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/merge-classes.d2,6:0:63-14:1:154", - "key": { - "range": "TestCompile/classes/merge-classes.d2,6:0:63-6:6:69", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,6:0:63-6:6:69", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,6:8:71-14:0:153", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-13:3:152", - "key": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,7:2:75-7:8:81", - "value": [ - { - "string": "hawaii", - "raw_string": "hawaii" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,7:10:83-13:2:151", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-12:5:148", - "key": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,8:4:89-8:11:96", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,8:13:98-12:4:147", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-11:7:142", - "key": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,9:6:106-9:11:111", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/merge-classes.d2,9:13:113-11:6:141", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:19:134", - "key": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/merge-classes.d2,10:8:123-10:13:128", - "value": [ - { - "string": "width", - "raw_string": "width" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/classes/merge-classes.d2,10:15:130-10:19:134", - "raw": "9000", - "value": "9000" - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/classes/nonroot-class.exp.json b/testdata/d2ir/TestCompile/classes/nonroot-class.exp.json deleted file mode 100644 index 7569a2187..000000000 --- a/testdata/d2ir/TestCompile/classes/nonroot-class.exp.json +++ /dev/null @@ -1,617 +0,0 @@ -{ - "fields": [ - { - "name": "x", - "composite": { - "fields": [ - { - "name": "classes", - "composite": { - "fields": [ - { - "name": "mango", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/classes/nonroot-class.d2,3:18:49-3:24:55", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:24:55", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:18:49-3:24:55", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:24:55", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:18:49-3:24:55", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-4:5:61", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/nonroot-class.d2,2:11:29-4:4:60", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:24:55", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:18:49-3:24:55", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-5:3:65", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/nonroot-class.d2,1:11:16-5:2:64", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-4:5:61", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/nonroot-class.d2,2:11:29-4:4:60", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:24:55", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:18:49-3:24:55", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/classes/nonroot-class.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - }, - "key_path": { - "range": "TestCompile/classes/nonroot-class.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/classes/nonroot-class.d2,0:0:0-6:1:67", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/nonroot-class.d2,0:3:3-6:0:66", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-5:3:65", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,1:2:7-1:9:14", - "value": [ - { - "string": "classes", - "raw_string": "classes" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/nonroot-class.d2,1:11:16-5:2:64", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-4:5:61", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,2:4:22-2:9:27", - "value": [ - { - "string": "mango", - "raw_string": "mango" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/classes/nonroot-class.d2,2:11:29-4:4:60", - "nodes": [ - { - "map_key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:24:55", - "key": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:16:47", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:6:37-3:11:42", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:12:43-3:16:47", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/classes/nonroot-class.d2,3:18:49-3:24:55", - "value": [ - { - "string": "orange", - "raw_string": "orange" - } - ] - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/filters/base#01.exp.json b/testdata/d2ir/TestCompile/filters/base#01.exp.json deleted file mode 100644 index 0521ab4f3..000000000 --- a/testdata/d2ir/TestCompile/filters/base#01.exp.json +++ /dev/null @@ -1,560 +0,0 @@ -{ - "fields": [ - { - "name": "jacob", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/filters/base#01.d2,1:8:17-1:14:23", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:14:23", - "key": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,1:8:17-1:14:23", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,7:1:62-7:18:79", - "ampersand": true, - "key": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,7:9:70-7:18:79", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/base#01.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,0:0:0-0:5:5", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,0:0:0-2:1:25", - "key": { - "range": "TestCompile/filters/base#01.d2,0:0:0-0:5:5", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/base#01.d2,0:7:7-2:1:25", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:14:23", - "key": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,1:8:17-1:14:23", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - }, - { - "name": "jeremy", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/filters/base#01.d2,7:9:70-7:18:79", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:17:53", - "key": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,4:8:44-4:17:53", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,7:1:62-7:18:79", - "ampersand": true, - "key": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,7:9:70-7:18:79", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - } - ] - }, - { - "name": "label", - "primary": { - "value": { - "range": "TestCompile/filters/base#01.d2,8:8:88-8:23:103", - "value": [ - { - "string": "I'm a rectangle", - "raw_string": "I'm a rectangle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/base#01.d2,8:1:81-8:6:86", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,8:1:81-8:6:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,8:1:81-8:6:86", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,8:1:81-8:23:103", - "key": { - "range": "TestCompile/filters/base#01.d2,8:1:81-8:6:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,8:1:81-8:6:86", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,8:8:88-8:23:103", - "value": [ - { - "string": "I'm a rectangle", - "raw_string": "I'm a rectangle" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/base#01.d2,3:0:26-3:6:32", - "value": [ - { - "string": "jeremy", - "raw_string": "jeremy" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/base#01.d2,3:0:26-3:6:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,3:0:26-3:6:32", - "value": [ - { - "string": "jeremy", - "raw_string": "jeremy" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/base#01.d2,3:0:26-5:1:55", - "key": { - "range": "TestCompile/filters/base#01.d2,3:0:26-3:6:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,3:0:26-3:6:32", - "value": [ - { - "string": "jeremy", - "raw_string": "jeremy" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/base#01.d2,3:8:34-5:1:55", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:17:53", - "key": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/base#01.d2,4:8:44-4:17:53", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/filters/errors/bad-syntax.exp.json b/testdata/d2ir/TestCompile/filters/errors/bad-syntax.exp.json deleted file mode 100644 index a91868c61..000000000 --- a/testdata/d2ir/TestCompile/filters/errors/bad-syntax.exp.json +++ /dev/null @@ -1,749 +0,0 @@ -{ - "fields": [ - { - "name": "jacob", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:10:25", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - }, - { - "name": "multiple", - "primary": { - "value": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:11:37-2:15:41", - "value": true - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:15:41", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:11:37-2:15:41", - "value": true - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-3:1:43", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:13:13-3:1:43", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:10:25", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:15:41", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:11:37-2:15:41", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - }, - { - "name": "&style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:8:65-6:11:68", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:11:68", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:8:65-6:11:68", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - }, - { - "name": "multiple", - "primary": { - "value": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:12:81-7:16:85", - "value": true - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:16:85", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:12:81-7:16:85", - "value": true - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:2:47-5:8:53", - "value": [ - { - "string": "&style", - "raw_string": "&style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:0:45-5:8:53", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:0:45-5:1:46", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:2:47-5:8:53", - "value": [ - { - "string": "&style", - "raw_string": "&style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:0:45-8:1:87", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:0:45-5:8:53", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:0:45-5:1:46", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:2:47-5:8:53", - "value": [ - { - "string": "&style", - "raw_string": "&style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/bad-syntax.d2,5:10:55-8:1:87", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:11:68", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:2:59-6:6:63", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,6:8:65-6:11:68", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:16:85", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:2:71-7:10:79", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/bad-syntax.d2,7:12:81-7:16:85", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-3:1:43", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/bad-syntax.d2,0:13:13-3:1:43", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:10:25", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:15:41", - "key": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/bad-syntax.d2,2:11:37-2:15:41", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/filters/errors/composite.exp.json b/testdata/d2ir/TestCompile/filters/errors/composite.exp.json deleted file mode 100644 index 8aa7bec36..000000000 --- a/testdata/d2ir/TestCompile/filters/errors/composite.exp.json +++ /dev/null @@ -1,449 +0,0 @@ -{ - "fields": [ - { - "name": "jacob", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/filters/errors/composite.d2,8:7:73-8:10:76", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:10:76", - "key": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:7:73-8:10:76", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - }, - { - "name": "multiple", - "primary": { - "value": { - "range": "TestCompile/filters/errors/composite.d2,9:11:88-9:15:92", - "value": true - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:15:92", - "key": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/composite.d2,9:11:88-9:15:92", - "value": true - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/composite.d2,7:6:57-7:11:62", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:11:62", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:5:56", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:6:57-7:11:62", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-10:1:94", - "key": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:11:62", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:5:56", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:6:57-7:11:62", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/composite.d2,7:13:64-10:1:94", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:10:76", - "key": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:7:73-8:10:76", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:15:92", - "key": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/composite.d2,9:11:88-9:15:92", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:5:56", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:11:62", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:5:56", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:6:57-7:11:62", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-10:1:94", - "key": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:11:62", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:0:51-7:5:56", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,7:6:57-7:11:62", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/composite.d2,7:13:64-10:1:94", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:10:76", - "key": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:1:67-8:5:71", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,8:7:73-8:10:76", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:15:92", - "key": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/composite.d2,9:1:78-9:9:86", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/composite.d2,9:11:88-9:15:92", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/filters/errors/no-glob.exp.json b/testdata/d2ir/TestCompile/filters/errors/no-glob.exp.json deleted file mode 100644 index 549e146b6..000000000 --- a/testdata/d2ir/TestCompile/filters/errors/no-glob.exp.json +++ /dev/null @@ -1,750 +0,0 @@ -{ - "fields": [ - { - "name": "jacob", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/filters/errors/no-glob.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:10:25", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - }, - { - "name": "multiple", - "primary": { - "value": { - "range": "TestCompile/filters/errors/no-glob.d2,2:11:37-2:15:41", - "value": true - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:15:41", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/no-glob.d2,2:11:37-2:15:41", - "value": true - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-3:1:43", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/no-glob.d2,0:13:13-3:1:43", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:10:25", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:15:41", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/no-glob.d2,2:11:37-2:15:41", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-3:1:43", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:11:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,0:6:6-0:11:11", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/no-glob.d2,0:13:13-3:1:43", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:10:25", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:1:16-1:5:20", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,1:7:22-1:10:25", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:15:41", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,2:1:27-2:9:35", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/no-glob.d2,2:11:37-2:15:41", - "value": true - } - } - } - } - ] - } - } - } - } - } - ] - }, - { - "name": "jasmine", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": null, - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:8:53-5:13:58", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:13:58", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:7:52", - "value": [ - { - "string": "jasmine", - "raw_string": "jasmine" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:8:53-5:13:58", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-8:1:94", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:13:58", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:7:52", - "value": [ - { - "string": "jasmine", - "raw_string": "jasmine" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:8:53-5:13:58", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/no-glob.d2,5:15:60-8:1:94", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,6:2:64-6:12:74", - "ampersand": true, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,6:3:65-6:7:69", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,6:3:65-6:7:69", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,6:9:71-6:12:74", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,7:2:77-7:17:92", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,7:2:77-7:10:85", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,7:2:77-7:10:85", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/no-glob.d2,7:12:87-7:17:92", - "value": false - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:7:52", - "value": [ - { - "string": "jasmine", - "raw_string": "jasmine" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:13:58", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:7:52", - "value": [ - { - "string": "jasmine", - "raw_string": "jasmine" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:8:53-5:13:58", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-8:1:94", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:13:58", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:0:45-5:7:52", - "value": [ - { - "string": "jasmine", - "raw_string": "jasmine" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,5:8:53-5:13:58", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/errors/no-glob.d2,5:15:60-8:1:94", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,6:2:64-6:12:74", - "ampersand": true, - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,6:3:65-6:7:69", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,6:3:65-6:7:69", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,6:9:71-6:12:74", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/errors/no-glob.d2,7:2:77-7:17:92", - "key": { - "range": "TestCompile/filters/errors/no-glob.d2,7:2:77-7:10:85", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/errors/no-glob.d2,7:2:77-7:10:85", - "value": [ - { - "string": "multiple", - "raw_string": "multiple" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "boolean": { - "range": "TestCompile/filters/errors/no-glob.d2,7:12:87-7:17:92", - "value": false - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/filters/escaped.exp.json b/testdata/d2ir/TestCompile/filters/escaped.exp.json deleted file mode 100644 index c6257902d..000000000 --- a/testdata/d2ir/TestCompile/filters/escaped.exp.json +++ /dev/null @@ -1,560 +0,0 @@ -{ - "fields": [ - { - "name": "jacob", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/filters/escaped.d2,1:8:17-1:14:23", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:14:23", - "key": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,1:8:17-1:14:23", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,7:1:62-7:18:79", - "ampersand": true, - "key": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,7:9:70-7:18:79", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/escaped.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,0:0:0-0:5:5", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,0:0:0-2:1:25", - "key": { - "range": "TestCompile/filters/escaped.d2,0:0:0-0:5:5", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,0:0:0-0:5:5", - "value": [ - { - "string": "jacob", - "raw_string": "jacob" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/escaped.d2,0:7:7-2:1:25", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:14:23", - "key": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,1:1:10-1:6:15", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,1:8:17-1:14:23", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - }, - { - "name": "jeremy", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/filters/escaped.d2,7:9:70-7:18:79", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:17:53", - "key": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,4:8:44-4:17:53", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - }, - { - "string": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,7:1:62-7:18:79", - "ampersand": true, - "key": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,7:2:63-7:7:68", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,7:9:70-7:18:79", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - } - ] - }, - { - "name": "label", - "primary": { - "value": { - "range": "TestCompile/filters/escaped.d2,8:8:88-8:23:103", - "value": [ - { - "string": "I'm a rectangle", - "raw_string": "I'm a rectangle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/escaped.d2,8:1:81-8:6:86", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,8:1:81-8:6:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,8:1:81-8:6:86", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,8:1:81-8:23:103", - "key": { - "range": "TestCompile/filters/escaped.d2,8:1:81-8:6:86", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,8:1:81-8:6:86", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,8:8:88-8:23:103", - "value": [ - { - "string": "I'm a rectangle", - "raw_string": "I'm a rectangle" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/escaped.d2,3:0:26-3:6:32", - "value": [ - { - "string": "jeremy", - "raw_string": "jeremy" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/escaped.d2,3:0:26-3:6:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,3:0:26-3:6:32", - "value": [ - { - "string": "jeremy", - "raw_string": "jeremy" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/escaped.d2,3:0:26-5:1:55", - "key": { - "range": "TestCompile/filters/escaped.d2,3:0:26-3:6:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,3:0:26-3:6:32", - "value": [ - { - "string": "jeremy", - "raw_string": "jeremy" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/escaped.d2,3:8:34-5:1:55", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:17:53", - "key": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,4:1:37-4:6:42", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/escaped.d2,4:8:44-4:17:53", - "value": [ - { - "string": "rectangle", - "raw_string": "rectangle" - } - ] - } - } - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/filters/id-filter.exp.json b/testdata/d2ir/TestCompile/filters/id-filter.exp.json deleted file mode 100644 index 9a19ec594..000000000 --- a/testdata/d2ir/TestCompile/filters/id-filter.exp.json +++ /dev/null @@ -1,1246 +0,0 @@ -{ - "fields": [ - { - "name": "x", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/id-filter.d2,8:17:66-8:18:67", - "raw": "1", - "value": "1" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:18:67", - "key": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,8:17:66-8:18:67", - "raw": "1", - "value": "1" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:18:67", - "key": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:15:64", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:2:51-8:7:56", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,8:8:57-8:15:64", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,8:17:66-8:18:67", - "raw": "1", - "value": "1" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", - "key": { - "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,1:0:1-1:1:2", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - }, - "from_glob": false - } - ] - }, - { - "name": "y", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", - "key": { - "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,2:0:3-2:1:4", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - }, - "from_glob": false - } - ] - }, - { - "name": "p", - "primary": { - "value": { - "range": "TestCompile/filters/id-filter.d2,3:3:8-3:4:9", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - }, - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/id-filter.d2,12:17:104-12:20:107", - "raw": "0.5", - "value": "1/2" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:20:107", - "key": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,12:17:104-12:20:107", - "raw": "0.5", - "value": "1/2" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:20:31", - "key": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:15:26", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:0:11-5:1:12", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:2:13-5:7:18", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,5:8:19-5:15:26", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,5:17:28-5:20:31", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:20:107", - "key": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:15:102", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:2:89-12:7:94", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,12:8:95-12:15:102", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/id-filter.d2,12:17:104-12:20:107", - "raw": "0.5", - "value": "1/2" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/id-filter.d2,3:0:5-3:4:9", - "key": { - "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,3:0:5-3:1:6", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/id-filter.d2,3:3:8-3:4:9", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - } - }, - "from_glob": false - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/globs/escaped.exp.json b/testdata/d2ir/TestCompile/globs/escaped.exp.json deleted file mode 100644 index de7e12d68..000000000 --- a/testdata/d2ir/TestCompile/globs/escaped.exp.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "fields": [ - { - "name": "animal", - "primary": { - "value": { - "range": "TestCompile/globs/escaped.d2,0:8:8-0:12:12", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/globs/escaped.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - }, - "key_path": { - "range": "TestCompile/globs/escaped.d2,0:0:0-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/escaped.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/globs/escaped.d2,0:0:0-0:12:12", - "key": { - "range": "TestCompile/globs/escaped.d2,0:0:0-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/escaped.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/globs/escaped.d2,0:8:8-0:12:12", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - } - } - } - } - ] - }, - { - "name": "action", - "primary": { - "value": { - "range": "TestCompile/globs/escaped.d2,1:8:21-1:11:24", - "value": [ - { - "string": "yes", - "raw_string": "yes" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/globs/escaped.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - }, - "key_path": { - "range": "TestCompile/globs/escaped.d2,1:0:13-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/escaped.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/globs/escaped.d2,1:0:13-1:11:24", - "key": { - "range": "TestCompile/globs/escaped.d2,1:0:13-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/escaped.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/globs/escaped.d2,1:8:21-1:11:24", - "value": [ - { - "string": "yes", - "raw_string": "yes" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/globs/prefix.exp.json b/testdata/d2ir/TestCompile/globs/prefix.exp.json deleted file mode 100644 index 7c50c6809..000000000 --- a/testdata/d2ir/TestCompile/globs/prefix.exp.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "fields": [ - { - "name": "animal", - "primary": { - "value": { - "range": "TestCompile/globs/prefix.d2,0:8:8-0:12:12", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/globs/prefix.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - }, - "key_path": { - "range": "TestCompile/globs/prefix.d2,0:0:0-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/prefix.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/globs/prefix.d2,0:0:0-0:12:12", - "key": { - "range": "TestCompile/globs/prefix.d2,0:0:0-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/prefix.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/globs/prefix.d2,0:8:8-0:12:12", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - } - } - } - } - ] - }, - { - "name": "action", - "primary": { - "value": { - "range": "TestCompile/globs/prefix.d2,1:8:21-1:11:24", - "value": [ - { - "string": "yes", - "raw_string": "yes" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/globs/prefix.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - }, - "key_path": { - "range": "TestCompile/globs/prefix.d2,1:0:13-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/prefix.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/globs/prefix.d2,1:0:13-1:11:24", - "key": { - "range": "TestCompile/globs/prefix.d2,1:0:13-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/globs/prefix.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/globs/prefix.d2,1:8:21-1:11:24", - "value": [ - { - "string": "yes", - "raw_string": "yes" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/imports/#00.exp.json b/testdata/d2ir/TestCompile/imports/#00.exp.json deleted file mode 100644 index cc2a0a3e5..000000000 --- a/testdata/d2ir/TestCompile/imports/#00.exp.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "fields": [ - { - "name": "x", - "primary": { - "value": { - "range": "x.d2,0:3:3-0:7:7", - "value": [ - { - "string": "wowa", - "raw_string": "wowa" - } - ] - } - }, - "references": [ - { - "string": { - "range": "x.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - }, - "key_path": { - "range": "x.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "x.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "x.d2,0:0:0-0:7:7", - "key": { - "range": "x.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "x.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "x.d2,0:3:3-0:7:7", - "value": [ - { - "string": "wowa", - "raw_string": "wowa" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/imports/nested.exp.json b/testdata/d2ir/TestCompile/imports/nested.exp.json deleted file mode 100644 index d6a74f941..000000000 --- a/testdata/d2ir/TestCompile/imports/nested.exp.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "fields": [ - { - "name": "x", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "x.d2,1:8:13-1:14:19", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "x.d2,1:1:6-1:6:11", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "x.d2,1:1:6-1:6:11", - "path": [ - { - "unquoted_string": { - "range": "x.d2,1:1:6-1:6:11", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "x.d2,1:1:6-1:14:19", - "key": { - "range": "x.d2,1:1:6-1:6:11", - "path": [ - { - "unquoted_string": { - "range": "x.d2,1:1:6-1:6:11", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "x.d2,1:8:13-1:14:19", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - } - } - ] - }, - { - "name": "label", - "primary": { - "value": { - "range": "x.d2,2:8:28-2:12:32", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - }, - "references": [ - { - "string": { - "range": "x.d2,2:1:21-2:6:26", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - }, - "key_path": { - "range": "x.d2,2:1:21-2:6:26", - "path": [ - { - "unquoted_string": { - "range": "x.d2,2:1:21-2:6:26", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "x.d2,2:1:21-2:12:32", - "key": { - "range": "x.d2,2:1:21-2:6:26", - "path": [ - { - "unquoted_string": { - "range": "x.d2,2:1:21-2:6:26", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "x.d2,2:8:28-2:12:32", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - }, - "key_path": { - "range": "index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "index.d2,0:0:0-0:7:7", - "key": { - "range": "index.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "index.d2,0:0:0-0:1:1", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "import": { - "range": "index.d2,0:3:3-0:7:7", - "spread": false, - "path": [ - { - "unquoted_string": { - "range": "index.d2,0:4:4-0:5:5", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "index.d2,0:6:6-0:7:7", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/layers/errs/3/bad_edge.exp.json b/testdata/d2ir/TestCompile/layers/errs/3/bad_edge.exp.json deleted file mode 100644 index 5cd2e210c..000000000 --- a/testdata/d2ir/TestCompile/layers/errs/3/bad_edge.exp.json +++ /dev/null @@ -1,1375 +0,0 @@ -{ - "fields": [ - { - "name": "layers", - "composite": { - "fields": [ - { - "name": "x", - "composite": { - "fields": [ - { - "name": "y", - "references": [ - { - "string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "edges": [ - { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - }, - "key_path": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "edges": [ - { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - }, - "key_path": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "edges": [ - { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - } - ] - }, - { - "name": "steps", - "composite": { - "fields": [ - { - "name": "z", - "composite": { - "fields": [ - { - "name": "p", - "references": [ - { - "string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - }, - "key_path": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "edges": [ - { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - }, - "key_path": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "edges": [ - { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - }, - "key_path": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "edges": [ - { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:23:23", - "src": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:10:10", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:0:0-0:6:6", - "value": [ - { - "string": "layers", - "raw_string": "layers" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:7:7-0:8:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:9:9-0:10:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:23:23", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:14:14-0:19:19", - "value": [ - { - "string": "steps", - "raw_string": "steps" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:20:20-0:21:21", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/layers/errs/3/bad_edge.d2,0:22:22-0:23:23", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/patterns/case.exp.json b/testdata/d2ir/TestCompile/patterns/case.exp.json deleted file mode 100644 index 4c0ba1765..000000000 --- a/testdata/d2ir/TestCompile/patterns/case.exp.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "fields": [ - { - "name": "animal", - "primary": { - "value": { - "range": "TestCompile/patterns/case.d2,2:4:29-2:11:36", - "value": [ - { - "string": "globbed", - "raw_string": "globbed" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/case.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/case.d2,0:0:0-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/case.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/case.d2,0:0:0-0:12:12", - "key": { - "range": "TestCompile/patterns/case.d2,0:0:0-0:6:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/case.d2,0:0:0-0:6:6", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/case.d2,0:8:8-0:12:12", - "value": [ - { - "string": "meow", - "raw_string": "meow" - } - ] - } - } - } - } - } - ] - }, - { - "name": "action", - "primary": { - "value": { - "range": "TestCompile/patterns/case.d2,2:4:29-2:11:36", - "value": [ - { - "string": "globbed", - "raw_string": "globbed" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/case.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/case.d2,1:0:13-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/case.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/case.d2,1:0:13-1:11:24", - "key": { - "range": "TestCompile/patterns/case.d2,1:0:13-1:6:19", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/case.d2,1:0:13-1:6:19", - "value": [ - { - "string": "action", - "raw_string": "action" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/case.d2,1:8:21-1:11:24", - "value": [ - { - "string": "yes", - "raw_string": "yes" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/patterns/double-glob.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob.exp.json deleted file mode 100644 index 4696f0b15..000000000 --- a/testdata/d2ir/TestCompile/patterns/double-glob.exp.json +++ /dev/null @@ -1,903 +0,0 @@ -{ - "fields": [ - { - "name": "shared", - "composite": { - "fields": [ - { - "name": "animate", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:22:51", - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:22:51", - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,0:7:7-0:14:14", - "value": [ - { - "string": "animate", - "raw_string": "animate" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:14:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:6:6", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:7:7-0:14:14", - "value": [ - { - "string": "animate", - "raw_string": "animate" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:14:14", - "key": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:14:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:6:6", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:7:7-0:14:14", - "value": [ - { - "string": "animate", - "raw_string": "animate" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - } - ] - }, - { - "name": "animal", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:22:51", - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:22:51", - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,1:7:22-1:13:28", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:13:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:6:21", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:7:22-1:13:28", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:13:28", - "key": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:13:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:6:21", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:7:22-1:13:28", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - } - ] - }, - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:22:51", - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:22:51", - "key": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:16:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:6:35-2:11:40", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:12:41-2:16:45", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,2:18:47-2:21:50", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - } - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:6:6", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:14:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:6:6", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:7:7-0:14:14", - "value": [ - { - "string": "animate", - "raw_string": "animate" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:14:14", - "key": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:14:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:0:0-0:6:6", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,0:7:7-0:14:14", - "value": [ - { - "string": "animate", - "raw_string": "animate" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - }, - { - "string": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:6:21", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:13:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:6:21", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:7:22-1:13:28", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:13:28", - "key": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:13:28", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:0:15-1:6:21", - "value": [ - { - "string": "shared", - "raw_string": "shared" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/double-glob.d2,1:7:22-1:13:28", - "value": [ - { - "string": "animal", - "raw_string": "animal" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - } - ] - } - ], - "edges": null -} diff --git a/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json deleted file mode 100644 index fbfc21849..000000000 --- a/testdata/d2ir/TestCompile/patterns/errors/glob-edge-glob-index.exp.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "fields": null, - "edges": null -} From 57ffc8dbbdfaf93e0afe8b0e1bab9899e53eb895 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Fri, 18 Aug 2023 09:35:55 -0700 Subject: [PATCH 13/21] d2ir: Filter glob creation of edges with edge index where appropriate On query globs, filtering without the edge index overfilters as we only match one of the edge instead all of them. --- d2ir/d2ir.go | 13 +- d2ir/filter_test.go | 23 +- d2ir/pattern_test.go | 15 + .../d2ir/TestCompile/filters/edge.exp.json | 1356 +++++ .../filters/label-filter/1.exp.json | 4654 +++++++++++++++++ .../filters/label-filter/2.exp.json | 3068 +++++++++++ .../patterns/alixander-review/6.exp.json | 2199 ++++++++ .../patterns/edge-glob-index.exp.json | 4572 ++++++++++++++++ .../patterns/glob-edge-glob-index.exp.json | 3798 ++++++++++++++ 9 files changed, 19695 insertions(+), 3 deletions(-) create mode 100644 testdata/d2ir/TestCompile/filters/label-filter/1.exp.json create mode 100644 testdata/d2ir/TestCompile/filters/label-filter/2.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 78780d501..366b32b11 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -1237,10 +1237,14 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, sr if gctx != nil { var ks string + // We only ever want to create one of the edge per glob so we filter without the edge index. + e2 := e.Copy(e.Parent()).(*Edge) + e2.ID = e2.ID.Copy() + e2.ID.Index = nil if refctx.Key.HasTripleGlob() { - ks = d2format.Format(d2ast.MakeKeyPath(IDA(e))) + ks = d2format.Format(d2ast.MakeKeyPath(IDA(e2))) } else { - ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(e))) + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(e2))) } if _, ok := gctx.appliedEdges[ks]; ok { return nil, nil @@ -1304,6 +1308,11 @@ func (e *Edge) AST() d2ast.Node { func (e *Edge) IDString() string { ast := e.AST().(*d2ast.Key) + if e.ID.Index != nil { + ast.EdgeIndex = &d2ast.EdgeIndex{ + Int: e.ID.Index, + } + } ast.Primary = d2ast.ScalarBox{} ast.Value = d2ast.ValueBox{} return d2format.Format(ast) diff --git a/d2ir/filter_test.go b/d2ir/filter_test.go index fa1419775..efe490c0e 100644 --- a/d2ir/filter_test.go +++ b/d2ir/filter_test.go @@ -97,7 +97,7 @@ x -> y }, }, { - name: "label-filter", + name: "label-filter/1", run: func(t testing.TB) { m, err := compile(t, ` x @@ -129,6 +129,27 @@ a -> z: delta assertQuery(t, m, 0, 0, "diamond", "(a -> z).target-arrowhead.shape") }, }, + { + name: "label-filter/2", + run: func(t testing.TB) { + m, err := compile(t, ` +(* -> *)[*].style.opacity: 0.1 + +(* -> *)[*]: { + &label: hi + style.opacity: 1 +} + +x -> y: hi +x -> y +`) + assert.Success(t, err) + assertQuery(t, m, 6, 2, nil, "") + assertQuery(t, m, 2, 0, "hi", "(x -> y)[0]") + assertQuery(t, m, 0, 0, 1, "(x -> y)[0].style.opacity") + assertQuery(t, m, 0, 0, 0.1, "(x -> y)[1].style.opacity") + }, + }, } runa(t, tca) diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 6889a29a1..6fd1dc9b2 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -500,6 +500,21 @@ scenarios: { assertQuery(t, m, 0, 0, "red", "scenarios.b.b.style.fill") }, }, + { + name: "alixander-review/6", + run: func(t testing.TB) { + m, err := compile(t, ` +(* -> *)[*].style.opacity: 0.1 + +x -> y: hi +x -> y +`) + assert.Success(t, err) + assertQuery(t, m, 6, 2, nil, "") + assertQuery(t, m, 0, 0, 0.1, "(x -> y)[0].style.opacity") + assertQuery(t, m, 0, 0, 0.1, "(x -> y)[1].style.opacity") + }, + }, { name: "override/1", run: func(t testing.TB) { diff --git a/testdata/d2ir/TestCompile/filters/edge.exp.json b/testdata/d2ir/TestCompile/filters/edge.exp.json index afbb299e8..2fd9f86f2 100644 --- a/testdata/d2ir/TestCompile/filters/edge.exp.json +++ b/testdata/d2ir/TestCompile/filters/edge.exp.json @@ -820,6 +820,508 @@ } }, "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/edge.d2,6:1:87-6:2:88", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": true } ] }, @@ -1263,6 +1765,91 @@ }, "from_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" + } + ] + } + } + } + }, + "from_glob": true + }, { "string": { "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", @@ -1438,6 +2025,91 @@ }, "from_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", + "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" + } + ] + } + } + } + }, + "from_glob": true + }, { "string": { "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", @@ -1627,6 +2299,91 @@ }, "from_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" + } + ] + } + } + } + }, + "from_glob": true + }, { "string": { "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", @@ -1802,6 +2559,91 @@ }, "from_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" + } + ] + } + } + } + }, + "from_glob": true + }, { "string": { "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", @@ -1903,6 +2745,68 @@ } }, "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" + } + ] + } + } + } + }, + "from_glob": true + }, { "string": { "range": "TestCompile/filters/edge.d2,9:1:170-9:6:175", @@ -2376,6 +3280,232 @@ } }, "from_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" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false } ] }, @@ -2708,6 +3838,232 @@ } }, "from_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" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json b/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json new file mode 100644 index 000000000..3004224a1 --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json @@ -0,0 +1,4654 @@ +{ + "fields": [ + { + "name": "x", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,9:17:80-9:18:81", + "raw": "1", + "value": "1" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:18:81", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,9:17:80-9:18:81", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:18:81", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:15:78", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:2:65-9:7:70", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,9:8:71-9:15:78", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,9:17:80-9:18:81", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,1:0:1-1:1:2", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,1:0:1-1:1:2", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,1:0:1-1:1:2", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "y", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,2:0:3-2:1:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,2:0:3-2:1:4", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,2:0:3-2:1:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,2:0:3-2:1:4", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "p", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,3:3:8-3:4:9", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,13:17:118-13:20:121", + "raw": "0.5", + "value": "1/2" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:20:121", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,13:17:118-13:20:121", + "raw": "0.5", + "value": "1/2" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:20:121", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:15:116", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:2:103-13:7:108", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,13:8:109-13:15:116", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,13:17:118-13:20:121", + "raw": "0.5", + "value": "1/2" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,3:0:5-3:1:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,3:0:5-3:4:9", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,3:0:5-3:1:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,3:0:5-3:1:6", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,3:3:8-3:4:9", + "value": [ + { + "string": "p", + "raw_string": "p" + } + ] + } + } + } + }, + "from_glob": false + } + ] + }, + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:13:23", + "edges": [ + { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + "from_glob": false + } + ] + }, + { + "name": "z", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:13:23", + "edges": [ + { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "z" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + }, + "map": { + "fields": [ + { + "name": "target-arrowhead", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/1.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:32:186", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:32:186", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:13:23", + "edges": [ + { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:6:16", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:0:10-4:1:11", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:5:15-4:6:16", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,4:8:18-4:13:23", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/1.d2,15:1:125-15:7:131", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,15:1:125-15:2:126", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,15:1:125-15:2:126", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,15:6:130-15:7:131", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,15:6:130-15:7:131", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,15:0:124-18:1:188", + "edges": [ + { + "range": "TestCompile/filters/label-filter/1.d2,15:1:125-15:7:131", + "src": { + "range": "TestCompile/filters/label-filter/1.d2,15:1:125-15:2:126", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,15:1:125-15:2:126", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/1.d2,15:6:130-15:7:131", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,15:6:130-15:7:131", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/filters/label-filter/1.d2,15:8:132-15:11:135", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/label-filter/1.d2,15:13:137-18:1:188", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/label-filter/1.d2,16:1:140-16:14:153", + "ampersand": true, + "key": { + "range": "TestCompile/filters/label-filter/1.d2,16:2:141-16:7:146", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,16:2:141-16:7:146", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,16:9:148-16:14:153", + "value": [ + { + "string": "delta", + "raw_string": "delta" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:32:186", + "key": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:23:177", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:1:155-17:17:171", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:18:172-17:23:177", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/1.d2,17:25:179-17:32:186", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json new file mode 100644 index 000000000..facfd1f1f --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json @@ -0,0 +1,3068 @@ +{ + "fields": [ + { + "name": "x", + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:6:89", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:10:93", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:6:89", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:8:91-8:10:93", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "y", + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:6:89", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:10:93", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:6:89", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:8:91-8:10:93", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_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/2.d2,8:8:91-8:10:93", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + }, + "references": [ + { + "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" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "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" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + } + } + }, + "from_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" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "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" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "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" + } + } + } + }, + "from_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" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "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" + } + } + } + }, + "from_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" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79", + "raw": "1", + "value": "1" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:6:89", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:10:93", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:6:89", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:0:83-8:1:84", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:5:88-8:6:89", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,8:8:91-8:10:93", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + } + ] + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + } + ] + } + } + } + }, + "from_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "x" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 1, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/filters/label-filter/2.d2,1:27:28-1:30:31", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "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" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "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" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "edges": [ + { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:6:100", + "src": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:0:94-9:1:95", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/label-filter/2.d2,9:5:99-9:6:100", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + }, + { + "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" + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + } + ] + } + } + } + }, + "from_glob": false + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json new file mode 100644 index 000000000..ae0c32c69 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json @@ -0,0 +1,2199 @@ +{ + "fields": [ + { + "name": "x", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:6:39", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:10:43", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:6:39", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:8:41-3:10:43", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + } + ] + }, + { + "name": "y", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:6:39", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:10:43", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:6:39", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:8:41-3:10:43", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_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/patterns/alixander-review/6.d2,3:8:41-3:10:43", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/6.d2,1:27:28-1:30:31", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "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" + } + } + } + }, + "from_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" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "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" + } + } + } + }, + "from_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" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:6:39", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:10:43", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:6:39", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:0:33-3:1:34", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:5:38-3:6:39", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,3:8:41-3:10:43", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + }, + "from_glob": false + }, + { + "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" + } + } + } + }, + "from_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "x" + ], + "src_arrow": false, + "dst_path": [ + "y" + ], + "dst_arrow": true, + "index": 1, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "opacity", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/6.d2,1:27:28-1:30:31", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "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" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "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" + } + } + } + }, + "from_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:6:50", + "src": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:0:44-4:1:45", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/6.d2,4:5:49-4:6:50", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "from_glob": false + }, + { + "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" + } + } + } + }, + "from_glob": false + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json index 1602ba3c0..40f8930af 100644 --- a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json @@ -794,6 +794,924 @@ } }, "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/edge-glob-index.d2,3:1:22-3:2:23", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "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" + } + ] + } + } + ] + }, + "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" + } + ] + } + } + } + }, + "from_glob": true } ] }, @@ -1591,6 +2509,924 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -1792,6 +3628,334 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -1962,6 +4126,334 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -2182,6 +4674,262 @@ } }, "from_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" + } + ] + } + } + } + }, + "from_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" + } + ] + } + } + } + }, + "from_glob": false } ] }, @@ -2381,6 +5129,334 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -2551,6 +5627,334 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -2771,6 +6175,262 @@ } }, "from_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" + } + ] + } + } + } + }, + "from_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" + } + ] + } + } + } + }, + "from_glob": false } ] }, @@ -2970,6 +6630,334 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -3140,6 +7128,334 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -3360,6 +7676,262 @@ } }, "from_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" + } + ] + } + } + } + }, + "from_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" + } + ] + } + } + } + }, + "from_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 08612280b..2714b1b6b 100644 --- a/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json @@ -1420,6 +1420,960 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] }, @@ -1743,6 +2697,346 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -1919,6 +3213,346 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -2145,6 +3779,274 @@ } }, "from_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" + } + ] + } + } + } + }, + "from_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" + } + ] + } + } + } + }, + "from_glob": false } ] }, @@ -2350,6 +4252,346 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -2526,6 +4768,346 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -2752,6 +5334,274 @@ } }, "from_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" + } + ] + } + } + } + }, + "from_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" + } + ] + } + } + } + }, + "from_glob": false } ] }, @@ -2957,6 +5807,346 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -3133,6 +6323,346 @@ } }, "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true + }, + { + "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" + } + ] + } + } + } + }, + "from_glob": true } ] } @@ -3359,6 +6889,274 @@ } }, "from_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" + } + ] + } + } + } + }, + "from_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" + } + ] + } + } + } + }, + "from_glob": false } ] }, From eed3f7eb21c5ee7a67409a2b7093b57b15977d74 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sat, 19 Aug 2023 21:20:32 -0700 Subject: [PATCH 14/21] d2ir: Many more glob fixes --- d2ast/d2ast.go | 149 +- d2compiler/compile_test.go | 24 + d2ir/compile.go | 9 +- d2ir/compile_test.go | 2 +- d2ir/d2ir.go | 140 +- d2ir/pattern_test.go | 85 +- d2ir/query.go | 23 +- d2oracle/edit.go | 8 +- .../alixander-lazy-globs-review/3.exp.json | 458 ++ .../d2ir/TestCompile/classes/basic.exp.json | 15 +- .../TestCompile/classes/inherited.exp.json | 240 +- .../TestCompile/classes/layer-modify.exp.json | 39 +- .../d2ir/TestCompile/classes/merge.exp.json | 42 +- .../d2ir/TestCompile/classes/nested.exp.json | 51 +- .../d2ir/TestCompile/edges/chain.exp.json | 27 +- .../d2ir/TestCompile/edges/nested.exp.json | 15 +- testdata/d2ir/TestCompile/edges/root.exp.json | 9 +- .../TestCompile/edges/underscore.exp.json | 12 +- .../d2ir/TestCompile/fields/array.exp.json | 3 +- .../d2ir/TestCompile/fields/label.exp.json | 3 +- .../d2ir/TestCompile/fields/nested.exp.json | 6 +- .../fields/primary/nested.exp.json | 9 +- .../TestCompile/fields/primary/root.exp.json | 6 +- .../d2ir/TestCompile/fields/root.exp.json | 3 +- .../d2ir/TestCompile/filters/array.exp.json | 39 +- .../d2ir/TestCompile/filters/base.exp.json | 21 +- .../d2ir/TestCompile/filters/edge.exp.json | 84 +- .../TestCompile/filters/label-filter.exp.json | 4654 ----------------- .../filters/label-filter/1.exp.json | 1179 +---- .../filters/label-filter/2.exp.json | 66 +- .../d2ir/TestCompile/filters/order.exp.json | 21 +- .../d2ir/TestCompile/imports/boards.exp.json | 27 +- .../TestCompile/imports/nested/array.exp.json | 3 +- .../TestCompile/imports/nested/map.exp.json | 9 +- .../imports/nested/scalar.exp.json | 3 +- .../imports/nested/spread.exp.json | 6 +- .../imports/nested/spread_primary.exp.json | 9 +- .../d2ir/TestCompile/imports/spread.exp.json | 3 +- .../imports/steps-inheritence.exp.json | 48 +- .../d2ir/TestCompile/imports/value.exp.json | 9 +- .../d2ir/TestCompile/imports/vars/1.exp.json | 9 +- .../d2ir/TestCompile/imports/vars/2.exp.json | 15 +- .../d2ir/TestCompile/imports/vars/3.exp.json | 15 +- .../layers/errs/4/good_edge.exp.json | 21 +- .../d2ir/TestCompile/layers/root.exp.json | 24 +- .../patterns/alixander-review/1.exp.json | 1089 +--- .../patterns/alixander-review/2.exp.json | 27 +- .../patterns/alixander-review/3.exp.json | 54 +- .../patterns/alixander-review/4.exp.json | 27 +- .../patterns/alixander-review/5.exp.json | 509 +- .../patterns/alixander-review/6.exp.json | 45 +- .../patterns/alixander-review/7.exp.json | 1079 ++++ .../patterns/alixander-review/8.exp.json | 869 +++ .../d2ir/TestCompile/patterns/case/1.exp.json | 6 +- .../d2ir/TestCompile/patterns/case/2.exp.json | 6 +- .../patterns/double-glob/1.exp.json | 30 +- .../patterns/double-glob/defaults.exp.json | 75 +- .../double-glob/edge-no-container.exp.json | 30 +- .../patterns/double-glob/edge/1.exp.json | 24 +- .../patterns/double-glob/edge/2.exp.json | 12 +- .../patterns/edge-glob-index.exp.json | 162 +- .../TestCompile/patterns/edge-nexus.exp.json | 27 +- .../d2ir/TestCompile/patterns/edge/1.exp.json | 12 +- .../d2ir/TestCompile/patterns/edge/2.exp.json | 18 +- .../d2ir/TestCompile/patterns/edge/3.exp.json | 18 +- .../TestCompile/patterns/escaped.exp.json | 9 +- .../patterns/glob-edge-glob-index.exp.json | 156 +- .../patterns/nested/prefix-suffix/3.exp.json | 24 +- .../TestCompile/patterns/override/1.exp.json | 21 +- .../TestCompile/patterns/override/2.exp.json | 279 +- .../TestCompile/patterns/override/3.exp.json | 84 +- .../TestCompile/patterns/override/4.exp.json | 18 +- .../TestCompile/patterns/override/5.exp.json | 21 +- .../patterns/prefix-suffix.exp.json | 6 +- .../patterns/prefix-suffix/2.exp.json | 6 +- .../patterns/prefix-suffix/3.exp.json | 6 +- .../d2ir/TestCompile/patterns/prefix.exp.json | 6 +- .../patterns/prevent-chain-recursion.exp.json | 1083 ++++ .../TestCompile/patterns/reserved.exp.json | 36 +- .../TestCompile/patterns/scenarios.exp.json | 102 +- .../patterns/single-glob/defaults.exp.json | 144 +- .../d2ir/TestCompile/patterns/suffix.exp.json | 6 +- .../patterns/table-class-exception.exp.json | 988 ++++ .../patterns/triple-glob/defaults.exp.json | 96 +- .../triple-glob/edge-defaults.exp.json | 150 +- .../d2ir/TestCompile/scenarios/edge.exp.json | 39 +- .../d2ir/TestCompile/scenarios/root.exp.json | 48 +- .../d2ir/TestCompile/steps/recursive.exp.json | 87 +- testdata/d2ir/TestCompile/steps/root.exp.json | 57 +- 89 files changed, 6774 insertions(+), 8460 deletions(-) create mode 100644 testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json delete mode 100644 testdata/d2ir/TestCompile/filters/label-filter.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/alixander-review/8.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/prevent-chain-recursion.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json diff --git a/d2ast/d2ast.go b/d2ast/d2ast.go index 63daf011e..a210a49f3 100644 --- a/d2ast/d2ast.go +++ b/d2ast/d2ast.go @@ -641,8 +641,7 @@ type Key struct { Value ValueBox `json:"value"` } -// TODO maybe need to compare Primary -func (mk1 *Key) Equals(mk2 *Key) bool { +func (mk1 *Key) D2OracleEquals(mk2 *Key) bool { if mk1.Ampersand != mk2.Ampersand { return false } @@ -715,6 +714,98 @@ func (mk1 *Key) Equals(mk2 *Key) bool { return true } +func (mk1 *Key) Equals(mk2 *Key) bool { + if mk1.Ampersand != mk2.Ampersand { + return false + } + if (mk1.Key == nil) != (mk2.Key == nil) { + return false + } + if (mk1.EdgeIndex == nil) != (mk2.EdgeIndex == nil) { + return false + } + if mk1.EdgeIndex != nil { + if !mk1.EdgeIndex.Equals(mk2.EdgeIndex) { + return false + } + } + if (mk1.EdgeKey == nil) != (mk2.EdgeKey == nil) { + return false + } + if len(mk1.Edges) != len(mk2.Edges) { + return false + } + for i := range mk1.Edges { + if !mk1.Edges[i].Equals(mk2.Edges[i]) { + return false + } + } + if (mk1.Value.Map == nil) != (mk2.Value.Map == nil) { + if mk1.Value.Map != nil && len(mk1.Value.Map.Nodes) > 0 { + return false + } + if mk2.Value.Map != nil && len(mk2.Value.Map.Nodes) > 0 { + return false + } + } else if (mk1.Value.Unbox() == nil) != (mk2.Value.Unbox() == nil) { + return false + } + + if mk1.Key != nil { + if len(mk1.Key.Path) != len(mk2.Key.Path) { + return false + } + for i, id := range mk1.Key.Path { + if id.Unbox().ScalarString() != mk2.Key.Path[i].Unbox().ScalarString() { + return false + } + } + } + if mk1.EdgeKey != nil { + if len(mk1.EdgeKey.Path) != len(mk2.EdgeKey.Path) { + return false + } + for i, id := range mk1.EdgeKey.Path { + if id.Unbox().ScalarString() != mk2.EdgeKey.Path[i].Unbox().ScalarString() { + return false + } + } + } + + if mk1.Value.Map != nil && len(mk1.Value.Map.Nodes) > 0 { + if len(mk1.Value.Map.Nodes) != len(mk2.Value.Map.Nodes) { + return false + } + for i := range mk1.Value.Map.Nodes { + if !mk1.Value.Map.Nodes[i].MapKey.Equals(mk2.Value.Map.Nodes[i].MapKey) { + return false + } + } + } + + if mk1.Value.Unbox() != nil { + if (mk1.Value.ScalarBox().Unbox() == nil) != (mk2.Value.ScalarBox().Unbox() == nil) { + return false + } + if mk1.Value.ScalarBox().Unbox() != nil { + if mk1.Value.ScalarBox().Unbox().ScalarString() != mk2.Value.ScalarBox().Unbox().ScalarString() { + return false + } + } + } + + if mk1.Primary.Unbox() != nil { + if (mk1.Primary.Unbox() == nil) != (mk2.Primary.Unbox() == nil) { + return false + } + if mk1.Primary.ScalarString() != mk2.Primary.ScalarString() { + return false + } + } + + return true +} + func (mk *Key) SetScalar(scalar ScalarBox) { if mk.Value.Unbox() != nil && mk.Value.ScalarBox().Unbox() == nil { mk.Primary = scalar @@ -828,6 +919,18 @@ func (kp *KeyPath) HasGlob() bool { return false } +func (kp *KeyPath) FirstGlob() int { + if kp == nil { + return -1 + } + for i, el := range kp.Path { + if el.UnquotedString != nil && len(el.UnquotedString.Pattern) > 0 { + return i + } + } + return -1 +} + func (kp *KeyPath) HasTripleGlob() bool { if kp == nil { return false @@ -852,6 +955,18 @@ func (kp *KeyPath) HasMultiGlob() bool { return false } +func (kp1 *KeyPath) Equals(kp2 *KeyPath) bool { + if len(kp1.Path) != len(kp2.Path) { + return false + } + for i, id := range kp1.Path { + if id.Unbox().ScalarString() != kp2.Path[i].Unbox().ScalarString() { + return false + } + } + return true +} + type Edge struct { Range Range `json:"range"` @@ -864,6 +979,22 @@ type Edge struct { DstArrow string `json:"dst_arrow"` } +func (e1 *Edge) Equals(e2 *Edge) bool { + if !e1.Src.Equals(e2.Src) { + return false + } + if e1.SrcArrow != e2.SrcArrow { + return false + } + if !e1.Dst.Equals(e2.Dst) { + return false + } + if e1.DstArrow != e2.DstArrow { + return false + } + return true +} + type EdgeIndex struct { Range Range `json:"range"` @@ -872,6 +1003,16 @@ type EdgeIndex struct { Glob bool `json:"glob"` } +func (ei1 *EdgeIndex) Equals(ei2 *EdgeIndex) bool { + if ei1.Int != ei2.Int { + return false + } + if ei1.Glob != ei2.Glob { + return false + } + return true +} + type Substitution struct { Range Range `json:"range"` @@ -1147,6 +1288,10 @@ func (sb ScalarBox) Unbox() Scalar { } } +func (sb ScalarBox) ScalarString() string { + return sb.Unbox().ScalarString() +} + // StringBox is used to box String for JSON persistence. type StringBox struct { UnquotedString *UnquotedString `json:"unquoted_string,omitempty"` diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 169145af2..15c966eab 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -4072,6 +4072,30 @@ scenarios: { a -> b } } +`, "") + }, + }, + { + name: "alixander-lazy-globs-review/3", + run: func(t *testing.T) { + assertCompile(t, ` +***: { + c: d +} + +***: { + style.fill: red +} + +table: { + shape: sql_table + a: b +} + +class: { + shape: class + a: b +} `, "") }, }, diff --git a/d2ir/compile.go b/d2ir/compile.go index 54ff45e75..752473abf 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -514,9 +514,10 @@ func (c *compiler) compileKey(refctx *RefContext) { if oldFields != refctx.ScopeMap.FieldCountRecursive() || oldEdges != refctx.ScopeMap.EdgeCountRecursive() { for _, gctx2 := range c.globContexts() { // println(d2format.Format(gctx2.refctx.Key), d2format.Format(refctx.Key)) + old := c.lazyGlobBeingApplied c.lazyGlobBeingApplied = true c.compileKey(gctx2.refctx) - c.lazyGlobBeingApplied = false + c.lazyGlobBeingApplied = old } } } @@ -748,7 +749,7 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { // if already set by a non glob key. func (c *compiler) ignoreLazyGlob(n Node) bool { if c.lazyGlobBeingApplied && n.Primary() != nil { - if ref := n.SecondLastPrimaryRef(); ref != nil && !ref.DueToGlob() { + if n.LastPrimaryRef() != nil { return true } } @@ -899,7 +900,9 @@ func (c *compiler) _compileEdges(refctx *RefContext) { } for _, e := range ea { e.References = append(e.References, &EdgeReference{ - Context_: refctx, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, + DueToLazyGlob_: c.lazyGlobBeingApplied, }) refctx.ScopeMap.appendFieldReferences(0, refctx.Edge.Src, refctx, c) refctx.ScopeMap.appendFieldReferences(0, refctx.Edge.Dst, refctx, c) diff --git a/d2ir/compile_test.go b/d2ir/compile_test.go index 9fc96b228..bf03b14d1 100644 --- a/d2ir/compile_test.go +++ b/d2ir/compile_test.go @@ -107,7 +107,7 @@ func assertQuery(t testing.TB, n d2ir.Node, nfields, nedges int, primary interfa } if len(na) == 0 { - return nil + t.Fatalf("query didn't match anything") } return na[0] diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 366b32b11..d7c65ac7f 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -13,6 +13,7 @@ import ( "oss.terrastruct.com/d2/d2format" "oss.terrastruct.com/d2/d2graph" "oss.terrastruct.com/d2/d2parser" + "oss.terrastruct.com/d2/d2target" ) // Most errors returned by a node should be created with d2parser.Errorf @@ -30,7 +31,6 @@ type Node interface { LastRef() Reference LastPrimaryRef() Reference - SecondLastPrimaryRef() Reference LastPrimaryKey() *d2ast.Key } @@ -116,10 +116,6 @@ func (n *Scalar) LastPrimaryRef() Reference { return parentPrimaryRef(n) } func (n *Map) LastPrimaryRef() Reference { return parentPrimaryRef(n) } func (n *Array) LastPrimaryRef() Reference { return parentPrimaryRef(n) } -func (n *Scalar) SecondLastPrimaryRef() Reference { return parentSecondPrimaryRef(n) } -func (n *Map) SecondLastPrimaryRef() Reference { return parentSecondPrimaryRef(n) } -func (n *Array) SecondLastPrimaryRef() Reference { return parentSecondPrimaryRef(n) } - func (n *Scalar) LastPrimaryKey() *d2ast.Key { return parentPrimaryKey(n) } func (n *Map) LastPrimaryKey() *d2ast.Key { return parentPrimaryKey(n) } func (n *Array) LastPrimaryKey() *d2ast.Key { return parentPrimaryKey(n) } @@ -132,6 +128,7 @@ type Reference interface { Context() *RefContext // Result of a glob in Context or from above. DueToGlob() bool + DueToLazyGlob() bool } var _ Reference = &FieldReference{} @@ -143,6 +140,8 @@ func (r *FieldReference) Context() *RefContext { return r.Context_ } func (r *EdgeReference) Context() *RefContext { return r.Context_ } func (r *FieldReference) DueToGlob() bool { return r.DueToGlob_ } func (r *EdgeReference) DueToGlob() bool { return r.DueToGlob_ } +func (r *FieldReference) DueToLazyGlob() bool { return r.DueToLazyGlob_ } +func (r *EdgeReference) DueToLazyGlob() bool { return r.DueToLazyGlob_ } type Scalar struct { parent Node @@ -318,21 +317,7 @@ func (f *Field) Copy(newParent Node) Node { func (f *Field) LastPrimaryRef() Reference { for i := len(f.References) - 1; i >= 0; i-- { - if f.References[i].Primary() { - return f.References[i] - } - } - return nil -} - -func (f *Field) SecondLastPrimaryRef() Reference { - second := false - for i := len(f.References) - 1; i >= 0; i-- { - if f.References[i].Primary() { - if !second { - second = true - continue - } + if f.References[i].Primary() && !f.References[i].DueToLazyGlob() { return f.References[i] } } @@ -489,22 +474,7 @@ func (e *Edge) Copy(newParent Node) Node { func (e *Edge) LastPrimaryRef() Reference { for i := len(e.References) - 1; i >= 0; i-- { fr := e.References[i] - if fr.Context_.Key.EdgeKey == nil { - return fr - } - } - return nil -} - -func (e *Edge) SecondLastPrimaryRef() Reference { - second := false - for i := len(e.References) - 1; i >= 0; i-- { - fr := e.References[i] - if fr.Context_.Key.EdgeKey == nil { - if !second { - second = true - continue - } + if fr.Context_.Key.EdgeKey == nil && !fr.DueToLazyGlob() { return fr } } @@ -544,8 +514,9 @@ type FieldReference struct { String d2ast.String `json:"string"` KeyPath *d2ast.KeyPath `json:"key_path"` - Context_ *RefContext `json:"context"` - DueToGlob_ bool `json:"from_glob"` + Context_ *RefContext `json:"context"` + DueToGlob_ bool `json:"due_to_glob"` + DueToLazyGlob_ bool `json:"due_to_lazy_glob"` } // Primary returns true if the Value in Context.Key.Value corresponds to the Field @@ -585,8 +556,9 @@ func (fr *FieldReference) AST() d2ast.Node { } type EdgeReference struct { - Context_ *RefContext `json:"context"` - DueToGlob_ bool `json:"from_glob"` + Context_ *RefContext `json:"context"` + DueToGlob_ bool `json:"due_to_glob"` + DueToLazyGlob_ bool `json:"due_to_lazy_glob"` } func (er *EdgeReference) AST() d2ast.Node { @@ -757,13 +729,13 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b } else { ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) } - // For globs with edges, we only ignore duplicate fields if the glob is not at the terminal of the keypath, the glob is on the common key or the glob is on the edge key. if !kp.HasGlob() { if !passthrough { gctx.appliedFields[ks] = struct{}{} } return true } + // For globs with edges, we only ignore duplicate fields if the glob is not at the terminal of the keypath, the glob is on the common key or the glob is on the edge key. And only for globs with edge indexes. lastEl := kp.Path[len(kp.Path)-1] if len(refctx.Key.Edges) == 0 || lastEl.UnquotedString == nil || len(lastEl.UnquotedString.Pattern) == 0 || kp == refctx.Key.Key || kp == refctx.Key.EdgeKey { if _, ok := gctx.appliedFields[ks]; ok { @@ -860,10 +832,11 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b // Don't add references for fake common KeyPath from trimCommon in CreateEdge. if refctx != nil { f.References = append(f.References, &FieldReference{ - String: kp.Path[i].Unbox(), - KeyPath: kp, - Context_: refctx, - DueToGlob_: len(c.globRefContextStack) > 0, + String: kp.Path[i].Unbox(), + KeyPath: kp, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, + DueToLazyGlob_: c.lazyGlobBeingApplied, }) } @@ -888,17 +861,39 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b if !create { return nil } + shape := ParentShape(m) + if _, ok := d2graph.ReservedKeywords[strings.ToLower(head)]; !ok && len(c.globRefContextStack) > 0 { + if shape == d2target.ShapeClass || shape == d2target.ShapeSQLTable { + return nil + } + } f := &Field{ parent: m, Name: head, } + defer func() { + if i < kp.FirstGlob() { + return + } + for _, grefctx := range c.globRefContextStack { + var ks string + if grefctx.Key.HasTripleGlob() { + ks = d2format.Format(d2ast.MakeKeyPath(IDA(f))) + } else { + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(f))) + } + gctx2 := c.getGlobContext(grefctx) + gctx2.appliedFields[ks] = struct{}{} + } + }() // Don't add references for fake common KeyPath from trimCommon in CreateEdge. if refctx != nil { f.References = append(f.References, &FieldReference{ - String: kp.Path[i].Unbox(), - KeyPath: kp, - Context_: refctx, - DueToGlob_: len(c.globRefContextStack) > 0, + String: kp.Path[i].Unbox(), + KeyPath: kp, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, + DueToLazyGlob_: c.lazyGlobBeingApplied, }) } m.Fields = append(m.Fields, f) @@ -1198,7 +1193,7 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, gctx *globContext, c * eid2.SrcPath = RelIDA(m, src) eid2.DstPath = RelIDA(m, dst) - e, err := m.createEdge2(eid2, refctx, gctx, src, dst) + e, err := m.createEdge2(eid2, refctx, gctx, c, src, dst) if err != nil { return err } @@ -1210,7 +1205,7 @@ func (m *Map) createEdge(eid *EdgeID, refctx *RefContext, gctx *globContext, c * return nil } -func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, src, dst *Field) (*Edge, error) { +func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, c *compiler, src, dst *Field) (*Edge, error) { if NodeBoardKind(src) != "" { return nil, d2parser.Errorf(refctx.Edge.Src, "cannot create edges between boards") } @@ -1231,7 +1226,9 @@ func (m *Map) createEdge2(eid *EdgeID, refctx *RefContext, gctx *globContext, sr parent: m, ID: eid, References: []*EdgeReference{{ - Context_: refctx, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, + DueToLazyGlob_: c.lazyGlobBeingApplied, }}, } @@ -1356,10 +1353,11 @@ func (m *Map) appendFieldReferences(i int, kp *d2ast.KeyPath, refctx *RefContext } f.References = append(f.References, &FieldReference{ - String: sb.Unbox(), - KeyPath: kp, - Context_: refctx, - DueToGlob_: len(c.globRefContextStack) > 0, + String: sb.Unbox(), + KeyPath: kp, + Context_: refctx, + DueToGlob_: len(c.globRefContextStack) > 0, + DueToLazyGlob_: c.lazyGlobBeingApplied, }) if i+1 == len(kp.Path) { return @@ -1439,6 +1437,24 @@ func ParentEdge(n Node) *Edge { } } +func ParentShape(n Node) string { + for { + f, ok := n.(*Field) + if ok { + if f.Map() != nil { + shapef := f.Map().GetField("shape") + if shapef != nil && shapef.Primary() != nil { + return shapef.Primary().Value.ScalarString() + } + } + } + n = n.Parent() + if n == nil { + return "" + } + } +} + func countUnderscores(p []string) int { for i, el := range p { if el != "_" { @@ -1493,18 +1509,6 @@ func parentPrimaryRef(n Node) Reference { return nil } -func parentSecondPrimaryRef(n Node) Reference { - f := ParentField(n) - if f != nil { - return f.SecondLastPrimaryRef() - } - e := ParentEdge(n) - if e != nil { - return e.SecondLastPrimaryRef() - } - return nil -} - func parentPrimaryKey(n Node) *d2ast.Key { f := ParentField(n) if f != nil { diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 6fd1dc9b2..b2fbb4bab 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -128,7 +128,7 @@ an* -> an*`) assert.Success(t, err) assertQuery(t, m, 2, 2, nil, "") assertQuery(t, m, 0, 0, nil, "(animate -> animal)[0]") - assertQuery(t, m, 0, 0, nil, "(animal -> animal)[0]") + assertQuery(t, m, 0, 0, nil, "(animal -> animate)[0]") }, }, { @@ -154,7 +154,7 @@ sh*.an* -> sh*.an*`) assertQuery(t, m, 3, 2, nil, "") assertQuery(t, m, 2, 2, nil, "shared") assertQuery(t, m, 0, 0, nil, "shared.(animate -> animal)[0]") - assertQuery(t, m, 0, 0, nil, "shared.(animal -> animal)[0]") + assertQuery(t, m, 0, 0, nil, "shared.(animal -> animate)[0]") }, }, { @@ -515,6 +515,42 @@ x -> y assertQuery(t, m, 0, 0, 0.1, "(x -> y)[1].style.opacity") }, }, + { + name: "alixander-review/7", + run: func(t testing.TB) { + m, err := compile(t, ` +*: { + style.fill: red +} +**: { + style.fill: red +} + +table: { + style.fill: blue + shape: sql_table + a: b +} +`) + assert.Success(t, err) + assertQuery(t, m, 7, 0, nil, "") + assertQuery(t, m, 0, 0, "blue", "table.style.fill") + }, + }, + { + name: "alixander-review/8", + run: func(t testing.TB) { + m, err := compile(t, ` +(a -> *)[*].style.stroke: red +(* -> *)[*].style.stroke: red + +b -> c +`) + assert.Success(t, err) + assertQuery(t, m, 4, 1, nil, "") + assertQuery(t, m, 0, 0, "red", "(b -> c)[0].style.stroke") + }, + }, { name: "override/1", run: func(t testing.TB) { @@ -606,6 +642,51 @@ a -> b assertQuery(t, m, 0, 0, "hey", "(a -> b)[0].label") }, }, + { + name: "table-class-exception", + run: func(t testing.TB) { + m, err := compile(t, ` +***: { + c: d +} + +***: { + style.fill: red +} + +table: { + shape: sql_table + a: b +} + +class: { + shape: class + a: b +} +`) + assert.Success(t, err) + assertQuery(t, m, 10, 0, nil, "") + }, + }, + { + name: "prevent-chain-recursion", + run: func(t testing.TB) { + m, err := compile(t, ` +***: { + c: d +} + +***: { + style.fill: red +} + +one +two +`) + assert.Success(t, err) + assertQuery(t, m, 12, 0, nil, "") + }, + }, } runa(t, tca) diff --git a/d2ir/query.go b/d2ir/query.go index 92031a5f6..49a4ae2e8 100644 --- a/d2ir/query.go +++ b/d2ir/query.go @@ -14,17 +14,22 @@ func (m *Map) QueryAll(idStr string) (na []Node, _ error) { } if k.Key != nil { - f := m.GetField(k.Key.IDA()...) - if f == nil { + fa, err := m.EnsureField(k.Key, nil, false, nil) + if err != nil { + return nil, err + } + if len(fa) == 0 { return nil, nil } - if len(k.Edges) == 0 { - na = append(na, f) - return na, nil - } - m = f.Map() - if m == nil { - return nil, nil + for _, f := range fa { + if len(k.Edges) == 0 { + na = append(na, f) + return na, nil + } + m = f.Map() + if m == nil { + return nil, nil + } } } diff --git a/d2oracle/edit.go b/d2oracle/edit.go index 4a8d4813d..e953a731d 100644 --- a/d2oracle/edit.go +++ b/d2oracle/edit.go @@ -493,7 +493,7 @@ func _set(g *d2graph.Graph, baseAST *d2ast.Map, key string, tag, value *string) noVal2 := &tmp2 noVal1.Value = d2ast.ValueBox{} noVal2.Value = d2ast.ValueBox{} - if noVal1.Equals(noVal2) { + if noVal1.D2OracleEquals(noVal2) { ref.MapKey.Value = mk.Value return nil } @@ -776,7 +776,7 @@ func _set(g *d2graph.Graph, baseAST *d2ast.Map, key string, tag, value *string) func appendUniqueMapKey(m *d2ast.Map, mk *d2ast.Key) { for _, n := range m.Nodes { - if n.MapKey != nil && n.MapKey.Equals(mk) { + if n.MapKey != nil && n.MapKey.D2OracleEquals(mk) { return } } @@ -1471,7 +1471,7 @@ func ensureNode(g *d2graph.Graph, excludedEdges []*d2ast.Edge, scopeObj *d2graph } for _, n := range scope.Nodes { - if n.MapKey != nil && n.MapKey.Equals(mk) { + if n.MapKey != nil && n.MapKey.D2OracleEquals(mk) { return } } @@ -1922,7 +1922,7 @@ func move(g *d2graph.Graph, boardPath []string, key, newKey string, includeDesce ref.Key.Path = ref.Key.Path[ref.KeyPathIndex:] exists := false for _, n := range toScope.Nodes { - if n.MapKey != nil && n.MapKey != ref.MapKey && n.MapKey.Equals(ref.MapKey) { + if n.MapKey != nil && n.MapKey != ref.MapKey && n.MapKey.D2OracleEquals(ref.MapKey) { exists = true } } diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json new file mode 100644 index 000000000..2052eed4c --- /dev/null +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json @@ -0,0 +1,458 @@ +{ + "graph": { + "name": "", + "isFolderOnly": false, + "ast": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,0:0:0-18:0:117", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,1:0:1-3:1:16", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,1:0:1-1:3:4", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,1:5:6-3:1:16", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,2:2:10-2:6:14", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,2:2:10-2:3:11", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,2:5:13-2:6:14", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,5:0:18-7:1:44", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,5:0:18-5:3:21", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,5:0:18-5:3:21", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,5:5:23-7:1:44", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,6:2:27-6:17:42", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,9:0:46-12:1:82", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,9:0:46-9:5:51", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,9:0:46-9:5:51", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,9:7:53-12:1:82", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,10:2:57-10:18:73", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,10:2:57-10:7:62", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,10:9:64-10:18:73", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,11:2:76-11:6:80", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,11:2:76-11:3:77", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,11:2:76-11:3:77", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,11:5:79-11:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,14:0:84-17:1:116", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,14:0:84-14:5:89", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,14:0:84-14:5:89", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,14:7:91-17:1:116", + "nodes": [ + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,15:2:95-15:14:107", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,15:2:95-15:7:100", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,15:2:95-15:7:100", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,15:9:102-15:14:107", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + } + }, + { + "map_key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,16:2:110-16:6:114", + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,16:2:110-16:3:111", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,16:2:110-16:3:111", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,16:5:113-16:6:114", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + } + ] + } + } + } + } + ] + }, + "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": "table", + "id_val": "table", + "references": [ + { + "key": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,9:0:46-9:5:51", + "path": [ + { + "unquoted_string": { + "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.d2,9:0:46-9:5:51", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + } + } + ] + }, + "key_path_index": 0, + "map_key_edge_index": -1 + } + ], + "sql_table": { + "columns": [ + { + "name": { + "label": "a", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0 + }, + "type": { + "label": "b", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0 + }, + "constraint": null, + "reference": "" + } + ] + }, + "attributes": { + "label": { + "value": "table" + }, + "labelDimensions": { + "width": 0, + "height": 0 + }, + "style": { + "fill": { + "value": "red" + } + }, + "near_key": null, + "shape": { + "value": "sql_table" + }, + "direction": { + "value": "" + }, + "constraint": null + }, + "zIndex": 0 + } + ] + }, + "err": null +} diff --git a/testdata/d2ir/TestCompile/classes/basic.exp.json b/testdata/d2ir/TestCompile/classes/basic.exp.json index ee64de956..86e555a27 100644 --- a/testdata/d2ir/TestCompile/classes/basic.exp.json +++ b/testdata/d2ir/TestCompile/classes/basic.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -165,7 +166,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -255,7 +257,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -363,7 +366,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -500,7 +504,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/inherited.exp.json b/testdata/d2ir/TestCompile/classes/inherited.exp.json index 2d6741f30..1cce8f672 100644 --- a/testdata/d2ir/TestCompile/classes/inherited.exp.json +++ b/testdata/d2ir/TestCompile/classes/inherited.exp.json @@ -108,7 +108,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -198,7 +199,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -306,7 +308,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -443,7 +446,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -563,7 +567,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -653,7 +658,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -761,7 +767,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -898,7 +905,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1018,7 +1026,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1108,7 +1117,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1216,7 +1226,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1324,7 +1335,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1414,7 +1426,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1522,7 +1535,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1659,7 +1673,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1790,7 +1805,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1847,7 +1863,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2036,7 +2053,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2152,7 +2170,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2242,7 +2261,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2350,7 +2370,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2458,7 +2479,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2548,7 +2570,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2656,7 +2679,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2793,7 +2817,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2924,7 +2949,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2981,7 +3007,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -3038,7 +3065,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3125,7 +3153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -3241,7 +3270,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3331,7 +3361,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3439,7 +3470,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -3547,7 +3579,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3631,7 +3664,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3721,7 +3755,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3805,7 +3840,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3913,7 +3949,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4015,7 +4052,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4152,7 +4190,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4283,7 +4322,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4414,7 +4454,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -4471,7 +4512,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -4528,7 +4570,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4580,7 +4623,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4769,7 +4813,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -4885,7 +4930,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4975,7 +5021,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -5083,7 +5130,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -5191,7 +5239,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5275,7 +5324,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -5365,7 +5415,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5449,7 +5500,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -5557,7 +5609,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5659,7 +5712,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -5796,7 +5850,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5927,7 +5982,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -6058,7 +6114,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -6115,7 +6172,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -6167,7 +6225,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -6224,7 +6283,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -6276,7 +6336,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -6341,7 +6402,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -6453,7 +6515,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -6543,7 +6606,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -6651,7 +6715,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -6759,7 +6824,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -6843,7 +6909,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -6933,7 +7000,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -7017,7 +7085,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -7125,7 +7194,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -7227,7 +7297,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -7364,7 +7435,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -7495,7 +7567,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -7626,7 +7699,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -7713,7 +7787,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -7829,7 +7904,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -7997,7 +8073,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -8554,7 +8631,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -9140,7 +9218,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -9755,7 +9834,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/layer-modify.exp.json b/testdata/d2ir/TestCompile/classes/layer-modify.exp.json index 0cc411490..a3cb58791 100644 --- a/testdata/d2ir/TestCompile/classes/layer-modify.exp.json +++ b/testdata/d2ir/TestCompile/classes/layer-modify.exp.json @@ -108,7 +108,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -198,7 +199,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -306,7 +308,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -443,7 +446,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -563,7 +567,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -707,7 +712,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -797,7 +803,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -925,7 +932,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1033,7 +1041,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1161,7 +1170,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1298,7 +1308,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1428,7 +1439,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1587,7 +1599,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/merge.exp.json b/testdata/d2ir/TestCompile/classes/merge.exp.json index af3cf33f5..b192ca8a3 100644 --- a/testdata/d2ir/TestCompile/classes/merge.exp.json +++ b/testdata/d2ir/TestCompile/classes/merge.exp.json @@ -108,7 +108,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -198,7 +199,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -268,7 +270,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -405,7 +408,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -571,7 +575,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -691,7 +696,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -781,7 +787,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -851,7 +858,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -909,7 +917,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1046,7 +1055,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1133,7 +1143,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1299,7 +1310,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1450,7 +1462,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1630,7 +1643,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/classes/nested.exp.json b/testdata/d2ir/TestCompile/classes/nested.exp.json index dde7b34e0..007eecf1b 100644 --- a/testdata/d2ir/TestCompile/classes/nested.exp.json +++ b/testdata/d2ir/TestCompile/classes/nested.exp.json @@ -108,7 +108,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -198,7 +199,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -306,7 +308,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -443,7 +446,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -516,7 +520,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -628,7 +633,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -718,7 +724,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -826,7 +833,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -963,7 +971,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1050,7 +1059,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1166,7 +1176,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1278,7 +1289,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1368,7 +1380,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1476,7 +1489,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1613,7 +1627,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1758,7 +1773,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1932,7 +1948,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/chain.exp.json b/testdata/d2ir/TestCompile/edges/chain.exp.json index b3aec64de..0500f467b 100644 --- a/testdata/d2ir/TestCompile/edges/chain.exp.json +++ b/testdata/d2ir/TestCompile/edges/chain.exp.json @@ -186,7 +186,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -376,7 +377,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -561,7 +563,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -751,7 +754,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -936,7 +940,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1126,7 +1131,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1304,7 +1310,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1480,7 +1487,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1656,7 +1664,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/nested.exp.json b/testdata/d2ir/TestCompile/edges/nested.exp.json index dd69ea403..5be013c80 100644 --- a/testdata/d2ir/TestCompile/edges/nested.exp.json +++ b/testdata/d2ir/TestCompile/edges/nested.exp.json @@ -171,7 +171,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -343,7 +344,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -518,7 +520,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -690,7 +693,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -840,7 +844,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/root.exp.json b/testdata/d2ir/TestCompile/edges/root.exp.json index 0b20726a8..2c986a481 100644 --- a/testdata/d2ir/TestCompile/edges/root.exp.json +++ b/testdata/d2ir/TestCompile/edges/root.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -332,7 +334,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/edges/underscore.exp.json b/testdata/d2ir/TestCompile/edges/underscore.exp.json index 5f506aea1..bdb82ef60 100644 --- a/testdata/d2ir/TestCompile/edges/underscore.exp.json +++ b/testdata/d2ir/TestCompile/edges/underscore.exp.json @@ -138,7 +138,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -259,7 +260,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -408,7 +410,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -535,7 +538,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/array.exp.json b/testdata/d2ir/TestCompile/fields/array.exp.json index 4587fa35e..d648144d6 100644 --- a/testdata/d2ir/TestCompile/fields/array.exp.json +++ b/testdata/d2ir/TestCompile/fields/array.exp.json @@ -119,7 +119,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/label.exp.json b/testdata/d2ir/TestCompile/fields/label.exp.json index a4503c572..5c7aa801d 100644 --- a/testdata/d2ir/TestCompile/fields/label.exp.json +++ b/testdata/d2ir/TestCompile/fields/label.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/nested.exp.json b/testdata/d2ir/TestCompile/fields/nested.exp.json index 44377bd15..3dfc1f981 100644 --- a/testdata/d2ir/TestCompile/fields/nested.exp.json +++ b/testdata/d2ir/TestCompile/fields/nested.exp.json @@ -100,7 +100,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -190,7 +191,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/primary/nested.exp.json b/testdata/d2ir/TestCompile/fields/primary/nested.exp.json index 2397dbeac..9388dc418 100644 --- a/testdata/d2ir/TestCompile/fields/primary/nested.exp.json +++ b/testdata/d2ir/TestCompile/fields/primary/nested.exp.json @@ -72,7 +72,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -191,7 +192,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -310,7 +312,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/primary/root.exp.json b/testdata/d2ir/TestCompile/fields/primary/root.exp.json index 5f418d72b..13a6aa1ab 100644 --- a/testdata/d2ir/TestCompile/fields/primary/root.exp.json +++ b/testdata/d2ir/TestCompile/fields/primary/root.exp.json @@ -68,7 +68,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -165,7 +166,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/fields/root.exp.json b/testdata/d2ir/TestCompile/fields/root.exp.json index 94688803b..619b7fcc4 100644 --- a/testdata/d2ir/TestCompile/fields/root.exp.json +++ b/testdata/d2ir/TestCompile/fields/root.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/array.exp.json b/testdata/d2ir/TestCompile/filters/array.exp.json index 68be20b30..1e379fa23 100644 --- a/testdata/d2ir/TestCompile/filters/array.exp.json +++ b/testdata/d2ir/TestCompile/filters/array.exp.json @@ -111,7 +111,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -174,7 +175,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -268,7 +270,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -353,7 +356,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -468,7 +472,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -583,7 +588,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -646,7 +652,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -761,7 +768,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -876,7 +884,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -939,7 +948,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1033,7 +1043,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -1118,7 +1129,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -1233,7 +1245,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/base.exp.json b/testdata/d2ir/TestCompile/filters/base.exp.json index 3179710ed..a8e519a36 100644 --- a/testdata/d2ir/TestCompile/filters/base.exp.json +++ b/testdata/d2ir/TestCompile/filters/base.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -141,7 +142,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -238,7 +240,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -320,7 +323,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -383,7 +387,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -461,7 +466,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -558,7 +564,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/edge.exp.json b/testdata/d2ir/TestCompile/filters/edge.exp.json index 2fd9f86f2..836b33ce8 100644 --- a/testdata/d2ir/TestCompile/filters/edge.exp.json +++ b/testdata/d2ir/TestCompile/filters/edge.exp.json @@ -206,7 +206,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -317,7 +318,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -568,7 +570,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -819,7 +822,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1070,7 +1074,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1321,7 +1326,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1531,7 +1537,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1642,7 +1649,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1763,7 +1771,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1848,7 +1857,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1933,7 +1943,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -2023,7 +2034,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2108,7 +2120,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2193,7 +2206,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2297,7 +2311,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2382,7 +2397,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2467,7 +2483,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -2557,7 +2574,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2642,7 +2660,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2727,7 +2746,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2805,7 +2825,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2867,7 +2888,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -3053,7 +3075,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -3279,7 +3302,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -3505,7 +3529,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3611,7 +3636,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -3837,7 +3863,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -4063,7 +4090,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/filters/label-filter.exp.json b/testdata/d2ir/TestCompile/filters/label-filter.exp.json deleted file mode 100644 index 5c21b7858..000000000 --- a/testdata/d2ir/TestCompile/filters/label-filter.exp.json +++ /dev/null @@ -1,4654 +0,0 @@ -{ - "fields": [ - { - "name": "x", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,9:17:80-9:18:81", - "raw": "1", - "value": "1" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:18:81", - "key": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,9:17:80-9:18:81", - "raw": "1", - "value": "1" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:18:81", - "key": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:15:78", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:2:65-9:7:70", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,9:8:71-9:15:78", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,9:17:80-9:18:81", - "raw": "1", - "value": "1" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", - "key": { - "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,1:0:1-1:1:2", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - }, - "from_glob": false - } - ] - }, - { - "name": "y", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", - "key": { - "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,2:0:3-2:1:4", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - }, - "from_glob": false - } - ] - }, - { - "name": "p", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,3:3:8-3:4:9", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - }, - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,13:17:118-13:20:121", - "raw": "0.5", - "value": "1/2" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:20:121", - "key": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,13:17:118-13:20:121", - "raw": "0.5", - "value": "1/2" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:20:121", - "key": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:15:116", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:2:103-13:7:108", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,13:8:109-13:15:116", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,13:17:118-13:20:121", - "raw": "0.5", - "value": "1/2" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,3:0:5-3:4:9", - "key": { - "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,3:0:5-3:1:6", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,3:3:8-3:4:9", - "value": [ - { - "string": "p", - "raw_string": "p" - } - ] - } - } - } - }, - "from_glob": false - } - ] - }, - { - "name": "a", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", - "src": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:13:23", - "edges": [ - { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", - "src": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", - "value": [ - { - "string": "delta", - "raw_string": "delta" - } - ] - } - } - } - }, - "from_glob": false - } - ] - }, - { - "name": "z", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "opacity", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "context": { - "edge": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", - "src": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:13:23", - "edges": [ - { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", - "src": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", - "value": [ - { - "string": "delta", - "raw_string": "delta" - } - ] - } - } - } - }, - "from_glob": false - } - ] - } - ], - "edges": [ - { - "edge_id": { - "src_path": [ - "a" - ], - "src_arrow": false, - "dst_path": [ - "z" - ], - "dst_arrow": true, - "index": 0, - "glob": false - }, - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", - "value": [ - { - "string": "delta", - "raw_string": "delta" - } - ] - } - }, - "map": { - "fields": [ - { - "name": "target-arrowhead", - "composite": { - "fields": [ - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:32:186", - "key": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:32:186", - "key": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - }, - "from_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "context": { - "edge": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", - "src": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:13:23", - "edges": [ - { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:6:16", - "src": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:0:10-4:1:11", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:5:15-4:6:16", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,4:8:18-4:13:23", - "value": [ - { - "string": "delta", - "raw_string": "delta" - } - ] - } - } - } - }, - "from_glob": false - }, - { - "context": { - "edge": { - "range": "TestCompile/filters/label-filter.d2,15:1:125-15:7:131", - "src": { - "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - }, - "key": { - "range": "TestCompile/filters/label-filter.d2,15:0:124-18:1:188", - "edges": [ - { - "range": "TestCompile/filters/label-filter.d2,15:1:125-15:7:131", - "src": { - "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,15:1:125-15:2:126", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,15:6:130-15:7:131", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "edge_index": { - "range": "TestCompile/filters/label-filter.d2,15:8:132-15:11:135", - "int": null, - "glob": true - }, - "primary": {}, - "value": { - "map": { - "range": "TestCompile/filters/label-filter.d2,15:13:137-18:1:188", - "nodes": [ - { - "map_key": { - "range": "TestCompile/filters/label-filter.d2,16:1:140-16:14:153", - "ampersand": true, - "key": { - "range": "TestCompile/filters/label-filter.d2,16:2:141-16:7:146", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,16:2:141-16:7:146", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,16:9:148-16:14:153", - "value": [ - { - "string": "delta", - "raw_string": "delta" - } - ] - } - } - } - }, - { - "map_key": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:32:186", - "key": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:23:177", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:1:155-17:17:171", - "value": [ - { - "string": "target-arrowhead", - "raw_string": "target-arrowhead" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:18:172-17:23:177", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/filters/label-filter.d2,17:25:179-17:32:186", - "value": [ - { - "string": "diamond", - "raw_string": "diamond" - } - ] - } - } - } - } - ] - } - } - } - }, - "from_glob": false - } - ] - } - ] -} diff --git a/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json b/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json index 3004224a1..a6cb88ffd 100644 --- a/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json +++ b/testdata/d2ir/TestCompile/filters/label-filter/1.exp.json @@ -124,7 +124,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -204,223 +205,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -534,7 +320,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -614,7 +401,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -722,7 +510,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -830,7 +619,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -888,7 +678,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1016,223 +807,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -1346,7 +922,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1454,7 +1031,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1562,7 +1140,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1620,7 +1199,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1759,7 +1339,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1839,223 +1420,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -2169,7 +1535,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2249,7 +1616,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2357,7 +1725,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2465,7 +1834,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2533,7 +1903,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2661,223 +2032,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -2991,7 +2147,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3099,7 +2256,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3207,7 +2365,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3334,7 +2493,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -3462,223 +2622,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "key_path": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:20:45", - "key": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:15:40", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:0:25-6:1:26", - "value": [ - { - "string": "*", - "raw_string": "*" - } - ], - "pattern": [ - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:2:27-6:7:32", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/filters/label-filter/1.d2,6:8:33-6:15:40", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "number": { - "range": "TestCompile/filters/label-filter/1.d2,6:17:42-6:20:45", - "raw": "0.1", - "value": "1/10" - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -3792,7 +2737,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3900,7 +2846,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4008,7 +2955,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4135,7 +3083,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4267,7 +3216,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -4357,7 +3307,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -4459,7 +3410,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -4646,7 +3598,8 @@ } } }, - "from_glob": false + "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 facfd1f1f..6f7b9c956 100644 --- a/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json +++ b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json @@ -122,7 +122,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -233,7 +234,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -359,7 +361,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -470,7 +473,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -686,7 +690,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -766,7 +771,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -938,7 +944,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1018,7 +1025,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1196,7 +1204,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1276,7 +1285,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1448,7 +1458,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1528,7 +1539,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1630,7 +1642,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -1766,7 +1779,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -1949,7 +1963,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -2085,7 +2100,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -2268,7 +2284,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2471,7 +2488,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2649,7 +2667,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2741,7 +2760,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -2877,7 +2897,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -3060,7 +3081,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/filters/order.exp.json b/testdata/d2ir/TestCompile/filters/order.exp.json index 78ee0cbd7..79950f25e 100644 --- a/testdata/d2ir/TestCompile/filters/order.exp.json +++ b/testdata/d2ir/TestCompile/filters/order.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -141,7 +142,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -238,7 +240,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -320,7 +323,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -383,7 +387,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -461,7 +466,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -558,7 +564,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/boards.exp.json b/testdata/d2ir/TestCompile/imports/boards.exp.json index ea018af8a..a9de84ecf 100644 --- a/testdata/d2ir/TestCompile/imports/boards.exp.json +++ b/testdata/d2ir/TestCompile/imports/boards.exp.json @@ -99,7 +99,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -189,7 +190,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -300,7 +302,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -390,7 +393,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -455,7 +459,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -532,7 +537,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -638,7 +644,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -715,7 +722,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -821,7 +829,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/array.exp.json b/testdata/d2ir/TestCompile/imports/nested/array.exp.json index 343595700..c35c86882 100644 --- a/testdata/d2ir/TestCompile/imports/nested/array.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/array.exp.json @@ -98,7 +98,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/map.exp.json b/testdata/d2ir/TestCompile/imports/nested/map.exp.json index 6834aea20..2377f1914 100644 --- a/testdata/d2ir/TestCompile/imports/nested/map.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/map.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -156,7 +157,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -244,7 +246,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json b/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json index 7f245892d..7fb4ed533 100644 --- a/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/scalar.exp.json @@ -94,7 +94,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/spread.exp.json b/testdata/d2ir/TestCompile/imports/nested/spread.exp.json index 63803460c..6250a7662 100644 --- a/testdata/d2ir/TestCompile/imports/nested/spread.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/spread.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -110,7 +111,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json b/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json index 6ec12f9df..d712911fe 100644 --- a/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json +++ b/testdata/d2ir/TestCompile/imports/nested/spread_primary.exp.json @@ -68,7 +68,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -125,7 +126,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -220,7 +222,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/spread.exp.json b/testdata/d2ir/TestCompile/imports/spread.exp.json index e8d2264bb..db398ce59 100644 --- a/testdata/d2ir/TestCompile/imports/spread.exp.json +++ b/testdata/d2ir/TestCompile/imports/spread.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json b/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json index f0770efbc..0218343fa 100644 --- a/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json +++ b/testdata/d2ir/TestCompile/imports/steps-inheritence.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -118,7 +119,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -175,7 +177,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -252,7 +255,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -313,7 +317,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -370,7 +375,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -447,7 +453,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -595,7 +602,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -660,7 +668,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -717,7 +726,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -794,7 +804,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -855,7 +866,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -912,7 +924,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -969,7 +982,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1046,7 +1060,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1194,7 +1209,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/value.exp.json b/testdata/d2ir/TestCompile/imports/value.exp.json index 3ea82ca07..703c3422a 100644 --- a/testdata/d2ir/TestCompile/imports/value.exp.json +++ b/testdata/d2ir/TestCompile/imports/value.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -156,7 +157,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -233,7 +235,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/vars/1.exp.json b/testdata/d2ir/TestCompile/imports/vars/1.exp.json index c7a748bd9..b3f70120c 100644 --- a/testdata/d2ir/TestCompile/imports/vars/1.exp.json +++ b/testdata/d2ir/TestCompile/imports/vars/1.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -162,7 +163,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -255,7 +257,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/vars/2.exp.json b/testdata/d2ir/TestCompile/imports/vars/2.exp.json index 31f57b470..c1368afb1 100644 --- a/testdata/d2ir/TestCompile/imports/vars/2.exp.json +++ b/testdata/d2ir/TestCompile/imports/vars/2.exp.json @@ -70,7 +70,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -128,7 +129,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -221,7 +223,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -308,7 +311,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -397,7 +401,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/imports/vars/3.exp.json b/testdata/d2ir/TestCompile/imports/vars/3.exp.json index deaa81819..68e6c6c4e 100644 --- a/testdata/d2ir/TestCompile/imports/vars/3.exp.json +++ b/testdata/d2ir/TestCompile/imports/vars/3.exp.json @@ -70,7 +70,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -128,7 +129,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -221,7 +223,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -308,7 +311,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -397,7 +401,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json b/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json index 13ff5bce7..668820d84 100644 --- a/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json +++ b/testdata/d2ir/TestCompile/layers/errs/4/good_edge.exp.json @@ -230,7 +230,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -451,7 +452,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -643,7 +645,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -869,7 +872,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1090,7 +1094,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1317,7 +1322,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1538,7 +1544,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/layers/root.exp.json b/testdata/d2ir/TestCompile/layers/root.exp.json index 9370da3f7..eda3c52a7 100644 --- a/testdata/d2ir/TestCompile/layers/root.exp.json +++ b/testdata/d2ir/TestCompile/layers/root.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -345,7 +347,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -447,7 +450,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -549,7 +553,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -658,7 +663,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -796,7 +802,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -900,7 +907,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 42a332ada..0ee3a9385 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -144,367 +144,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -630,7 +271,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -750,7 +392,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -870,7 +513,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -990,7 +634,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -1100,7 +745,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1194,7 +840,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1288,7 +935,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1382,7 +1030,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1476,7 +1125,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1534,7 +1184,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1674,367 +1325,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2152,7 +1444,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2259,7 +1552,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2366,7 +1660,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2473,7 +1768,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2580,7 +1876,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2687,7 +1984,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2813,7 +2111,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2920,7 +2219,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3027,7 +2327,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3134,7 +2435,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3254,7 +2556,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3361,7 +2664,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3481,7 +2785,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3588,7 +2893,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3708,7 +3014,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3815,7 +3122,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -3925,7 +3233,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4019,7 +3328,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4113,7 +3423,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4207,7 +3518,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4301,7 +3613,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4388,7 +3701,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -4580,247 +3894,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4986,7 +4061,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -5106,7 +4182,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -5226,7 +4303,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5284,7 +4362,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -5371,7 +4450,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5530,7 +4610,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5646,7 +4727,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5805,7 +4887,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json index 5fe90243b..2d6bb3a91 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -175,7 +176,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -292,7 +294,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -409,7 +412,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -466,7 +470,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -523,7 +528,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -633,7 +639,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -741,7 +748,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -849,7 +857,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json index 1dfd83ec0..dc3fcc423 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json @@ -170,7 +170,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -335,7 +336,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -500,7 +502,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -558,7 +561,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -710,7 +714,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -857,7 +862,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1004,7 +1010,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -1211,7 +1218,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1376,7 +1384,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1541,7 +1550,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1599,7 +1609,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1776,7 +1787,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1942,7 +1954,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2028,7 +2041,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2154,7 +2168,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2270,7 +2285,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2396,7 +2412,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2537,7 +2554,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json index 8627b7a66..37464f81d 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json @@ -89,7 +89,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -173,7 +174,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -257,7 +259,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -315,7 +318,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -408,7 +412,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -492,7 +497,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -550,7 +556,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -643,7 +650,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -701,7 +709,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json index 5c9fd8757..3b8756907 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json @@ -184,239 +184,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -578,7 +347,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -694,7 +464,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -810,7 +581,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -927,7 +699,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1107,239 +880,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", - "key": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:13:14", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", - "value": [ - { - "string": "red", - "raw_string": "red" - } - ] - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1501,7 +1043,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1617,7 +1160,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1733,7 +1277,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1850,7 +1395,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1954,7 +1500,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2063,7 +1610,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2218,7 +1766,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2357,7 +1906,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2512,7 +2062,8 @@ } } }, - "from_glob": true + "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 ae0c32c69..e30ee4789 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/6.exp.json @@ -122,7 +122,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -233,7 +234,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -359,7 +361,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -470,7 +473,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -686,7 +690,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -858,7 +863,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1036,7 +1042,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1208,7 +1215,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1310,7 +1318,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -1446,7 +1455,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -1582,7 +1592,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -1785,7 +1796,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1963,7 +1975,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2055,7 +2068,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -2191,7 +2205,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json new file mode 100644 index 000000000..5d603a1ad --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json @@ -0,0 +1,1079 @@ +{ + "fields": [ + { + "name": "table", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:8:14-2:12:18", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:12:18", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:7:13", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:8:14-2:12:18", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:17:23", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:12:18", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:7:13", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:8:14-2:12:18", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:14:20-2:17:23", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:17:49", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:14:46-5:17:49", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:7:13", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:12:18", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:7:13", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:8:14-2:12:18", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:17:23", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:12:18", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:7:13", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:8:14-2:12:18", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,2:14:20-2:17:23", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:17:49", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:14:46-5:17:49", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:9:90-10:18:99", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:18:99", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:9:90-10:18:99", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "a", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:5:105-11:6:106", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:14:46-5:17:49", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:17:49", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:14:46-5:17:49", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:17:49", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:12:44", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:2:34-5:7:39", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:8:40-5:12:44", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,5:14:46-5:17:49", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:6:106", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:5:105-11:6:106", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:0:53-8:5:58", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:0:53-8:5:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:0:53-8:5:58", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:0:53-12:1:108", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:0:53-8:5:58", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:0:53-8:5:58", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/alixander-review/7.d2,8:7:60-12:1:108", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:18:99", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:2:83-10:7:88", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,10:9:90-10:18:99", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:6:106", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:2:102-11:3:103", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,11:5:105-11:6:106", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/8.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/8.exp.json new file mode 100644 index 000000000..8beb437d0 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/8.exp.json @@ -0,0 +1,869 @@ +{ + "fields": [ + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "c", + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "b" + ], + "src_arrow": false, + "dst_path": [ + "c" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "map": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "stroke", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:26:57-2:29:60", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:24:55", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:7:38", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:0:31-2:29:60", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:7:38", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:8:39-2:11:42", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:24:55", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:26:57-2:29:60", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:24:55", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:7:38", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:0:31-2:29:60", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:7:38", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:8:39-2:11:42", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:24:55", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:26:57-2:29:60", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:6:68", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:0:62-4:1:63", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,4:5:67-4:6:68", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:7:38", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:0:31-2:29:60", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:7:38", + "src": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:1:32-2:2:33", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:6:37-2:7:38", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:8:39-2:11:42", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:24:55", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:12:43-2:17:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:18:49-2:24:55", + "value": [ + { + "string": "stroke", + "raw_string": "stroke" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/8.d2,2:26:57-2:29:60", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ] +} diff --git a/testdata/d2ir/TestCompile/patterns/case/1.exp.json b/testdata/d2ir/TestCompile/patterns/case/1.exp.json index 45339a73c..5d27f6319 100644 --- a/testdata/d2ir/TestCompile/patterns/case/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/case/1.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/case/2.exp.json b/testdata/d2ir/TestCompile/patterns/case/2.exp.json index 345e90886..c0331792b 100644 --- a/testdata/d2ir/TestCompile/patterns/case/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/case/2.exp.json @@ -64,7 +64,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -132,7 +133,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json index 33284cbbf..5c880b983 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/1.exp.json @@ -140,7 +140,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -262,7 +263,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -342,7 +344,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -482,7 +485,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -604,7 +608,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -684,7 +689,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -820,7 +826,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -942,7 +949,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -1022,7 +1030,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1096,7 +1105,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json index 8a133ee07..0f421bb14 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -136,7 +137,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -218,7 +220,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -276,7 +279,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -358,7 +362,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -416,7 +421,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -498,7 +504,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -556,7 +563,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -646,7 +654,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -704,7 +713,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -786,7 +796,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -844,7 +855,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -926,7 +938,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -984,7 +997,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1066,7 +1080,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1124,7 +1139,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1206,7 +1222,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1264,7 +1281,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1373,7 +1391,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1513,7 +1532,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1622,7 +1642,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1762,7 +1783,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -1827,7 +1849,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1936,7 +1959,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2045,7 +2069,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json index 537f1bd20..280e2698a 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/edge-no-container.exp.json @@ -57,7 +57,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -118,7 +119,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -175,7 +177,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -285,7 +288,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -447,7 +451,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -606,7 +611,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -754,7 +760,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -891,7 +898,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1027,7 +1035,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1163,7 +1172,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json index fb629ad1a..1aec90b3b 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/edge/1.exp.json @@ -57,7 +57,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -114,7 +115,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -224,7 +226,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -367,7 +370,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -428,7 +432,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -515,7 +520,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -674,7 +680,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -811,7 +818,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json index 0e397a6c2..694a4faf2 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/edge/2.exp.json @@ -164,7 +164,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -222,7 +223,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -370,7 +372,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -507,7 +510,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json index 40f8930af..03bd3132f 100644 --- a/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge-glob-index.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -223,7 +224,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -334,7 +336,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -487,7 +490,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -640,7 +644,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -793,7 +798,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -946,7 +952,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1099,7 +1106,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1252,7 +1260,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1405,7 +1414,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1558,7 +1568,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1711,7 +1722,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1827,7 +1839,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1938,7 +1951,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2049,7 +2063,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2202,7 +2217,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2355,7 +2371,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2508,7 +2525,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2661,7 +2679,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2814,7 +2833,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2967,7 +2987,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3120,7 +3141,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3273,7 +3295,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3426,7 +3449,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -3627,7 +3651,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3791,7 +3816,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3955,7 +3981,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -4125,7 +4152,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -4289,7 +4317,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -4453,7 +4482,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -4545,7 +4575,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -4673,7 +4704,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -4801,7 +4833,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -4929,7 +4962,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -5128,7 +5162,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -5292,7 +5327,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -5456,7 +5492,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -5626,7 +5663,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -5790,7 +5828,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -5954,7 +5993,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -6046,7 +6086,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -6174,7 +6215,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -6302,7 +6344,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -6430,7 +6473,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -6629,7 +6673,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -6793,7 +6838,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -6957,7 +7003,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -7127,7 +7174,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -7291,7 +7339,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -7455,7 +7504,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -7547,7 +7597,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -7675,7 +7726,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -7803,7 +7855,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -7931,7 +7984,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json b/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json index 2710e14e0..687051252 100644 --- a/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge-nexus.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -110,7 +111,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -167,7 +169,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -224,7 +227,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -346,7 +350,8 @@ "value": {} } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -456,7 +461,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -564,7 +570,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -672,7 +679,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -780,7 +788,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge/1.exp.json b/testdata/d2ir/TestCompile/patterns/edge/1.exp.json index f8934f6a8..e961e1ac3 100644 --- a/testdata/d2ir/TestCompile/patterns/edge/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge/1.exp.json @@ -53,7 +53,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -110,7 +111,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -230,7 +232,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -348,7 +351,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge/2.exp.json b/testdata/d2ir/TestCompile/patterns/edge/2.exp.json index 83eb78b88..02950f5d0 100644 --- a/testdata/d2ir/TestCompile/patterns/edge/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge/2.exp.json @@ -79,7 +79,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -158,7 +159,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -298,7 +300,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -436,7 +439,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -515,7 +519,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -589,7 +594,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/edge/3.exp.json b/testdata/d2ir/TestCompile/patterns/edge/3.exp.json index 511b7ae9c..8d19eaaa5 100644 --- a/testdata/d2ir/TestCompile/patterns/edge/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/edge/3.exp.json @@ -79,7 +79,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -158,7 +159,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -338,7 +340,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -516,7 +519,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -595,7 +599,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -669,7 +674,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/escaped.exp.json b/testdata/d2ir/TestCompile/patterns/escaped.exp.json index a616540f4..8048e9a5a 100644 --- a/testdata/d2ir/TestCompile/patterns/escaped.exp.json +++ b/testdata/d2ir/TestCompile/patterns/escaped.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -230,7 +232,8 @@ } } }, - "from_glob": false + "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 2714b1b6b..1d9dceda1 100644 --- a/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json +++ b/testdata/d2ir/TestCompile/patterns/glob-edge-glob-index.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -223,7 +224,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -334,7 +336,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -450,7 +453,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -561,7 +565,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -672,7 +677,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -783,7 +789,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -942,7 +949,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1101,7 +1109,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1260,7 +1269,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1419,7 +1429,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1578,7 +1589,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1737,7 +1749,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -1896,7 +1909,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2055,7 +2069,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2214,7 +2229,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2373,7 +2389,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2489,7 +2506,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2696,7 +2714,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2866,7 +2885,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3036,7 +3056,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -3212,7 +3233,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3382,7 +3404,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -3552,7 +3575,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -3644,7 +3668,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -3778,7 +3803,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -3912,7 +3938,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -4046,7 +4073,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -4251,7 +4279,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -4421,7 +4450,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -4591,7 +4621,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -4767,7 +4798,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -4937,7 +4969,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -5107,7 +5140,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -5199,7 +5233,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -5333,7 +5368,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -5467,7 +5503,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -5601,7 +5638,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -5806,7 +5844,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -5976,7 +6015,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -6146,7 +6186,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -6322,7 +6363,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -6492,7 +6534,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -6662,7 +6705,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -6754,7 +6798,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -6888,7 +6933,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -7022,7 +7068,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false }, { "context": { @@ -7156,7 +7203,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -7361,7 +7409,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -7537,7 +7586,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -7629,7 +7679,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -7763,7 +7814,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json b/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json index 8547094f3..c25616563 100644 --- a/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/nested/prefix-suffix/3.exp.json @@ -126,7 +126,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -238,7 +239,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -384,7 +386,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -496,7 +499,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -626,7 +630,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -738,7 +743,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -884,7 +890,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -996,7 +1003,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/1.exp.json b/testdata/d2ir/TestCompile/patterns/override/1.exp.json index 19da6353a..e0e6fb8fd 100644 --- a/testdata/d2ir/TestCompile/patterns/override/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/1.exp.json @@ -136,7 +136,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -252,7 +253,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -368,7 +370,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -490,7 +493,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -606,7 +610,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -722,7 +727,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -780,7 +786,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/2.exp.json b/testdata/d2ir/TestCompile/patterns/override/2.exp.json index ff58cb9b5..6f8405ef3 100644 --- a/testdata/d2ir/TestCompile/patterns/override/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/2.exp.json @@ -188,7 +188,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -304,7 +305,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -420,247 +422,8 @@ } } }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -826,7 +589,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -942,7 +706,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1058,7 +823,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1178,7 +944,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1298,7 +1065,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1356,7 +1124,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1509,7 +1278,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1668,7 +1438,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1850,7 +1621,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2009,7 +1781,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/3.exp.json b/testdata/d2ir/TestCompile/patterns/override/3.exp.json index b7bf800cc..9645435f8 100644 --- a/testdata/d2ir/TestCompile/patterns/override/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/3.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -360,7 +362,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -476,7 +479,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -724,7 +728,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -919,7 +924,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1011,7 +1017,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -1201,7 +1208,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -1371,7 +1379,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1486,7 +1495,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1679,7 +1689,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1832,7 +1843,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1985,7 +1997,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2130,7 +2143,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2323,7 +2337,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2476,7 +2491,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2629,7 +2645,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2894,7 +2911,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3087,7 +3105,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3240,7 +3259,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3393,7 +3413,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3687,7 +3708,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3880,7 +3902,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4033,7 +4056,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -4186,7 +4210,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4389,7 +4414,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4481,7 +4507,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -4626,7 +4653,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/4.exp.json b/testdata/d2ir/TestCompile/patterns/override/4.exp.json index 90e7d0802..72372ff1a 100644 --- a/testdata/d2ir/TestCompile/patterns/override/4.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/4.exp.json @@ -151,7 +151,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -306,7 +307,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -401,7 +403,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -571,7 +574,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -702,7 +706,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -847,7 +852,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/5.exp.json b/testdata/d2ir/TestCompile/patterns/override/5.exp.json index 57c08fa6a..e73c6eed9 100644 --- a/testdata/d2ir/TestCompile/patterns/override/5.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/5.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -431,7 +433,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -601,7 +604,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false } ] } @@ -693,7 +697,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -838,7 +843,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -983,7 +989,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json b/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json index 6e28bd0a3..db2c68dc4 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix-suffix.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json b/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json index 9186b1f98..32d2fc713 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix-suffix/2.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json b/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json index ab4acb574..dfb1a9f64 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix-suffix/3.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prefix.exp.json b/testdata/d2ir/TestCompile/patterns/prefix.exp.json index d9d0cb092..920eddc82 100644 --- a/testdata/d2ir/TestCompile/patterns/prefix.exp.json +++ b/testdata/d2ir/TestCompile/patterns/prefix.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/prevent-chain-recursion.exp.json b/testdata/d2ir/TestCompile/patterns/prevent-chain-recursion.exp.json new file mode 100644 index 000000000..d75403066 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/prevent-chain-recursion.exp.json @@ -0,0 +1,1083 @@ +{ + "fields": [ + { + "name": "one", + "composite": { + "fields": [ + { + "name": "c", + "primary": { + "value": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:5:13-2:6:14", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:6:14", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:5:13-2:6:14", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,9:0:46-9:3:49", + "value": [ + { + "string": "one", + "raw_string": "one" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,9:0:46-9:3:49", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,9:0:46-9:3:49", + "value": [ + { + "string": "one", + "raw_string": "one" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,9:0:46-9:3:49", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,9:0:46-9:3:49", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,9:0:46-9:3:49", + "value": [ + { + "string": "one", + "raw_string": "one" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "two", + "composite": { + "fields": [ + { + "name": "c", + "primary": { + "value": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:5:13-2:6:14", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:6:14", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:2:10-2:3:11", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,2:5:13-2:6:14", + "value": [ + { + "string": "d", + "raw_string": "d" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,10:0:50-10:3:53", + "value": [ + { + "string": "two", + "raw_string": "two" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,10:0:50-10:3:53", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,10:0:50-10:3:53", + "value": [ + { + "string": "two", + "raw_string": "two" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,10:0:50-10:3:53", + "key": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,10:0:50-10:3:53", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/prevent-chain-recursion.d2,10:0:50-10:3:53", + "value": [ + { + "string": "two", + "raw_string": "two" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/reserved.exp.json b/testdata/d2ir/TestCompile/patterns/reserved.exp.json index bbce28ec2..196237058 100644 --- a/testdata/d2ir/TestCompile/patterns/reserved.exp.json +++ b/testdata/d2ir/TestCompile/patterns/reserved.exp.json @@ -82,7 +82,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -179,7 +180,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -305,7 +307,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -362,7 +365,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -419,7 +423,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -476,7 +481,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -613,7 +619,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -748,7 +755,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -883,7 +891,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1018,7 +1027,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1153,7 +1163,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1288,7 +1299,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/scenarios.exp.json b/testdata/d2ir/TestCompile/patterns/scenarios.exp.json index addb06ac4..a352aa25a 100644 --- a/testdata/d2ir/TestCompile/patterns/scenarios.exp.json +++ b/testdata/d2ir/TestCompile/patterns/scenarios.exp.json @@ -72,7 +72,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -140,7 +141,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -208,7 +210,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -276,7 +279,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -432,7 +436,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -617,7 +622,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -685,7 +691,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -753,7 +760,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -821,7 +829,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -889,7 +898,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1017,7 +1027,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1143,7 +1154,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1269,7 +1281,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1395,7 +1408,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1521,7 +1535,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1647,7 +1662,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1773,7 +1789,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -1899,7 +1916,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2025,7 +2043,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2151,7 +2170,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2277,7 +2297,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2403,7 +2424,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2525,7 +2547,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2647,7 +2670,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2769,7 +2793,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -2891,7 +2916,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3013,7 +3039,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3135,7 +3162,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3257,7 +3285,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3379,7 +3408,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3501,7 +3531,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3623,7 +3654,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3745,7 +3777,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] }, @@ -3867,7 +3900,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json index a9e6f9b64..652ec7ac1 100644 --- a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json @@ -82,7 +82,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -162,7 +163,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -244,7 +246,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -324,7 +327,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -406,7 +410,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -486,7 +491,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -568,7 +574,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -648,7 +655,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -773,7 +781,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -847,7 +856,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -966,7 +976,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1040,7 +1051,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1159,7 +1171,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1233,7 +1246,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1352,7 +1366,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1426,7 +1441,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1545,7 +1561,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1664,7 +1681,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1783,7 +1801,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -1877,7 +1896,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1957,7 +1977,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2039,7 +2060,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2119,7 +2141,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2201,7 +2224,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2281,7 +2305,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2363,7 +2388,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2443,7 +2469,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2525,7 +2552,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2605,7 +2633,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2730,7 +2759,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": false }, { "string": { @@ -2804,7 +2834,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2923,7 +2954,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2997,7 +3029,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3116,7 +3149,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3190,7 +3224,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3309,7 +3344,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3383,7 +3419,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3502,7 +3539,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -3576,7 +3614,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3735,7 +3774,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3855,7 +3895,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4013,7 +4054,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4133,7 +4175,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4291,7 +4334,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -4382,7 +4426,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4462,7 +4507,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4582,7 +4628,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4702,7 +4749,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/suffix.exp.json b/testdata/d2ir/TestCompile/patterns/suffix.exp.json index 50d92a2f8..b0cb6cbeb 100644 --- a/testdata/d2ir/TestCompile/patterns/suffix.exp.json +++ b/testdata/d2ir/TestCompile/patterns/suffix.exp.json @@ -74,7 +74,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -152,7 +153,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json b/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json new file mode 100644 index 000000000..6fb4df419 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json @@ -0,0 +1,988 @@ +{ + "fields": [ + { + "name": "table", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:18:73", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "a", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,11:5:79-11:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:6:80", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,11:5:79-11:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,9:0:46-9:5:51", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,9:0:46-9:5:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,9:0:46-9:5:51", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,9:0:46-12:1:82", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,9:0:46-9:5:51", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,9:0:46-9:5:51", + "value": [ + { + "string": "table", + "raw_string": "table" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/table-class-exception.d2,9:7:53-12:1:82", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:18:73", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:6:80", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,11:2:76-11:3:77", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,11:5:79-11:6:80", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "class", + "composite": { + "fields": [ + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,15:9:102-15:14:107", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:14:107", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,15:9:102-15:14:107", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "a", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,16:5:113-16:6:114", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:6:114", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,16:5:113-16:6:114", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,14:0:84-14:5:89", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,14:0:84-14:5:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,14:0:84-14:5:89", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,14:0:84-17:1:116", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,14:0:84-14:5:89", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,14:0:84-14:5:89", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/table-class-exception.d2,14:7:91-17:1:116", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:14:107", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,15:2:95-15:7:100", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,15:9:102-15:14:107", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:6:114", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,16:2:110-16:3:111", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,16:5:113-16:6:114", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index 9d27ec3e8..ca547e930 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -78,7 +78,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -136,7 +137,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -218,7 +220,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -276,7 +279,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -358,7 +362,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -416,7 +421,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -498,7 +504,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -556,7 +563,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -646,7 +654,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -708,7 +717,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -766,7 +776,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -848,7 +859,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -910,7 +922,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -968,7 +981,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1050,7 +1064,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1112,7 +1127,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1170,7 +1186,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1252,7 +1269,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1314,7 +1332,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1372,7 +1391,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1454,7 +1474,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1512,7 +1533,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1621,7 +1643,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -1765,7 +1788,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1874,7 +1898,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2018,7 +2043,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2108,7 +2134,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2166,7 +2193,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2275,7 +2303,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2419,7 +2448,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2528,7 +2558,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -2672,7 +2703,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index d4020736a..905ff2ec6 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -344,7 +346,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -460,7 +463,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -584,7 +588,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -700,7 +705,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -816,7 +822,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -932,7 +939,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1048,7 +1056,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1164,7 +1173,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1285,7 +1295,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1369,7 +1380,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1459,7 +1471,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -1543,7 +1556,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1635,7 +1649,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -1804,7 +1819,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -1998,7 +2014,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2117,7 +2134,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2201,7 +2219,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2291,7 +2310,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true }, { "string": { @@ -2375,7 +2395,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2467,7 +2488,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -2636,7 +2658,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true }, { "context": { @@ -2830,7 +2853,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2949,7 +2973,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3039,7 +3064,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3131,7 +3157,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -3325,7 +3352,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3456,7 +3484,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3633,7 +3662,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3765,7 +3795,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -3942,7 +3973,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -4066,7 +4098,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -4182,7 +4215,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4303,7 +4337,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4393,7 +4428,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4485,7 +4521,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -4679,7 +4716,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4810,7 +4848,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -4987,7 +5026,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5119,7 +5159,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -5296,7 +5337,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5417,7 +5459,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5507,7 +5550,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5599,7 +5643,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -5768,7 +5813,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -5887,7 +5933,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5977,7 +6024,8 @@ } } }, - "from_glob": true + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -6069,7 +6117,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -6238,7 +6287,8 @@ } } }, - "from_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/scenarios/edge.exp.json b/testdata/d2ir/TestCompile/scenarios/edge.exp.json index d9cefa0df..86c00ee6e 100644 --- a/testdata/d2ir/TestCompile/scenarios/edge.exp.json +++ b/testdata/d2ir/TestCompile/scenarios/edge.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -352,7 +354,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -501,7 +504,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -617,7 +621,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "string": { @@ -766,7 +771,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -959,7 +965,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1125,7 +1132,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1217,7 +1225,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false }, { "context": { @@ -1341,7 +1350,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1488,7 +1498,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1665,7 +1676,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1769,7 +1781,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/scenarios/root.exp.json b/testdata/d2ir/TestCompile/scenarios/root.exp.json index 058c75b24..93e644f22 100644 --- a/testdata/d2ir/TestCompile/scenarios/root.exp.json +++ b/testdata/d2ir/TestCompile/scenarios/root.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -352,7 +354,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -468,7 +471,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -577,7 +581,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -679,7 +684,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -781,7 +787,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -885,7 +892,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -993,7 +1001,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1113,7 +1122,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1229,7 +1239,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1286,7 +1297,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1390,7 +1402,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1476,7 +1489,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1666,7 +1680,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1770,7 +1785,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/steps/recursive.exp.json b/testdata/d2ir/TestCompile/steps/recursive.exp.json index 41f2e2656..595f96cc7 100644 --- a/testdata/d2ir/TestCompile/steps/recursive.exp.json +++ b/testdata/d2ir/TestCompile/steps/recursive.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -352,7 +354,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -468,7 +471,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -577,7 +581,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -679,7 +684,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -781,7 +787,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -885,7 +892,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -993,7 +1001,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1113,7 +1122,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1229,7 +1239,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1338,7 +1349,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1440,7 +1452,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1542,7 +1555,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1599,7 +1613,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1723,7 +1738,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1839,7 +1855,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1948,7 +1965,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2050,7 +2068,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2152,7 +2171,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2209,7 +2229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -2266,7 +2287,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2370,7 +2392,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2456,7 +2479,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2572,7 +2596,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2676,7 +2701,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2843,7 +2869,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3114,7 +3141,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -3218,7 +3246,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/steps/root.exp.json b/testdata/d2ir/TestCompile/steps/root.exp.json index f87f3cf67..62376b02f 100644 --- a/testdata/d2ir/TestCompile/steps/root.exp.json +++ b/testdata/d2ir/TestCompile/steps/root.exp.json @@ -112,7 +112,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -228,7 +229,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -352,7 +354,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -468,7 +471,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -577,7 +581,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -679,7 +684,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -781,7 +787,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -885,7 +892,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -993,7 +1001,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1113,7 +1122,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1229,7 +1239,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1338,7 +1349,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1440,7 +1452,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1542,7 +1555,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, @@ -1599,7 +1613,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1703,7 +1718,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1789,7 +1805,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -1979,7 +1996,8 @@ } } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -2083,7 +2101,8 @@ "value": {} } }, - "from_glob": false + "due_to_glob": false, + "due_to_lazy_glob": false } ] } From 47d671209a923bc26dde74e8cbe45ca8798ac760 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 20 Aug 2023 13:14:13 -0700 Subject: [PATCH 15/21] d2ir: More alex fixes --- d2ir/compile.go | 12 + d2ir/d2ir.go | 6 +- d2ir/filter_test.go | 20 + d2ir/pattern_test.go | 24 + .../TestCompile/filters/lazy-filter.exp.json | 773 ++++++++++++++++++ .../TestCompile/patterns/override/6.exp.json | 477 +++++++++++ 6 files changed, 1309 insertions(+), 3 deletions(-) create mode 100644 testdata/d2ir/TestCompile/filters/lazy-filter.exp.json create mode 100644 testdata/d2ir/TestCompile/patterns/override/6.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 752473abf..71b1f5468 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -410,6 +410,18 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { ScopeAST: scopeAST, }) if !ok { + // Unapply glob if appropriate. + gctx := c.getGlobContext(c.mapRefContextStack[len(c.mapRefContextStack)-1]) + if gctx == nil { + return + } + var ks string + if gctx.refctx.Key.HasTripleGlob() { + ks = d2format.Format(d2ast.MakeKeyPath(IDA(dst))) + } else { + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(dst))) + } + delete(gctx.appliedFields, ks) return } } diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index d7c65ac7f..886ca956b 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -896,14 +896,14 @@ func (m *Map) ensureField(i int, kp *d2ast.KeyPath, refctx *RefContext, create b DueToLazyGlob_: c.lazyGlobBeingApplied, }) } + if !filter(f, true) { + return nil + } m.Fields = append(m.Fields, f) if i+1 == len(kp.Path) { faAppend(f) return nil } - if !filter(f, true) { - return nil - } if f.Composite == nil { f.Composite = &Map{ parent: f, diff --git a/d2ir/filter_test.go b/d2ir/filter_test.go index efe490c0e..fa5d9ca8f 100644 --- a/d2ir/filter_test.go +++ b/d2ir/filter_test.go @@ -150,6 +150,26 @@ x -> y assertQuery(t, m, 0, 0, 0.1, "(x -> y)[1].style.opacity") }, }, + { + name: "lazy-filter", + run: func(t testing.TB) { + m, err := compile(t, ` +*: { + &label: a + style.fill: yellow +} + +a +# if i remove this line, the glob applies as expected +b +b.label: a +`) + assert.Success(t, err) + assertQuery(t, m, 7, 0, nil, "") + assertQuery(t, m, 0, 0, "yellow", "a.style.fill") + assertQuery(t, m, 0, 0, "yellow", "b.style.fill") + }, + }, } runa(t, tca) diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index b2fbb4bab..1effd3be1 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -642,6 +642,30 @@ a -> b assertQuery(t, m, 0, 0, "hey", "(a -> b)[0].label") }, }, + { + name: "override/6", + run: func(t testing.TB) { + m, err := compile(t, ` +# Nulling glob doesn't work +a +*a.icon: https://icons.terrastruct.com/essentials%2F073-add.svg +a.icon: null + +# Regular icon nulling works +b.icon: https://icons.terrastruct.com/essentials%2F073-add.svg +b.icon: null + +# Shape nulling works +*.shape: circle +a.shape: null +b.shape: null +`) + assert.Success(t, err) + assertQuery(t, m, 2, 0, nil, "") + assertQuery(t, m, 0, 0, nil, "a") + assertQuery(t, m, 0, 0, nil, "b") + }, + }, { name: "table-class-exception", run: func(t testing.TB) { diff --git a/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json b/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json new file mode 100644 index 000000000..99cba51c3 --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json @@ -0,0 +1,773 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/filters/lazy-filter.d2,3:14:32-3:20:38", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:20:38", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:14:32-3:20:38", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:20:38", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:14:32-3:20:38", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,6:0:42-6:1:43", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,6:0:42-6:1:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,6:0:42-6:1:43", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,6:0:42-6:1:43", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,6:0:42-6:1:43", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,6:0:42-6:1:43", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b", + "composite": { + "fields": [ + { + "name": "label", + "primary": { + "value": { + "range": "TestCompile/filters/lazy-filter.d2,9:9:109-9:10:110", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,9:2:102-9:7:107", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:7:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:1:101", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:2:102-9:7:107", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:10:110", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:7:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:1:101", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:2:102-9:7:107", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:9:109-9:10:110", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,2:2:8-2:11:17", + "ampersand": true, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:10:16-2:11:17", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/filters/lazy-filter.d2,3:14:32-3:20:38", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:20:38", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:14:32-3:20:38", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:20:38", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:12:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:2:20-3:7:25", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:8:26-3:12:30", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,3:14:32-3:20:38", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,8:0:98-8:1:99", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,8:0:98-8:1:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,8:0:98-8:1:99", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,8:0:98-8:1:99", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,8:0:98-8:1:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,8:0:98-8:1:99", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:1:101", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:7:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:1:101", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:2:102-9:7:107", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:10:110", + "key": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:7:107", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:0:100-9:1:101", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:2:102-9:7:107", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,9:9:109-9:10:110", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/override/6.exp.json b/testdata/d2ir/TestCompile/patterns/override/6.exp.json new file mode 100644 index 000000000..f52183c3e --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/6.exp.json @@ -0,0 +1,477 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/6.d2,2:0:29-2:1:30", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/6.d2,2:0:29-2:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,2:0:29-2:1:30", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/6.d2,2:0:29-2:1:30", + "key": { + "range": "TestCompile/patterns/override/6.d2,2:0:29-2:1:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,2:0:29-2:1:30", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/6.d2,4:0:95-4:1:96", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/6.d2,4:0:95-4:6:101", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,4:0:95-4:1:96", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,4:2:97-4:6:101", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/6.d2,4:0:95-4:12:107", + "key": { + "range": "TestCompile/patterns/override/6.d2,4:0:95-4:6:101", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,4:0:95-4:1:96", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,4:2:97-4:6:101", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/6.d2,4:8:103-4:12:107" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/6.d2,12:0:253-12:1:254", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/6.d2,12:0:253-12:7:260", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,12:0:253-12:1:254", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,12:2:255-12:7:260", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/6.d2,12:0:253-12:13:266", + "key": { + "range": "TestCompile/patterns/override/6.d2,12:0:253-12:7:260", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,12:0:253-12:1:254", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,12:2:255-12:7:260", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/6.d2,12:9:262-12:13:266" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b", + "composite": { + "fields": [], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/6.d2,7:0:138-7:1:139", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/6.d2,7:0:138-7:6:144", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,7:0:138-7:1:139", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,7:2:140-7:6:144", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/6.d2,7:0:138-7:62:200", + "key": { + "range": "TestCompile/patterns/override/6.d2,7:0:138-7:6:144", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,7:0:138-7:1:139", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,7:2:140-7:6:144", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,7:8:146-7:62:200", + "value": [ + { + "string": "https://icons.terrastruct.com/essentials%2F073-add.svg", + "raw_string": "https://icons.terrastruct.com/essentials%2F073-add.svg" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/6.d2,8:0:201-8:1:202", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/6.d2,8:0:201-8:6:207", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,8:0:201-8:1:202", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,8:2:203-8:6:207", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/6.d2,8:0:201-8:12:213", + "key": { + "range": "TestCompile/patterns/override/6.d2,8:0:201-8:6:207", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,8:0:201-8:1:202", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,8:2:203-8:6:207", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/6.d2,8:8:209-8:12:213" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/6.d2,13:0:267-13:1:268", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/6.d2,13:0:267-13:7:274", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,13:0:267-13:1:268", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,13:2:269-13:7:274", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/6.d2,13:0:267-13:13:280", + "key": { + "range": "TestCompile/patterns/override/6.d2,13:0:267-13:7:274", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,13:0:267-13:1:268", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/6.d2,13:2:269-13:7:274", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/6.d2,13:9:276-13:13:280" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} From df25d8b5fbfb9b25b3dc381ce90845d7a1c7b289 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 29 Aug 2023 21:05:59 -0700 Subject: [PATCH 16/21] make.sh: Enforce at least go 1.20 instead of exactly go 1.20 --- make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make.sh b/make.sh index 9c244eb0d..6177fa6f2 100755 --- a/make.sh +++ b/make.sh @@ -9,8 +9,8 @@ fi PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH" cd -- "$(dirname "$0")" -if ! go version | grep -qF '1.20'; then - echoerr "You need go 1.20 to build d2." +if ! go version | grep -q '1.2[0-9]'; then + echoerr "You need go 1.2x to build d2." exit 1 fi From 88b885a75394ed84015a95856289d7534597f988 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 30 Aug 2023 00:31:36 -0700 Subject: [PATCH 17/21] d2ir: Ensure filters pass before setting primary --- d2ast/d2ast.go | 9 + d2ir/compile.go | 76 +- d2ir/filter_test.go | 40 + .../d2ir/TestCompile/filters/array.exp.json | 128 + .../d2ir/TestCompile/filters/base.exp.json | 64 + .../TestCompile/filters/lazy-filter.exp.json | 64 + .../d2ir/TestCompile/filters/order.exp.json | 64 + .../filters/primary-filter.exp.json | 2355 +++++++++++++++++ 8 files changed, 2774 insertions(+), 26 deletions(-) create mode 100644 testdata/d2ir/TestCompile/filters/primary-filter.exp.json diff --git a/d2ast/d2ast.go b/d2ast/d2ast.go index a210a49f3..87b0921f6 100644 --- a/d2ast/d2ast.go +++ b/d2ast/d2ast.go @@ -606,6 +606,15 @@ func (m *Map) IsFileMap() bool { return m.Range.Start.Line == 0 && m.Range.Start.Column == 0 } +func (m *Map) HasFilter() bool { + for _, n := range m.Nodes { + if n.MapKey != nil && (n.MapKey.Ampersand || n.MapKey.NotAmpersand) { + return true + } + } + return false +} + // TODO: require @ on import values for readability type Key struct { Range Range `json:"range"` diff --git a/d2ir/compile.go b/d2ir/compile.go index 71b1f5468..b4e22437d 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -376,6 +376,36 @@ func (g *globContext) prefixed(dst *Map) *globContext { return &g2 } +func (c *compiler) ampersandFilterMap(dst *Map, ast, scopeAST *d2ast.Map) bool { + for _, n := range ast.Nodes { + switch { + case n.MapKey != nil: + ok := c.ampersandFilter(&RefContext{ + Key: n.MapKey, + Scope: ast, + ScopeMap: dst, + ScopeAST: scopeAST, + }) + if !ok { + // Unapply glob if appropriate. + gctx := c.getGlobContext(c.mapRefContextStack[len(c.mapRefContextStack)-1]) + if gctx == nil { + return false + } + var ks string + if gctx.refctx.Key.HasTripleGlob() { + ks = d2format.Format(d2ast.MakeKeyPath(IDA(dst))) + } else { + ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(dst))) + } + delete(gctx.appliedFields, ks) + return false + } + } + } + return true +} + func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { var globs []*globContext if len(c.globContextStack) > 0 { @@ -400,31 +430,9 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { c.globContextStack = c.globContextStack[:len(c.globContextStack)-1] }() - for _, n := range ast.Nodes { - switch { - case n.MapKey != nil: - ok := c.ampersandFilter(&RefContext{ - Key: n.MapKey, - Scope: ast, - ScopeMap: dst, - ScopeAST: scopeAST, - }) - if !ok { - // Unapply glob if appropriate. - gctx := c.getGlobContext(c.mapRefContextStack[len(c.mapRefContextStack)-1]) - if gctx == nil { - return - } - var ks string - if gctx.refctx.Key.HasTripleGlob() { - ks = d2format.Format(d2ast.MakeKeyPath(IDA(dst))) - } else { - ks = d2format.Format(d2ast.MakeKeyPath(BoardIDA(dst))) - } - delete(gctx.appliedFields, ks) - return - } - } + ok := c.ampersandFilterMap(dst, ast, scopeAST) + if !ok { + return } for _, n := range ast.Nodes { @@ -644,7 +652,22 @@ func (c *compiler) _ampersandFilter(f *Field, refctx *RefContext) bool { } func (c *compiler) _compileField(f *Field, refctx *RefContext) { - if len(refctx.Key.Edges) == 0 && refctx.Key.Value.Null != nil { + // In case of filters, we need to pass filters before continuing + if refctx.Key.Value.Map != nil && refctx.Key.Value.Map.HasFilter() { + if f.Map() == nil { + f.Composite = &Map{ + parent: f, + } + } + c.mapRefContextStack = append(c.mapRefContextStack, refctx) + ok := c.ampersandFilterMap(f.Map(), refctx.Key.Value.Map, refctx.ScopeAST) + c.mapRefContextStack = c.mapRefContextStack[:len(c.mapRefContextStack)-1] + if !ok { + return + } + } + + if len(refctx.Key.Edges) == 0 && (refctx.Key.Primary.Null != nil || refctx.Key.Value.Null != nil) { // For vars, if we delete the field, it may just resolve to an outer scope var of the same name // Instead we keep it around, so that resolveSubstitutions can find it if !IsVar(ParentMap(f)) { @@ -662,6 +685,7 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { Value: refctx.Key.Primary.Unbox(), } } + if refctx.Key.Value.Array != nil { a := &Array{ parent: f, diff --git a/d2ir/filter_test.go b/d2ir/filter_test.go index fa5d9ca8f..322d5b450 100644 --- a/d2ir/filter_test.go +++ b/d2ir/filter_test.go @@ -170,6 +170,46 @@ b.label: a assertQuery(t, m, 0, 0, "yellow", "b.style.fill") }, }, + { + name: "primary-filter", + run: func(t testing.TB) { + m, err := compile(t, ` +parent: { + a -> b1 + a -> b2 + a -> b3 + + b1 -> c1 + b1 -> c2 + + c1: { + c1-child.class: hidden + } + + c2: { + C2-child.class: hidden + } + c2.class: hidden + b2.class: hidden +} + +classes: { + hidden: { + style: { + fill: red + } + } +} + +# Error +**: null { + &class: hidden +} +`) + assert.Success(t, err) + assertQuery(t, m, 9, 3, nil, "") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/filters/array.exp.json b/testdata/d2ir/TestCompile/filters/array.exp.json index 1e379fa23..b65935e1b 100644 --- a/testdata/d2ir/TestCompile/filters/array.exp.json +++ b/testdata/d2ir/TestCompile/filters/array.exp.json @@ -114,6 +114,70 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/array.d2,11:1:134-11:15:148", + "ampersand": true, + "key": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/array.d2,11:9:142-11:15:148", + "value": [ + { + "string": "server", + "raw_string": "server" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + }, { "string": { "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", @@ -887,6 +951,70 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/array.d2,11:1:134-11:15:148", + "ampersand": true, + "key": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/array.d2,11:9:142-11:15:148", + "value": [ + { + "string": "server", + "raw_string": "server" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + }, { "string": { "range": "TestCompile/filters/array.d2,11:2:135-11:7:140", diff --git a/testdata/d2ir/TestCompile/filters/base.exp.json b/testdata/d2ir/TestCompile/filters/base.exp.json index a8e519a36..98d52c7fe 100644 --- a/testdata/d2ir/TestCompile/filters/base.exp.json +++ b/testdata/d2ir/TestCompile/filters/base.exp.json @@ -326,6 +326,70 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": "TestCompile/filters/base.d2,7:2:63-7:7:68", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/base.d2,7:2:63-7:7:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/base.d2,7:2:63-7:7:68", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/base.d2,7:1:62-7:18:79", + "ampersand": true, + "key": { + "range": "TestCompile/filters/base.d2,7:2:63-7:7:68", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/base.d2,7:2:63-7:7:68", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/base.d2,7:9:70-7:18:79", + "value": [ + { + "string": "rectangle", + "raw_string": "rectangle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + }, { "string": { "range": "TestCompile/filters/base.d2,7:2:63-7:7:68", diff --git a/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json b/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json index 99cba51c3..3c8ace026 100644 --- a/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json +++ b/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json @@ -362,6 +362,70 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,2:2:8-2:11:17", + "ampersand": true, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:10:16-2:11:17", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", diff --git a/testdata/d2ir/TestCompile/filters/order.exp.json b/testdata/d2ir/TestCompile/filters/order.exp.json index 79950f25e..aaaa8b71e 100644 --- a/testdata/d2ir/TestCompile/filters/order.exp.json +++ b/testdata/d2ir/TestCompile/filters/order.exp.json @@ -326,6 +326,70 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": "TestCompile/filters/order.d2,8:2:87-8:7:92", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/order.d2,8:2:87-8:7:92", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/order.d2,8:2:87-8:7:92", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/order.d2,8:1:86-8:18:103", + "ampersand": true, + "key": { + "range": "TestCompile/filters/order.d2,8:2:87-8:7:92", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/order.d2,8:2:87-8:7:92", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/order.d2,8:9:94-8:18:103", + "value": [ + { + "string": "rectangle", + "raw_string": "rectangle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": false + }, { "string": { "range": "TestCompile/filters/order.d2,8:2:87-8:7:92", diff --git a/testdata/d2ir/TestCompile/filters/primary-filter.exp.json b/testdata/d2ir/TestCompile/filters/primary-filter.exp.json new file mode 100644 index 000000000..d17adef3f --- /dev/null +++ b/testdata/d2ir/TestCompile/filters/primary-filter.exp.json @@ -0,0 +1,2355 @@ +{ + "fields": [ + { + "name": "parent", + "composite": { + "fields": [ + { + "name": "a", + "composite": { + "fields": null, + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:9:30", + "src": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,3:7:28-3:9:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:7:28-3:9:30", + "value": [ + { + "string": "b2", + "raw_string": "b2" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:9:30", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:9:30", + "src": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,3:7:28-3:9:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:7:28-3:9:30", + "value": [ + { + "string": "b2", + "raw_string": "b2" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b1", + "composite": { + "fields": null, + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:10:63", + "src": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,7:8:61-7:10:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:8:61-7:10:63", + "value": [ + { + "string": "c2", + "raw_string": "c2" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:10:63", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:10:63", + "src": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,7:8:61-7:10:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:8:61-7:10:63", + "value": [ + { + "string": "c2", + "raw_string": "c2" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b3", + "composite": { + "fields": null, + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "c1", + "composite": { + "fields": [], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-11:3:103", + "key": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,9:6:71-11:3:103", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,10:4:77-10:26:99", + "key": { + "range": "TestCompile/filters/primary-filter.d2,10:4:77-10:18:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,10:4:77-10:12:85", + "value": [ + { + "string": "c1-child", + "raw_string": "c1-child" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,10:13:86-10:18:91", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,10:20:93-10:26:99", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": [ + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b1" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "a" + ], + "src_arrow": false, + "dst_path": [ + "b3" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "edge_id": { + "src_path": [ + "b1" + ], + "src_arrow": false, + "dst_path": [ + "c1" + ], + "dst_arrow": true, + "index": 0, + "glob": false + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,1:0:1-1:6:7", + "value": [ + { + "string": "parent", + "raw_string": "parent" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,1:0:1-1:6:7", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,1:0:1-1:6:7", + "value": [ + { + "string": "parent", + "raw_string": "parent" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/primary-filter.d2,1:0:1-18:1:183", + "key": { + "range": "TestCompile/filters/primary-filter.d2,1:0:1-1:6:7", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,1:0:1-1:6:7", + "value": [ + { + "string": "parent", + "raw_string": "parent" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,1:8:9-18:1:183", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:9:20", + "src": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:2:13-2:3:14", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,2:7:18-2:9:20", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:9:30", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:9:30", + "src": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:2:23-3:3:24", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,3:7:28-3:9:30", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,3:7:28-3:9:30", + "value": [ + { + "string": "b2", + "raw_string": "b2" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:9:40", + "src": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:2:33-4:3:34", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,4:7:38-4:9:40", + "value": [ + { + "string": "b3", + "raw_string": "b3" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:10:52", + "src": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:2:44-6:4:46", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,6:8:50-6:10:52", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:10:63", + "edges": [ + { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:10:63", + "src": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:2:55-7:4:57", + "value": [ + { + "string": "b1", + "raw_string": "b1" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/filters/primary-filter.d2,7:8:61-7:10:63", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,7:8:61-7:10:63", + "value": [ + { + "string": "c2", + "raw_string": "c2" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-11:3:103", + "key": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,9:2:67-9:4:69", + "value": [ + { + "string": "c1", + "raw_string": "c1" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,9:6:71-11:3:103", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,10:4:77-10:26:99", + "key": { + "range": "TestCompile/filters/primary-filter.d2,10:4:77-10:18:91", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,10:4:77-10:12:85", + "value": [ + { + "string": "c1-child", + "raw_string": "c1-child" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,10:13:86-10:18:91", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,10:20:93-10:26:99", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,13:2:107-15:3:143", + "key": { + "range": "TestCompile/filters/primary-filter.d2,13:2:107-13:4:109", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,13:2:107-13:4:109", + "value": [ + { + "string": "c2", + "raw_string": "c2" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,13:6:111-15:3:143", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,14:4:117-14:26:139", + "key": { + "range": "TestCompile/filters/primary-filter.d2,14:4:117-14:18:131", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,14:4:117-14:12:125", + "value": [ + { + "string": "C2-child", + "raw_string": "C2-child" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,14:13:126-14:18:131", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,14:20:133-14:26:139", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,16:2:146-16:18:162", + "key": { + "range": "TestCompile/filters/primary-filter.d2,16:2:146-16:10:154", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,16:2:146-16:4:148", + "value": [ + { + "string": "c2", + "raw_string": "c2" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,16:5:149-16:10:154", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,16:12:156-16:18:162", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,17:2:165-17:18:181", + "key": { + "range": "TestCompile/filters/primary-filter.d2,17:2:165-17:10:173", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,17:2:165-17:4:167", + "value": [ + { + "string": "b2", + "raw_string": "b2" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,17:5:168-17:10:173", + "value": [ + { + "string": "class", + "raw_string": "class" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,17:12:175-17:18:181", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "classes", + "composite": { + "fields": [ + { + "name": "hidden", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/filters/primary-filter.d2,23:12:233-23:15:236", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:15:236", + "key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:12:233-23:15:236", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-24:5:242", + "key": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,22:11:219-24:5:242", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:15:236", + "key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:12:233-23:15:236", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-25:3:246", + "key": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,21:10:206-25:3:246", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-24:5:242", + "key": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,22:11:219-24:5:242", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:15:236", + "key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:12:233-23:15:236", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/filters/primary-filter.d2,20:0:185-20:7:192", + "value": [ + { + "string": "classes", + "raw_string": "classes" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/primary-filter.d2,20:0:185-20:7:192", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,20:0:185-20:7:192", + "value": [ + { + "string": "classes", + "raw_string": "classes" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/primary-filter.d2,20:0:185-26:1:248", + "key": { + "range": "TestCompile/filters/primary-filter.d2,20:0:185-20:7:192", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,20:0:185-20:7:192", + "value": [ + { + "string": "classes", + "raw_string": "classes" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,20:9:194-26:1:248", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-25:3:246", + "key": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,21:2:198-21:8:204", + "value": [ + { + "string": "hidden", + "raw_string": "hidden" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,21:10:206-25:3:246", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-24:5:242", + "key": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,22:4:212-22:9:217", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/filters/primary-filter.d2,22:11:219-24:5:242", + "nodes": [ + { + "map_key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:15:236", + "key": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:6:227-23:10:231", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/primary-filter.d2,23:12:233-23:15:236", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + } + ] + } + } + } + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} From 4523b503a77bdde41265e244f75476c8b37926e9 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 30 Aug 2023 04:35:07 -0700 Subject: [PATCH 18/21] d2ir: Ensure new scenario map doesn't re overlay --- d2ir/compile.go | 36 +- d2ir/compile_test.go | 19 +- .../scenarios/multiple-scenario-map.exp.json | 2609 +++++++++++++++++ 3 files changed, 2645 insertions(+), 19 deletions(-) create mode 100644 testdata/d2ir/TestCompile/scenarios/multiple-scenario-map.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index b4e22437d..47c93b434 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -693,31 +693,31 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { c.compileArray(a, refctx.Key.Value.Array, refctx.ScopeAST) f.Composite = a } else if refctx.Key.Value.Map != nil { + scopeAST := refctx.Key.Value.Map if f.Map() == nil { f.Composite = &Map{ parent: f, } - } - scopeAST := refctx.Key.Value.Map - switch NodeBoardKind(f) { - case BoardScenario: - c.overlay(ParentBoard(f).Map(), f) - case BoardStep: - stepsMap := ParentMap(f) - for i := range stepsMap.Fields { - if stepsMap.Fields[i] == f { - if i == 0 { - c.overlay(ParentBoard(f).Map(), f) - } else { - c.overlay(stepsMap.Fields[i-1].Map(), f) + switch NodeBoardKind(f) { + case BoardScenario: + c.overlay(ParentBoard(f).Map(), f) + case BoardStep: + stepsMap := ParentMap(f) + for i := range stepsMap.Fields { + if stepsMap.Fields[i] == f { + if i == 0 { + c.overlay(ParentBoard(f).Map(), f) + } else { + c.overlay(stepsMap.Fields[i-1].Map(), f) + } + break } - break } + case BoardLayer: + default: + // If new board type, use that as the new scope AST, otherwise, carry on + scopeAST = refctx.ScopeAST } - case BoardLayer: - default: - // If new board type, use that as the new scope AST, otherwise, carry on - scopeAST = refctx.ScopeAST } c.mapRefContextStack = append(c.mapRefContextStack, refctx) c.compileMap(f.Map(), refctx.Key.Value.Map, scopeAST) diff --git a/d2ir/compile_test.go b/d2ir/compile_test.go index bf03b14d1..7979a63e0 100644 --- a/d2ir/compile_test.go +++ b/d2ir/compile_test.go @@ -416,10 +416,27 @@ scenarios: { } }`) assert.Success(t, err) - + assertQuery(t, m, 8, 2, nil, "") assertQuery(t, m, 0, 0, nil, "(a -> b)[0]") }, }, + { + name: "multiple-scenario-map", + run: func(t testing.TB) { + m, err := compile(t, `a -> b: { style.opacity: 0.3 } +scenarios: { + 1: { + (a -> b)[0].style.opacity: 0.1 + } + 1: { + z + } +}`) + assert.Success(t, err) + assertQuery(t, m, 11, 2, nil, "") + assertQuery(t, m, 0, 0, 0.1, "scenarios.1.(a -> b)[0].style.opacity") + }, + }, } runa(t, tca) } diff --git a/testdata/d2ir/TestCompile/scenarios/multiple-scenario-map.exp.json b/testdata/d2ir/TestCompile/scenarios/multiple-scenario-map.exp.json new file mode 100644 index 000000000..603b8a13f --- /dev/null +++ b/testdata/d2ir/TestCompile/scenarios/multiple-scenario-map.exp.json @@ -0,0 +1,2609 @@ +{ + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:30:30", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:8:8-0:30:30", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:30:30", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:8:8-0:30:30", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "scenarios", + "composite": { + "fields": [ + { + "name": "1", + "composite": { + "fields": [ + { + "name": "a", + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:30:30", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:8:8-0:30:30", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b", + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:30:30", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:8:8-0:30:30", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "z", + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "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": "opacity", + "primary": { + "value": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:30:30", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:8:8-0:30:30", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ] + }, + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-4:3:89", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:5:49-4:3:89", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-7:3:103", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:5:95-7:3:103", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:0:31-1:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:0:31-1:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:0:31-1:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:0:31-8:1:105", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:0:31-1:9:40", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:0:31-1:9:40", + "value": [ + { + "string": "scenarios", + "raw_string": "scenarios" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,1:11:42-8:1:105", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-4:3:89", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:2:46-2:3:47", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,2:5:49-4:3:89", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:4:55-3:34:85", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:11:62", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:5:56-3:6:57", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:10:61-3:11:62", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:12:63-3:15:66", + "int": 0, + "glob": false + }, + "edge_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:29:80", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:16:67-3:21:72", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:22:73-3:29:80", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,3:31:82-3:34:85", + "raw": "0.1", + "value": "1/10" + } + } + } + } + ] + } + } + } + }, + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-7:3:103", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:2:92-5:3:93", + "value": [ + { + "string": "1", + "raw_string": "1" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,5:5:95-7:3:103", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,6:1:98-6:2:99", + "value": [ + { + "string": "z", + "raw_string": "z" + } + ] + } + } + ] + }, + "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": "opacity", + "primary": { + "value": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + }, + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null + }, + "references": [ + { + "context": { + "edge": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:30:30", + "edges": [ + { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:6:6", + "src": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:0:0-0:1:1", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:5:5-0:6:6", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": { + "map": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:8:8-0:30:30", + "nodes": [ + { + "map_key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:29:29", + "key": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:23:23", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:10:10-0:15:15", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:16:16-0:23:23", + "value": [ + { + "string": "opacity", + "raw_string": "opacity" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "number": { + "range": "TestCompile/scenarios/multiple-scenario-map.d2,0:25:25-0:28:28", + "raw": "0.3", + "value": "3/10" + } + } + } + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ] +} From d03082d84db91b927732ddd6bcc3eab5b1becfb2 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Wed, 30 Aug 2023 05:08:22 -0700 Subject: [PATCH 19/21] d2ir: Fix Alex's null glob problem --- d2ir/compile.go | 2 + d2ir/d2ir.go | 16 + d2ir/pattern_test.go | 25 +- .../alixander-lazy-globs-review/3.exp.json | 28 + .../filters/label-filter/2.exp.json | 162 - .../TestCompile/filters/lazy-filter.exp.json | 64 + .../patterns/alixander-review/1.exp.json | 5754 +++++++++++++---- .../patterns/alixander-review/2.exp.json | 236 + .../patterns/alixander-review/3.exp.json | 1246 ++++ .../patterns/alixander-review/4.exp.json | 510 ++ .../patterns/alixander-review/5.exp.json | 1721 +++++ .../patterns/alixander-review/7.exp.json | 328 +- .../patterns/double-glob/defaults.exp.json | 282 + .../TestCompile/patterns/override/1.exp.json | 351 + .../TestCompile/patterns/override/2.exp.json | 715 ++ .../TestCompile/patterns/override/3.exp.json | 3868 +++++++++++ .../TestCompile/patterns/override/4.exp.json | 126 +- .../TestCompile/patterns/override/7.exp.json | 424 ++ .../patterns/single-glob/defaults.exp.json | 1798 +++++ .../patterns/table-class-exception.exp.json | 322 +- .../patterns/triple-glob/defaults.exp.json | 580 ++ .../triple-glob/edge-defaults.exp.json | 2136 ++++++ 22 files changed, 19098 insertions(+), 1596 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/override/7.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 47c93b434..4a4d5f9fc 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -718,6 +718,8 @@ func (c *compiler) _compileField(f *Field, refctx *RefContext) { // If new board type, use that as the new scope AST, otherwise, carry on scopeAST = refctx.ScopeAST } + } else { + scopeAST = refctx.ScopeAST } c.mapRefContextStack = append(c.mapRefContextStack, refctx) c.compileMap(f.Map(), refctx.Key.Value.Map, scopeAST) diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 886ca956b..95401c1e7 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -717,6 +717,14 @@ func (m *Map) EnsureField(kp *d2ast.KeyPath, refctx *RefContext, create bool, c var fa []*Field err := m.ensureField(i, kp, refctx, create, gctx, c, &fa) + if len(fa) > 0 && c != nil && len(c.globRefContextStack) == 0 { + for _, gctx2 := range c.globContexts() { + old := c.lazyGlobBeingApplied + c.lazyGlobBeingApplied = true + c.compileKey(gctx2.refctx) + c.lazyGlobBeingApplied = old + } + } return fa, err } @@ -1091,6 +1099,14 @@ func (m *Map) CreateEdge(eid *EdgeID, refctx *RefContext, c *compiler) ([]*Edge, gctx = c.ensureGlobContext(refctx) } err := m.createEdge(eid, refctx, gctx, c, &ea) + if len(ea) > 0 && c != nil && len(c.globRefContextStack) == 0 { + for _, gctx2 := range c.globContexts() { + old := c.lazyGlobBeingApplied + c.lazyGlobBeingApplied = true + c.compileKey(gctx2.refctx) + c.lazyGlobBeingApplied = old + } + } return ea, err } diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 1effd3be1..7301af806 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -655,6 +655,29 @@ a.icon: null b.icon: https://icons.terrastruct.com/essentials%2F073-add.svg b.icon: null +# Shape nulling works +*.shape: circle +a.shape: null +b.shape: null +`) + assert.Success(t, err) + assertQuery(t, m, 2, 0, nil, "") + assertQuery(t, m, 0, 0, nil, "a") + assertQuery(t, m, 0, 0, nil, "b") + }, + }, + { + name: "override/7", + run: func(t testing.TB) { + m, err := compile(t, ` +# Nulling glob doesn't work +*a.icon: https://icons.terrastruct.com/essentials%2F073-add.svg +a.icon: null + +# Regular icon nulling works +b.icon: https://icons.terrastruct.com/essentials%2F073-add.svg +b.icon: null + # Shape nulling works *.shape: circle a.shape: null @@ -689,7 +712,7 @@ class: { } `) assert.Success(t, err) - assertQuery(t, m, 10, 0, nil, "") + assertQuery(t, m, 13, 0, nil, "") }, }, { diff --git a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json index 2052eed4c..c42990a09 100644 --- a/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json +++ b/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review/3.exp.json @@ -398,6 +398,34 @@ ], "sql_table": { "columns": [ + { + "name": { + "label": "c", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0 + }, + "type": { + "label": "d", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 0, + "labelHeight": 0 + }, + "constraint": null, + "reference": "" + }, { "name": { "label": "a", diff --git a/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json index 6f7b9c956..2ead5445f 100644 --- a/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json +++ b/testdata/d2ir/TestCompile/filters/label-filter/2.exp.json @@ -693,87 +693,6 @@ "due_to_glob": true, "due_to_lazy_glob": true }, - { - "string": { - "range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76", - "value": [ - { - "string": "opacity", - "raw_string": "opacity" - } - ] - }, - "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" - } - ] - } - } - ] - }, - "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 - }, { "string": { "range": "TestCompile/filters/label-filter/2.d2,1:18:19-1:25:26", @@ -1207,87 +1126,6 @@ "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" - } - ] - } - } - ] - }, - "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 - }, { "string": { "range": "TestCompile/filters/label-filter/2.d2,1:12:13-1:17:18", diff --git a/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json b/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json index 3c8ace026..d3df4d200 100644 --- a/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json +++ b/testdata/d2ir/TestCompile/filters/lazy-filter.exp.json @@ -426,6 +426,70 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,2:2:8-2:11:17", + "ampersand": true, + "key": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/filters/lazy-filter.d2,2:10:16-2:11:17", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/filters/lazy-filter.d2,2:3:9-2:8:14", diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json index 0ee3a9385..b6516bba8 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/1.exp.json @@ -4,1191 +4,6 @@ "name": "x", "composite": { "fields": [ - { - "name": "y", - "composite": { - "fields": [ - { - "name": "style", - "composite": { - "fields": [ - { - "name": "fill", - "primary": { - "value": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", - "value": [ - { - "string": "***", - "raw_string": "***" - } - ], - "pattern": [ - "*", - "", - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", - "value": [ - { - "string": "yellow", - "raw_string": "yellow" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - } - ] - }, - { - "name": "shape", - "primary": { - "value": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - }, - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", - "value": [ - { - "string": "**", - "raw_string": "**" - } - ], - "pattern": [ - "*", - "", - "*" - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", - "value": [ - { - "string": "shape", - "raw_string": "shape" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", - "value": [ - { - "string": "circle", - "raw_string": "circle" - } - ] - } - } - } - }, - "due_to_glob": true, - "due_to_lazy_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "key": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - } - ] - }, { "name": "style", "composite": { @@ -1986,6 +801,654 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2667,6 +2130,1138 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:22:63", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:16:57", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:0:41-3:1:42", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:2:43-3:7:48", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:8:49-3:16:57", + "value": [ + { + "string": "multiple", + "raw_string": "multiple" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "boolean": { + "range": "TestCompile/patterns/alixander-review/1.d2,3:18:59-3:22:63", + "value": true + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", @@ -3615,6 +4210,2314 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "y", + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:14:15", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:16:40", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:8:32", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:0:24-2:2:26", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:3:27-2:8:32", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,2:10:34-2:16:40", + "value": [ + { + "string": "circle", + "raw_string": "circle" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,6:2:72-6:3:73", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false } ] } @@ -4064,6 +6967,167 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", @@ -4612,6 +7676,166 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4889,6 +8113,166 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "next" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/1.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json index 2d6bb3a91..d88480af2 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/2.exp.json @@ -414,6 +414,242 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:6:10", + "src": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:0:4-3:1:5", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/2.d2,3:5:9-3:6:10", + "value": [ + { + "string": "y", + "raw_string": "y" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json index dc3fcc423..1defbbfb0 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/3.exp.json @@ -504,6 +504,338 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1012,6 +1344,302 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -1265,6 +1893,197 @@ } ] }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, "context": { "edge": { "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", @@ -1789,6 +2608,179 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "context": { + "edge": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + }, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2170,6 +3162,133 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2414,6 +3533,133 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "z" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:10:14", + "src": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:5:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:0:4-3:3:7", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:4:8-3:5:9", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/3.d2,3:9:13-3:10:14", + "value": [ + { + "string": "c", + "raw_string": "c" + } + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json index 37464f81d..3b9a8519e 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/4.exp.json @@ -177,6 +177,261 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", @@ -415,6 +670,176 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", @@ -568,6 +993,91 @@ { "name": "child", "references": [ + { + "string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "key": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:8:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", + "value": [ + { + "string": "child", + "raw_string": "child" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/4.d2,1:3:4-1:8:9", diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json index 3b8756907..d7c15fa34 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/5.exp.json @@ -350,6 +350,477 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", @@ -1046,6 +1517,320 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", @@ -1768,6 +2553,474 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2064,6 +3317,474 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:18:19", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/5.d2,1:15:16-1:18:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json b/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json index 5d603a1ad..f10e20827 100644 --- a/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json +++ b/testdata/d2ir/TestCompile/patterns/alixander-review/7.exp.json @@ -22,91 +22,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", - "key": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", - "value": [ - { - "string": "blue", - "raw_string": "blue" - } - ] - } - } - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, { "string": { "range": "TestCompile/patterns/alixander-review/7.d2,2:8:14-2:12:18", @@ -276,39 +191,9 @@ }, "due_to_glob": true, "due_to_lazy_glob": true - } - ] - } - ], - "edges": null - }, - "references": [ - { - "string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } }, { - "unquoted_string": { + "string": { "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", "value": [ { @@ -316,58 +201,88 @@ "raw_string": "fill" } ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", - "key": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", - "value": [ - { - "string": "style", - "raw_string": "style" - } - ] - } - }, - { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", - "value": [ - { - "string": "fill", - "raw_string": "fill" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", - "value": [ + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ { - "string": "blue", - "raw_string": "blue" + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } } ] - } + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false } - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, + ] + } + ], + "edges": null + }, + "references": [ { "string": { "range": "TestCompile/patterns/alixander-review/7.d2,2:2:8-2:7:13", @@ -537,6 +452,91 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:18:80", + "key": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:12:74", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:2:64-9:7:69", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:8:70-9:12:74", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/alixander-review/7.d2,9:14:76-9:18:80", + "value": [ + { + "string": "blue", + "raw_string": "blue" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json index 0f421bb14..355e0094b 100644 --- a/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/double-glob/defaults.exp.json @@ -1534,6 +1534,147 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1785,6 +1926,147 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-2:1:20", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:0:0-0:2:2", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/double-glob/defaults.d2,0:4:4-2:1:20", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:12:18", + "key": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:1:7-1:6:12", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/double-glob/defaults.d2,1:8:14-1:12:18", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/override/1.exp.json b/testdata/d2ir/TestCompile/patterns/override/1.exp.json index e0e6fb8fd..8efff4de9 100644 --- a/testdata/d2ir/TestCompile/patterns/override/1.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/1.exp.json @@ -372,6 +372,123 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:18:41", + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -729,6 +846,240 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:21:22", + "key": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:13:14", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:0:1-1:2:3", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:3:4-1:8:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:9:10-1:13:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,1:15:16-1:21:22", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:18:41", + "key": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:13:36", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:0:23-2:2:25", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:3:26-2:8:31", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:9:32-2:13:36", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/1.d2,2:15:38-2:18:41", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/2.exp.json b/testdata/d2ir/TestCompile/patterns/override/2.exp.json index 6f8405ef3..54f0423bd 100644 --- a/testdata/d2ir/TestCompile/patterns/override/2.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/2.exp.json @@ -424,6 +424,123 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -826,6 +943,284 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:22:65", + "key": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:17:60", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:4:47-5:6:49", + "value": [ + { + "string": "**", + "raw_string": "**" + } + ], + "pattern": [ + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:7:50-5:12:55", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:13:56-5:17:60", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,5:19:62-5:22:65", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", @@ -1440,6 +1835,166 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -1783,6 +2338,166 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:22:23", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:0:1-1:3:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:4:5-1:9:10", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:10:11-1:14:15", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/2.d2,1:16:17-1:22:23", + "value": [ + { + "string": "yellow", + "raw_string": "yellow" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/3.exp.json b/testdata/d2ir/TestCompile/patterns/override/3.exp.json index 9645435f8..604061dc0 100644 --- a/testdata/d2ir/TestCompile/patterns/override/3.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/3.exp.json @@ -1846,6 +1846,1050 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": ",0:0:0-0:0:0", @@ -2494,6 +3538,1050 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,7:4:58-7:30:84", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:15:69", + "src": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:5:59-7:8:62", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:12:66-7:15:69", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,7:16:70-7:19:73", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:20:74-7:25:79", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,7:27:81-7:30:84", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": ",0:0:0-0:0:0", @@ -2914,6 +5002,896 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": ",0:0:0-0:0:0", @@ -3711,6 +6689,896 @@ "due_to_glob": false, "due_to_lazy_glob": false }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/3.d2,1:0:1-1:25:26", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "hi" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "b" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:11:12", + "src": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:1:2-1:4:5", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:8:9-1:11:12", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/override/3.d2,1:12:13-1:15:16", + "int": null, + "glob": true + }, + "edge_key": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:16:17-1:21:22", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/3.d2,1:23:24-1:25:26", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": ",0:0:0-0:0:0", diff --git a/testdata/d2ir/TestCompile/patterns/override/4.exp.json b/testdata/d2ir/TestCompile/patterns/override/4.exp.json index 72372ff1a..40b076ead 100644 --- a/testdata/d2ir/TestCompile/patterns/override/4.exp.json +++ b/testdata/d2ir/TestCompile/patterns/override/4.exp.json @@ -343,69 +343,6 @@ } }, "references": [ - { - "string": { - "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - }, - "key_path": { - "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "context": { - "edge": null, - "key": { - "range": "TestCompile/patterns/override/4.d2,4:2:40-4:12:50", - "key": { - "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", - "path": [ - { - "unquoted_string": { - "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", - "value": [ - { - "string": "label", - "raw_string": "label" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "unquoted_string": { - "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", - "value": [ - { - "string": "bye", - "raw_string": "bye" - } - ] - } - } - } - }, - "due_to_glob": false, - "due_to_lazy_glob": false - }, { "string": { "range": "TestCompile/patterns/override/4.d2,1:16:17-1:21:22", @@ -576,6 +513,69 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:12:50", + "key": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:2:40-4:7:45", + "value": [ + { + "string": "label", + "raw_string": "label" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/4.d2,4:9:47-4:12:50", + "value": [ + { + "string": "bye", + "raw_string": "bye" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false } ] } diff --git a/testdata/d2ir/TestCompile/patterns/override/7.exp.json b/testdata/d2ir/TestCompile/patterns/override/7.exp.json new file mode 100644 index 000000000..6658f0928 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/override/7.exp.json @@ -0,0 +1,424 @@ +{ + "fields": [ + { + "name": "a", + "composite": { + "fields": [], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/7.d2,3:0:93-3:1:94", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/7.d2,3:0:93-3:6:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,3:0:93-3:1:94", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,3:2:95-3:6:99", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/7.d2,3:0:93-3:12:105", + "key": { + "range": "TestCompile/patterns/override/7.d2,3:0:93-3:6:99", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,3:0:93-3:1:94", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,3:2:95-3:6:99", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/7.d2,3:8:101-3:12:105" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/7.d2,11:0:251-11:1:252", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/7.d2,11:0:251-11:7:258", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,11:0:251-11:1:252", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,11:2:253-11:7:258", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/7.d2,11:0:251-11:13:264", + "key": { + "range": "TestCompile/patterns/override/7.d2,11:0:251-11:7:258", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,11:0:251-11:1:252", + "value": [ + { + "string": "a", + "raw_string": "a" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,11:2:253-11:7:258", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/7.d2,11:9:260-11:13:264" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "b", + "composite": { + "fields": [], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/override/7.d2,6:0:136-6:1:137", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/7.d2,6:0:136-6:6:142", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,6:0:136-6:1:137", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,6:2:138-6:6:142", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/7.d2,6:0:136-6:62:198", + "key": { + "range": "TestCompile/patterns/override/7.d2,6:0:136-6:6:142", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,6:0:136-6:1:137", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,6:2:138-6:6:142", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,6:8:144-6:62:198", + "value": [ + { + "string": "https://icons.terrastruct.com/essentials%2F073-add.svg", + "raw_string": "https://icons.terrastruct.com/essentials%2F073-add.svg" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/7.d2,7:0:199-7:1:200", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/7.d2,7:0:199-7:6:205", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,7:0:199-7:1:200", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,7:2:201-7:6:205", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/7.d2,7:0:199-7:12:211", + "key": { + "range": "TestCompile/patterns/override/7.d2,7:0:199-7:6:205", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,7:0:199-7:1:200", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,7:2:201-7:6:205", + "value": [ + { + "string": "icon", + "raw_string": "icon" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/7.d2,7:8:207-7:12:211" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + }, + { + "string": { + "range": "TestCompile/patterns/override/7.d2,12:0:265-12:1:266", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/override/7.d2,12:0:265-12:7:272", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,12:0:265-12:1:266", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,12:2:267-12:7:272", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/override/7.d2,12:0:265-12:13:278", + "key": { + "range": "TestCompile/patterns/override/7.d2,12:0:265-12:7:272", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,12:0:265-12:1:266", + "value": [ + { + "string": "b", + "raw_string": "b" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/override/7.d2,12:2:267-12:7:272", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "null": { + "range": "TestCompile/patterns/override/7.d2,12:9:274-12:13:278" + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} diff --git a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json index 652ec7ac1..ab8e85c96 100644 --- a/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/single-glob/defaults.exp.json @@ -979,6 +979,126 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", @@ -1174,6 +1294,126 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", @@ -1369,6 +1609,126 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", @@ -1803,6 +2163,366 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2957,6 +3677,126 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,5:0:39-5:7:46", @@ -3152,6 +3992,126 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,6:0:49-6:7:56", @@ -3347,6 +4307,126 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,7:0:59-7:7:66", @@ -3542,6 +4622,246 @@ "due_to_glob": true, "due_to_lazy_glob": true }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:9:9", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, { "string": { "range": "TestCompile/patterns/single-glob/defaults.d2,9:15:85-9:22:92", @@ -3776,6 +5096,166 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4056,6 +5536,165 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -4336,6 +5975,165 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-2:1:27", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:0:0-0:7:7", + "value": [ + { + "string": "wrapper", + "raw_string": "wrapper" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:8:8-0:9:9", + "value": [ + { + "string": "*", + "raw_string": "*" + } + ], + "pattern": [ + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/single-glob/defaults.d2,0:11:11-2:1:27", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:12:25", + "key": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:1:14-1:6:19", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/single-glob/defaults.d2,1:8:21-1:12:25", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, diff --git a/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json b/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json index 6fb4df419..8b4fedc2d 100644 --- a/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json +++ b/testdata/d2ir/TestCompile/patterns/table-class-exception.exp.json @@ -5,39 +5,240 @@ "composite": { "fields": [ { - "name": "shape", + "name": "c", "primary": { "value": { - "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "range": "TestCompile/patterns/table-class-exception.d2,2:5:13-2:6:14", "value": [ { - "string": "sql_table", - "raw_string": "sql_table" + "string": "d", + "raw_string": "d" } ] } }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:17:42", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:12:37", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:2:27-6:7:32", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:8:33-6:12:37", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,6:14:39-6:17:42", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, "references": [ { "string": { - "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "range": "TestCompile/patterns/table-class-exception.d2,2:2:10-2:3:11", "value": [ { - "string": "shape", - "raw_string": "shape" + "string": "c", + "raw_string": "c" } ] }, "key_path": { - "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "range": "TestCompile/patterns/table-class-exception.d2,2:2:10-2:3:11", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "range": "TestCompile/patterns/table-class-exception.d2,2:2:10-2:3:11", "value": [ { - "string": "shape", - "raw_string": "shape" + "string": "c", + "raw_string": "c" } ] } @@ -47,17 +248,17 @@ "context": { "edge": null, "key": { - "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:18:73", + "range": "TestCompile/patterns/table-class-exception.d2,2:2:10-2:6:14", "key": { - "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "range": "TestCompile/patterns/table-class-exception.d2,2:2:10-2:3:11", "path": [ { "unquoted_string": { - "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "range": "TestCompile/patterns/table-class-exception.d2,2:2:10-2:3:11", "value": [ { - "string": "shape", - "raw_string": "shape" + "string": "c", + "raw_string": "c" } ] } @@ -67,19 +268,19 @@ "primary": {}, "value": { "unquoted_string": { - "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "range": "TestCompile/patterns/table-class-exception.d2,2:5:13-2:6:14", "value": [ { - "string": "sql_table", - "raw_string": "sql_table" + "string": "d", + "raw_string": "d" } ] } } } }, - "due_to_glob": false, - "due_to_lazy_glob": false + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -279,6 +480,85 @@ } ] }, + { + "name": "shape", + "primary": { + "value": { + "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + }, + "references": [ + { + "string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + }, + "key_path": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:18:73", + "key": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:2:57-10:7:62", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/table-class-exception.d2,10:9:64-10:18:73", + "value": [ + { + "string": "sql_table", + "raw_string": "sql_table" + } + ] + } + } + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, { "name": "a", "primary": { diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json index ca547e930..0607e99f9 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/defaults.exp.json @@ -1790,6 +1790,151 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2045,6 +2190,151 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -2450,6 +2740,151 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -2705,6 +3140,151 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-2:1:21", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,0:5:5-2:1:21", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:12:19", + "key": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:1:8-1:6:13", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/defaults.d2,1:8:15-1:12:19", + "value": [ + { + "string": "page", + "raw_string": "page" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } diff --git a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json index 905ff2ec6..9b2766ddb 100644 --- a/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json +++ b/testdata/d2ir/TestCompile/patterns/triple-glob/edge-defaults.exp.json @@ -3664,6 +3664,540 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -3975,6 +4509,540 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "scenarios" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] }, @@ -5028,6 +6096,540 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } @@ -5339,6 +6941,540 @@ }, "due_to_glob": true, "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + }, + "key_path": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:0:0-2:1:53", + "key": { + "range": ",0:0:0-0:0:0", + "path": [ + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "layers" + } + ] + } + }, + { + "unquoted_string": { + "range": ",0:0:0-0:0:0", + "value": [ + { + "string": "x" + } + ] + } + } + ] + }, + "edges": [ + { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:11:11", + "src": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:1:1-0:4:4", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "src_arrow": "", + "dst": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:8:8-0:11:11", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + } + ] + }, + "dst_arrow": ">" + } + ], + "edge_index": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:12:12-0:15:15", + "int": null, + "glob": true + }, + "primary": {}, + "value": { + "map": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,0:17:17-2:1:53", + "nodes": [ + { + "map_key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:32:51", + "key": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:23:42", + "path": [ + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:1:20-1:17:36", + "value": [ + { + "string": "target-arrowhead", + "raw_string": "target-arrowhead" + } + ] + } + }, + { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:18:37-1:23:42", + "value": [ + { + "string": "shape", + "raw_string": "shape" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "TestCompile/patterns/triple-glob/edge-defaults.d2,1:25:44-1:32:51", + "value": [ + { + "string": "diamond", + "raw_string": "diamond" + } + ] + } + } + } + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true } ] } From b1f9083ba1a8a659e1d512a6c77c9f893e54e8da Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 3 Sep 2023 22:51:38 -0700 Subject: [PATCH 20/21] d2ir: Make globs work through imports --- d2ir/compile.go | 24 ++- d2ir/d2ir.go | 2 + d2ir/pattern_test.go | 16 ++ .../TestCompile/patterns/import-glob.exp.json | 143 ++++++++++++++++++ 4 files changed, 183 insertions(+), 2 deletions(-) create mode 100644 testdata/d2ir/TestCompile/patterns/import-glob.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 4a4d5f9fc..471bc3f88 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -362,9 +362,14 @@ func (c *compiler) overlay(base *Map, f *Field) { f.Composite = base } -func (g *globContext) prefixed(dst *Map) *globContext { +func (g *globContext) copy() *globContext { g2 := *g g2.refctx = g.root.refctx.Copy() + return &g2 +} + +func (g *globContext) prefixed(dst *Map) *globContext { + g2 := g.copy() prefix := d2ast.MakeKeyPath(RelIDA(g2.refctx.ScopeMap, dst)) g2.refctx.Key = g2.refctx.Key.Copy() if g2.refctx.Key.Key != nil { @@ -373,7 +378,7 @@ func (g *globContext) prefixed(dst *Map) *globContext { if len(prefix.Path) > 0 { g2.refctx.Key.Key = prefix } - return &g2 + return g2 } func (c *compiler) ampersandFilterMap(dst *Map, ast, scopeAST *d2ast.Map) bool { @@ -427,6 +432,7 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { } c.globContextStack = append(c.globContextStack, globs) defer func() { + dst.globs = c.globContexts() c.globContextStack = c.globContextStack[:len(c.globContextStack)-1] }() @@ -464,6 +470,20 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { c.errorf(n.Import, "cannot spread import non map into map") continue } + + for _, gctx := range impn.Map().globs { + if !gctx.refctx.Key.HasTripleGlob() { + continue + } + if gctx.refctx.ScopeMap != impn.Map() { + continue + } + gctx2 := gctx.copy() + gctx2.refctx.ScopeMap = dst + c.compileKey(gctx2.refctx) + c.ensureGlobContext(gctx2.refctx) + } + OverlayMap(dst, impn.Map()) if impnf, ok := impn.(*Field); ok { diff --git a/d2ir/d2ir.go b/d2ir/d2ir.go index 95401c1e7..72bcc116d 100644 --- a/d2ir/d2ir.go +++ b/d2ir/d2ir.go @@ -170,6 +170,8 @@ type Map struct { parent Node Fields []*Field `json:"fields"` Edges []*Edge `json:"edges"` + + globs []*globContext } func (m *Map) initRoot() { diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index 7301af806..e60ec0b11 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -734,6 +734,22 @@ two assertQuery(t, m, 12, 0, nil, "") }, }, + { + name: "import-glob", + run: func(t testing.TB) { + m, err := compileFS(t, "index.d2", map[string]string{ + "index.d2": "before; ...@globs.d2; after", + "globs.d2": `*: jingle +**: true +***: meow`, + }) + assert.Success(t, err) + + assertQuery(t, m, 2, 0, nil, "") + assertQuery(t, m, 0, 0, "meow", "before") + assertQuery(t, m, 0, 0, "meow", "after") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/patterns/import-glob.exp.json b/testdata/d2ir/TestCompile/patterns/import-glob.exp.json new file mode 100644 index 000000000..7c0aa92b0 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/import-glob.exp.json @@ -0,0 +1,143 @@ +{ + "fields": [ + { + "name": "before", + "primary": { + "value": { + "range": "globs.d2,2:5:24-2:9:28", + "value": [ + { + "string": "meow", + "raw_string": "meow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "index.d2,0:0:0-0:6:6", + "value": [ + { + "string": "before", + "raw_string": "before" + } + ] + }, + "key_path": { + "range": "index.d2,0:0:0-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "index.d2,0:0:0-0:6:6", + "value": [ + { + "string": "before", + "raw_string": "before" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "index.d2,0:0:0-0:6:6", + "key": { + "range": "index.d2,0:0:0-0:6:6", + "path": [ + { + "unquoted_string": { + "range": "index.d2,0:0:0-0:6:6", + "value": [ + { + "string": "before", + "raw_string": "before" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "after", + "primary": { + "value": { + "range": "globs.d2,2:5:24-2:9:28", + "value": [ + { + "string": "meow", + "raw_string": "meow" + } + ] + } + }, + "references": [ + { + "string": { + "range": "index.d2,0:22:22-0:27:27", + "value": [ + { + "string": "after", + "raw_string": "after" + } + ] + }, + "key_path": { + "range": "index.d2,0:22:22-0:27:27", + "path": [ + { + "unquoted_string": { + "range": "index.d2,0:22:22-0:27:27", + "value": [ + { + "string": "after", + "raw_string": "after" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "index.d2,0:22:22-0:27:27", + "key": { + "range": "index.d2,0:22:22-0:27:27", + "path": [ + { + "unquoted_string": { + "range": "index.d2,0:22:22-0:27:27", + "value": [ + { + "string": "after", + "raw_string": "after" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +} From 64c2c8467a00933f10280e7dac2533adddbde520 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Mon, 4 Sep 2023 13:08:04 -0700 Subject: [PATCH 21/21] d2ir: Fixup lazy globs across imports --- d2ir/compile.go | 3 - d2ir/pattern_test.go | 22 +- .../1.exp.json} | 0 .../patterns/import-glob/2.exp.json | 1415 +++++++++++++++++ 4 files changed, 1436 insertions(+), 4 deletions(-) rename testdata/d2ir/TestCompile/patterns/{import-glob.exp.json => import-glob/1.exp.json} (100%) create mode 100644 testdata/d2ir/TestCompile/patterns/import-glob/2.exp.json diff --git a/d2ir/compile.go b/d2ir/compile.go index 471bc3f88..2c46f70e4 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -475,9 +475,6 @@ func (c *compiler) compileMap(dst *Map, ast, scopeAST *d2ast.Map) { if !gctx.refctx.Key.HasTripleGlob() { continue } - if gctx.refctx.ScopeMap != impn.Map() { - continue - } gctx2 := gctx.copy() gctx2.refctx.ScopeMap = dst c.compileKey(gctx2.refctx) diff --git a/d2ir/pattern_test.go b/d2ir/pattern_test.go index e60ec0b11..941db0785 100644 --- a/d2ir/pattern_test.go +++ b/d2ir/pattern_test.go @@ -735,7 +735,7 @@ two }, }, { - name: "import-glob", + name: "import-glob/1", run: func(t testing.TB) { m, err := compileFS(t, "index.d2", map[string]string{ "index.d2": "before; ...@globs.d2; after", @@ -750,6 +750,26 @@ two assertQuery(t, m, 0, 0, "meow", "after") }, }, + { + name: "import-glob/2", + run: func(t testing.TB) { + m, err := compileFS(t, "index.d2", map[string]string{ + "index.d2": `...@rules.d2 +hi +`, + "rules.d2": `***.style.fill: red +***: meow +x`, + }) + assert.Success(t, err) + + assertQuery(t, m, 6, 0, nil, "") + assertQuery(t, m, 2, 0, "meow", "hi") + assertQuery(t, m, 2, 0, "meow", "x") + assertQuery(t, m, 0, 0, "red", "hi.style.fill") + assertQuery(t, m, 0, 0, "red", "x.style.fill") + }, + }, } runa(t, tca) diff --git a/testdata/d2ir/TestCompile/patterns/import-glob.exp.json b/testdata/d2ir/TestCompile/patterns/import-glob/1.exp.json similarity index 100% rename from testdata/d2ir/TestCompile/patterns/import-glob.exp.json rename to testdata/d2ir/TestCompile/patterns/import-glob/1.exp.json diff --git a/testdata/d2ir/TestCompile/patterns/import-glob/2.exp.json b/testdata/d2ir/TestCompile/patterns/import-glob/2.exp.json new file mode 100644 index 000000000..a55fa2287 --- /dev/null +++ b/testdata/d2ir/TestCompile/patterns/import-glob/2.exp.json @@ -0,0 +1,1415 @@ +{ + "fields": [ + { + "name": "x", + "primary": { + "value": { + "range": "rules.d2,1:5:25-1:9:29", + "value": [ + { + "string": "meow", + "raw_string": "meow" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "rules.d2,2:0:30-2:1:31", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + }, + "key_path": { + "range": "rules.d2,2:0:30-2:1:31", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,2:0:30-2:1:31", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,2:0:30-2:1:31", + "key": { + "range": "rules.d2,2:0:30-2:1:31", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,2:0:30-2:1:31", + "value": [ + { + "string": "x", + "raw_string": "x" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + }, + { + "name": "hi", + "primary": { + "value": { + "range": "rules.d2,1:5:25-1:9:29", + "value": [ + { + "string": "meow", + "raw_string": "meow" + } + ] + } + }, + "composite": { + "fields": [ + { + "name": "style", + "composite": { + "fields": [ + { + "name": "fill", + "primary": { + "value": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + }, + "references": [ + { + "string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + }, + { + "string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + }, + "key_path": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "rules.d2,0:0:0-0:19:19", + "key": { + "range": "rules.d2,0:0:0-0:14:14", + "path": [ + { + "unquoted_string": { + "range": "rules.d2,0:0:0-0:3:3", + "value": [ + { + "string": "***", + "raw_string": "***" + } + ], + "pattern": [ + "*", + "", + "*", + "", + "*" + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:4:4-0:9:9", + "value": [ + { + "string": "style", + "raw_string": "style" + } + ] + } + }, + { + "unquoted_string": { + "range": "rules.d2,0:10:10-0:14:14", + "value": [ + { + "string": "fill", + "raw_string": "fill" + } + ] + } + } + ] + }, + "primary": {}, + "value": { + "unquoted_string": { + "range": "rules.d2,0:16:16-0:19:19", + "value": [ + { + "string": "red", + "raw_string": "red" + } + ] + } + } + } + }, + "due_to_glob": true, + "due_to_lazy_glob": true + } + ] + } + ], + "edges": null + }, + "references": [ + { + "string": { + "range": "index.d2,1:0:13-1:2:15", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + }, + "key_path": { + "range": "index.d2,1:0:13-1:2:15", + "path": [ + { + "unquoted_string": { + "range": "index.d2,1:0:13-1:2:15", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "context": { + "edge": null, + "key": { + "range": "index.d2,1:0:13-1:2:15", + "key": { + "range": "index.d2,1:0:13-1:2:15", + "path": [ + { + "unquoted_string": { + "range": "index.d2,1:0:13-1:2:15", + "value": [ + { + "string": "hi", + "raw_string": "hi" + } + ] + } + } + ] + }, + "primary": {}, + "value": {} + } + }, + "due_to_glob": false, + "due_to_lazy_glob": false + } + ] + } + ], + "edges": null +}