Merge pull request #2419 from alixander/unsuspend-dst

fix edge glob ampersand filters
This commit is contained in:
Alexander Wang 2025-03-12 16:31:22 -07:00 committed by GitHub
commit 4dafa8610c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 2616 additions and 1873 deletions

View file

@ -5633,6 +5633,60 @@ c
assert.Equal(t, "hello", g.Edges[0].Label.Value) assert.Equal(t, "hello", g.Edges[0].Label.Value)
}, },
}, },
{
name: "unsuspend-edge-filter",
run: func(t *testing.T) {
g, _ := assertCompile(t, `
a -> b
**: suspend
(** -> **)[*]: suspend
(* -> *)[*]: unsuspend {
&dst: a
}
`, ``)
assert.Equal(t, 0, len(g.Objects))
assert.Equal(t, 0, len(g.Edges))
},
},
{
name: "unsuspend-edge-child",
run: func(t *testing.T) {
g, _ := assertCompile(t, `
a: {
b -> c
}
**: suspend
(** -> **)[*]: suspend
(** -> **)[*]: unsuspend {
&dst: a.c
}
`, ``)
assert.Equal(t, 3, len(g.Objects))
assert.Equal(t, 1, len(g.Edges))
},
},
{
name: "unsuspend-cross-container-edge-label",
run: func(t *testing.T) {
g, _ := assertCompile(t, `
a: {
b
}
c: {
d
}
a.b -> c.d: likes
**: suspend
(** -> **)[*]: suspend
(** -> **)[*]: unsuspend {
&label: likes
}
`, ``)
assert.Equal(t, 4, len(g.Objects))
assert.Equal(t, 1, len(g.Edges))
},
},
{ {
name: "unsuspend-shape-label", name: "unsuspend-shape-label",
run: func(t *testing.T) { run: func(t *testing.T) {

View file

@ -869,6 +869,22 @@ func (c *compiler) ampersandFilter(refctx *RefContext) bool {
for _, part := range edge.ID.SrcPath { for _, part := range edge.ID.SrcPath {
srcParts = append(srcParts, part.ScalarString()) srcParts = append(srcParts, part.ScalarString())
} }
container := ParentField(edge)
if container != nil && container.Name.ScalarString() != "root" {
containerPath := []string{}
curr := container
for curr != nil && curr.Name.ScalarString() != "root" {
containerPath = append([]string{curr.Name.ScalarString()}, containerPath...)
curr = ParentField(curr)
}
srcStart := srcParts[0]
if !strings.EqualFold(srcStart, containerPath[0]) {
srcParts = append(containerPath, srcParts...)
}
}
srcPath := strings.Join(srcParts, ".") srcPath := strings.Join(srcParts, ".")
return srcPath == filterValue return srcPath == filterValue
@ -889,6 +905,23 @@ func (c *compiler) ampersandFilter(refctx *RefContext) bool {
for _, part := range edge.ID.DstPath { for _, part := range edge.ID.DstPath {
dstParts = append(dstParts, part.ScalarString()) dstParts = append(dstParts, part.ScalarString())
} }
// Find the container that holds this edge
// Build the absolute path by prepending the container's path
container := ParentField(edge)
if container != nil && container.Name.ScalarString() != "root" {
containerPath := []string{}
curr := container
for curr != nil && curr.Name.ScalarString() != "root" {
containerPath = append([]string{curr.Name.ScalarString()}, containerPath...)
curr = ParentField(curr)
}
dstStart := dstParts[0]
if !strings.EqualFold(dstStart, containerPath[0]) {
dstParts = append(containerPath, dstParts...)
}
}
dstPath := strings.Join(dstParts, ".") dstPath := strings.Join(dstParts, ".")
return dstPath == filterValue return dstPath == filterValue
@ -1273,8 +1306,37 @@ func (c *compiler) _compileEdges(refctx *RefContext) {
continue continue
} }
if refctx.Key.Value.Map != nil && refctx.Key.Value.Map.HasFilter() {
if e.Map_ == nil {
e.Map_ = &Map{
parent: e,
}
}
c.mapRefContextStack = append(c.mapRefContextStack, refctx)
ok := c.ampersandFilterMap(e.Map_, refctx.Key.Value.Map, refctx.ScopeAST)
c.mapRefContextStack = c.mapRefContextStack[:len(c.mapRefContextStack)-1]
if !ok {
continue
}
}
if refctx.Key.Primary.Suspension != nil || refctx.Key.Value.Suspension != nil { if refctx.Key.Primary.Suspension != nil || refctx.Key.Value.Suspension != nil {
if !c.lazyGlobBeingApplied { if !c.lazyGlobBeingApplied {
// Check if edge passes filter before applying suspension
if refctx.Key.Value.Map != nil && refctx.Key.Value.Map.HasFilter() {
if e.Map_ == nil {
e.Map_ = &Map{
parent: e,
}
}
c.mapRefContextStack = append(c.mapRefContextStack, refctx)
ok := c.ampersandFilterMap(e.Map_, refctx.Key.Value.Map, refctx.ScopeAST)
c.mapRefContextStack = c.mapRefContextStack[:len(c.mapRefContextStack)-1]
if !ok {
continue
}
}
var suspensionValue bool var suspensionValue bool
if refctx.Key.Primary.Suspension != nil { if refctx.Key.Primary.Suspension != nil {
suspensionValue = refctx.Key.Primary.Suspension.Value suspensionValue = refctx.Key.Primary.Suspension.Value
@ -1284,16 +1346,53 @@ func (c *compiler) _compileEdges(refctx *RefContext) {
e.suspended = suspensionValue e.suspended = suspensionValue
// If we're unsuspending an edge, we should also unsuspend its src and dst objects // If we're unsuspending an edge, we should also unsuspend its src and dst objects
// And their ancestors
if !suspensionValue { if !suspensionValue {
srcPath, dstPath := e.ID.SrcPath, e.ID.DstPath srcPath, dstPath := e.ID.SrcPath, e.ID.DstPath
srcObj := refctx.ScopeMap.GetField(srcPath...)
dstObj := refctx.ScopeMap.GetField(dstPath...)
// Make paths absolute if they're relative
container := ParentField(e)
if container != nil && container.Name.ScalarString() != "root" {
containerPath := []d2ast.String{}
curr := container
for curr != nil && curr.Name.ScalarString() != "root" {
containerPath = append([]d2ast.String{curr.Name}, containerPath...)
curr = ParentField(curr)
}
if len(srcPath) > 0 && !strings.EqualFold(srcPath[0].ScalarString(), containerPath[0].ScalarString()) {
absSrcPath := append([]d2ast.String{}, containerPath...)
srcPath = append(absSrcPath, srcPath...)
}
if len(dstPath) > 0 && !strings.EqualFold(dstPath[0].ScalarString(), containerPath[0].ScalarString()) {
absDstPath := append([]d2ast.String{}, containerPath...)
dstPath = append(absDstPath, dstPath...)
}
}
rootMap := RootMap(refctx.ScopeMap)
srcObj := rootMap.GetField(srcPath...)
dstObj := rootMap.GetField(dstPath...)
// Unsuspend source node and all its ancestors
if srcObj != nil { if srcObj != nil {
srcObj.suspended = false srcObj.suspended = false
parent := ParentField(srcObj)
for parent != nil && parent.Name.ScalarString() != "root" {
parent.suspended = false
parent = ParentField(parent)
} }
}
// Unsuspend destination node and all its ancestors
if dstObj != nil { if dstObj != nil {
dstObj.suspended = false dstObj.suspended = false
parent := ParentField(dstObj)
for parent != nil && parent.Name.ScalarString() != "root" {
parent.suspended = false
parent = ParentField(parent)
}
} }
} }
} }

View file

@ -628,102 +628,6 @@
"src_arrow": false, "src_arrow": false,
"dst_arrow": true, "dst_arrow": true,
"references": [ "references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{ {
"map_key_edge_index": 0 "map_key_edge_index": 0
}, },
@ -761,36 +665,6 @@
"src_arrow": false, "src_arrow": false,
"dst_arrow": true, "dst_arrow": true,
"references": [ "references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{ {
"map_key_edge_index": 0 "map_key_edge_index": 0
}, },
@ -834,24 +708,6 @@
"src_arrow": false, "src_arrow": false,
"dst_arrow": true, "dst_arrow": true,
"references": [ "references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{ {
"map_key_edge_index": 0 "map_key_edge_index": 0
}, },

View file

@ -1149,102 +1149,6 @@
"src_arrow": false, "src_arrow": false,
"dst_arrow": true, "dst_arrow": true,
"references": [ "references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{ {
"map_key_edge_index": 0 "map_key_edge_index": 0
}, },
@ -1282,36 +1186,6 @@
"src_arrow": false, "src_arrow": false,
"dst_arrow": true, "dst_arrow": true,
"references": [ "references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{ {
"map_key_edge_index": 0 "map_key_edge_index": 0
}, },
@ -1355,24 +1229,6 @@
"src_arrow": false, "src_arrow": false,
"dst_arrow": true, "dst_arrow": true,
"references": [ "references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{ {
"map_key_edge_index": 0 "map_key_edge_index": 0
}, },

View file

@ -0,0 +1,766 @@
{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,0:0:0-13:0:121",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,1:0:1-3:1:11",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,1:3:4-3:1:11",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,2:2:8-2:3:9",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,2:2:8-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,2:2:8-2:3:9",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,4:0:12-6:1:22",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,4:0:12-4:1:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,4:0:12-4:1:13",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,4:3:15-6:1:22",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,5:2:19-5:3:20",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,5:2:19-5:3:20",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,5:2:19-5:3:20",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:17:40",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:10:33",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:3:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:2:25-7:3:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:7:30-7:10:33",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:7:30-7:8:31",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:9:32-7:10:33",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:12:35-7:17:40",
"value": [
{
"string": "likes",
"raw_string": "likes"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,8:0:41-8:11:52",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,8:0:41-8:2:43",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,8:0:41-8:2:43",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,8:4:45-8:11:52",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:0:53-9:22:75",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:1:54-9:9:62",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:1:54-9:3:56",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:1:54-9:3:56",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:7:60-9:9:62",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:7:60-9:9:62",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:10:63-9:13:66",
"int": null,
"glob": true
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,9:15:68-9:22:75",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:0:76-12:1:120",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:1:77-10:9:85",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:1:77-10:3:79",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:1:77-10:3:79",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:7:83-10:9:85",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:7:83-10:9:85",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:10:86-10:13:89",
"int": null,
"glob": true
},
"primary": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:15:91-10:24:100",
"value": false
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,10:25:101-12:1:120",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,11:2:105-11:15:118",
"ampersand": true,
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,11:3:106-11:8:111",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,11:3:106-11:8:111",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,11:10:113-11:15:118",
"value": [
{
"string": "likes",
"raw_string": "likes"
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "likes"
},
"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/unsuspend-cross-container-edge-label.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:3:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:2:25-7:3:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "a"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "b",
"id_val": "b",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,2:2:8-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,2:2:8-2:3:9",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:3:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:0:23-7:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:2:25-7:3:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "b"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "c",
"id_val": "c",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,4:0:12-4:1:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,4:0:12-4:1:13",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:7:30-7:10:33",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:7:30-7:8:31",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:9:32-7:10:33",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "c"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "d",
"id_val": "d",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,5:2:19-5:3:20",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,5:2:19-5:3:20",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:7:30-7:10:33",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:7:30-7:8:31",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-cross-container-edge-label.d2,7:9:32-7:10:33",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "d"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": null
}

View file

@ -0,0 +1,490 @@
{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,0:0:0-10:0:94",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,1:0:1-3:1:16",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,1:3:4-3:1:16",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:2:8-2:8:14",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:2:8-2:8:14",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:2:8-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:2:8-2:3:9",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:7:13-2:8:14",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:7:13-2:8:14",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,5:0:18-5:11:29",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,5:0:18-5:2:20",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,5:0:18-5:2:20",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,5:4:22-5:11:29",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:0:30-6:22:52",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:1:31-6:9:39",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:1:31-6:3:33",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:1:31-6:3:33",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:7:37-6:9:39",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:7:37-6:9:39",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:10:40-6:13:43",
"int": null,
"glob": true
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,6:15:45-6:22:52",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:0:53-9:1:93",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:1:54-7:9:62",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:1:54-7:3:56",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:1:54-7:3:56",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:7:60-7:9:62",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:7:60-7:9:62",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:10:63-7:13:66",
"int": null,
"glob": true
},
"primary": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:15:68-7:24:77",
"value": false
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,7:25:78-9:1:93",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,8:2:82-8:11:91",
"ampersand": true,
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,8:3:83-8:6:86",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,8:3:83-8:6:86",
"value": [
{
"string": "dst",
"raw_string": "dst"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,8:8:88-8:11:91",
"value": [
{
"string": "a.c",
"raw_string": "a.c"
}
]
}
}
}
}
]
}
}
}
}
]
},
"root": {
"id": "",
"id_val": "",
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": ""
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
"edges": [
{
"index": 0,
"isCurve": false,
"src_arrow": false,
"dst_arrow": true,
"references": [
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
},
{
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": ""
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"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/unsuspend-edge-child.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
}
],
"attributes": {
"label": {
"value": "a"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "b",
"id_val": "b",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:2:8-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:2:8-2:3:9",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "b"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "c",
"id_val": "c",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:7:13-2:8:14",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-child.d2,2:7:13-2:8:14",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "c"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": null
}

View file

@ -0,0 +1,284 @@
{
"graph": {
"name": "",
"isFolderOnly": true,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,0:0:0-7:0:80",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,1:0:1-1:6:7",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,1:0:1-1:6:7",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,1:5:6-1:6:7",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,1:5:6-1:6:7",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,2:0:8-2:11:19",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,2:0:8-2:2:10",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,2:0:8-2:2:10",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,2:4:12-2:11:19",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:0:20-3:22:42",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:1:21-3:9:29",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:1:21-3:3:23",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:1:21-3:3:23",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:7:27-3:9:29",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:7:27-3:9:29",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:10:30-3:13:33",
"int": null,
"glob": true
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,3:15:35-3:22:42",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:0:43-6:1:79",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:1:44-4:7:50",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:1:44-4:2:45",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:1:44-4:2:45",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:6:49-4:7:50",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:6:49-4:7:50",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:8:51-4:11:54",
"int": null,
"glob": true
},
"primary": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:13:56-4:22:65",
"value": false
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,4:23:66-6:1:79",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,5:2:70-5:9:77",
"ampersand": true,
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,5:3:71-5:6:74",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,5:3:71-5:6:74",
"value": [
{
"string": "dst",
"raw_string": "dst"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-filter.d2,5:8:76-5:9:77",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
}
}
]
}
}
}
}
]
},
"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
},
"err": null
}

View file

@ -0,0 +1,577 @@
{
"graph": {
"name": "",
"isFolderOnly": false,
"ast": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,0:0:0-13:0:121",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,1:0:1-3:1:11",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,1:3:4-3:1:11",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,2:2:8-2:3:9",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,2:2:8-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,2:2:8-2:3:9",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,4:0:12-6:1:22",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,4:0:12-4:1:13",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,4:0:12-4:1:13",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
}
]
},
"primary": {},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,4:3:15-6:1:22",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,5:2:19-5:3:20",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,5:2:19-5:3:20",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,5:2:19-5:3:20",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"primary": {},
"value": {}
}
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:17:40",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:10:33",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:3:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:2:25-7:3:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:7:30-7:10:33",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:7:30-7:8:31",
"value": [
{
"string": "c",
"raw_string": "c"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:9:32-7:10:33",
"value": [
{
"string": "d",
"raw_string": "d"
}
]
}
}
]
},
"dst_arrow": ">"
}
],
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:12:35-7:17:40",
"value": [
{
"string": "likes",
"raw_string": "likes"
}
]
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,8:0:41-8:11:52",
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,8:0:41-8:2:43",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,8:0:41-8:2:43",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,8:4:45-8:11:52",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:0:53-9:22:75",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:1:54-9:9:62",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:1:54-9:3:56",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:1:54-9:3:56",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:7:60-9:9:62",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:7:60-9:9:62",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:10:63-9:13:66",
"int": null,
"glob": true
},
"primary": {},
"value": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,9:15:68-9:22:75",
"value": true
}
}
}
},
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:0:76-12:1:120",
"edges": [
{
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:1:77-10:9:85",
"src": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:1:77-10:3:79",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:1:77-10:3:79",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:7:83-10:9:85",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:7:83-10:9:85",
"value": [
{
"string": "**",
"raw_string": "**"
}
],
"pattern": [
"*",
"",
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:10:86-10:13:89",
"int": null,
"glob": true
},
"primary": {
"suspension": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:15:91-10:24:100",
"value": false
}
},
"value": {
"map": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,10:25:101-12:1:120",
"nodes": [
{
"map_key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,11:2:105-11:15:118",
"ampersand": true,
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,11:3:106-11:8:111",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,11:3:106-11:8:111",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,11:10:113-11:15:118",
"value": [
{
"string": "likes",
"raw_string": "likes"
}
]
}
}
}
}
]
}
}
}
}
]
},
"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/unsuspend-edge-label#01.d2,1:0:1-1:1:2",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,1:0:1-1:1:2",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:3:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:2:25-7:3:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "a"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
},
{
"id": "b",
"id_val": "b",
"references": [
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,2:2:8-2:3:9",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,2:2:8-2:3:9",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 0,
"map_key_edge_index": -1
},
{
"key": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:3:26",
"path": [
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:0:23-7:1:24",
"value": [
{
"string": "a",
"raw_string": "a"
}
]
}
},
{
"unquoted_string": {
"range": "d2/testdata/d2compiler/TestCompile2/globs/unsuspend-edge-label#01.d2,7:2:25-7:3:26",
"value": [
{
"string": "b",
"raw_string": "b"
}
]
}
}
]
},
"key_path_index": 1,
"map_key_edge_index": 0
}
],
"attributes": {
"label": {
"value": "b"
},
"labelDimensions": {
"width": 0,
"height": 0
},
"style": {},
"near_key": null,
"shape": {
"value": "rectangle"
},
"direction": {
"value": ""
},
"constraint": null
},
"zIndex": 0
}
]
},
"err": null
}

View file

@ -580,258 +580,6 @@
}, },
"due_to_glob": true, "due_to_glob": true,
"due_to_lazy_glob": false "due_to_lazy_glob": false
},
{
"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"
}
]
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": false
} }
] ]
}, },
@ -1318,6 +1066,92 @@
"due_to_glob": false, "due_to_glob": false,
"due_to_lazy_glob": false "due_to_lazy_glob": false
}, },
{
"string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:24:125",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/filters/edge.d2,7:1:102-7:33:134",
"ampersand": true,
"key": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:24:125",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:26:127-7:33:134",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": false
},
{ {
"string": { "string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125", "range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
@ -1495,6 +1329,92 @@
"due_to_glob": false, "due_to_glob": false,
"due_to_lazy_glob": false "due_to_lazy_glob": false
}, },
{
"string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
},
"key_path": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:24:125",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/filters/edge.d2,7:1:102-7:33:134",
"ampersand": true,
"key": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:24:125",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:26:127-7:33:134",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": false
},
{ {
"string": { "string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119", "range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
@ -1702,6 +1622,92 @@
"due_to_glob": false, "due_to_glob": false,
"due_to_lazy_glob": false "due_to_lazy_glob": false
}, },
{
"string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
},
"key_path": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:24:159",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/filters/edge.d2,8:1:136-8:33:168",
"ampersand": true,
"key": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:24:159",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:26:161-8:33:168",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": false
},
{ {
"string": { "string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159", "range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
@ -1879,6 +1885,92 @@
"due_to_glob": false, "due_to_glob": false,
"due_to_lazy_glob": false "due_to_lazy_glob": false
}, },
{
"string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
},
"key_path": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:24:159",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"context": {
"edge": null,
"key": {
"range": "TestCompile/filters/edge.d2,8:1:136-8:33:168",
"ampersand": true,
"key": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:24:159",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:26:161-8:33:168",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": false
},
{ {
"string": { "string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153", "range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
@ -2588,233 +2680,6 @@
}, },
"due_to_glob": false, "due_to_glob": false,
"due_to_lazy_glob": false "due_to_lazy_glob": false
},
{
"context": {
"edge": {
"range": "TestCompile/filters/edge.d2,6:1:87-6:7:93",
"src": {
"range": "TestCompile/filters/edge.d2,6:1:87-6:2:88",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,6:1:87-6:2:88",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/edge.d2,6:6:92-6:7:93",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,6:6:92-6:7:93",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/edge.d2,6:0:86-10:1:203",
"edges": [
{
"range": "TestCompile/filters/edge.d2,6:1:87-6:7:93",
"src": {
"range": "TestCompile/filters/edge.d2,6:1:87-6:2:88",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,6:1:87-6:2:88",
"value": [
{
"string": "x",
"raw_string": "x"
}
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/edge.d2,6:6:92-6:7:93",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,6:6:92-6:7:93",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/edge.d2,6:8:94-6:11:97",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/edge.d2,6:13:99-10:1:203",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/edge.d2,7:1:102-7:33:134",
"ampersand": true,
"key": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:24:125",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:2:103-7:18:119",
"value": [
{
"string": "source-arrowhead",
"raw_string": "source-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:19:120-7:24:125",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,7:26:127-7:33:134",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/edge.d2,8:1:136-8:33:168",
"ampersand": true,
"key": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:24:159",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:2:137-8:18:153",
"value": [
{
"string": "target-arrowhead",
"raw_string": "target-arrowhead"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:19:154-8:24:159",
"value": [
{
"string": "shape",
"raw_string": "shape"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,8:26:161-8:33:168",
"value": [
{
"string": "diamond",
"raw_string": "diamond"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/edge.d2,9:1:170-9:32:201",
"key": {
"range": "TestCompile/filters/edge.d2,9:1:170-9:6:175",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,9:1:170-9:6:175",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/edge.d2,9:8:177-9:32:201",
"value": [
{
"string": "diamond shape arrowheads",
"raw_string": "diamond shape arrowheads"
}
]
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": false
} }
] ]
} }

View file

@ -1505,374 +1505,6 @@
}, },
"due_to_glob": true, "due_to_glob": true,
"due_to_lazy_glob": true "due_to_lazy_glob": true
},
{
"context": {
"edge": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81",
"edges": [
{
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60",
"ampersand": true,
"key": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60",
"value": [
{
"string": "hi",
"raw_string": "hi"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79",
"key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79",
"raw": "1",
"value": "1"
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": true
},
{
"context": {
"edge": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81",
"edges": [
{
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60",
"ampersand": true,
"key": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60",
"value": [
{
"string": "hi",
"raw_string": "hi"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79",
"key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79",
"raw": "1",
"value": "1"
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": true
} }
] ]
}, },
@ -2518,558 +2150,6 @@
}, },
"due_to_glob": true, "due_to_glob": true,
"due_to_lazy_glob": true "due_to_lazy_glob": true
},
{
"context": {
"edge": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81",
"edges": [
{
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60",
"ampersand": true,
"key": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60",
"value": [
{
"string": "hi",
"raw_string": "hi"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79",
"key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79",
"raw": "1",
"value": "1"
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": true
},
{
"context": {
"edge": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81",
"edges": [
{
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60",
"ampersand": true,
"key": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60",
"value": [
{
"string": "hi",
"raw_string": "hi"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79",
"key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79",
"raw": "1",
"value": "1"
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": true
},
{
"context": {
"edge": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/label-filter/2.d2,3:0:33-6:1:81",
"edges": [
{
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:7:40",
"src": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:1:34-3:2:35",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,3:6:39-3:7:40",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/label-filter/2.d2,3:8:41-3:11:44",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/label-filter/2.d2,3:13:46-6:1:81",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,4:2:50-4:12:60",
"ampersand": true,
"key": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:3:51-4:8:56",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,4:10:58-4:12:60",
"value": [
{
"string": "hi",
"raw_string": "hi"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:18:79",
"key": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:15:76",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:2:63-5:7:68",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/2.d2,5:8:69-5:15:76",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "TestCompile/filters/label-filter/2.d2,5:17:78-5:18:79",
"raw": "1",
"value": "1"
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": true
} }
] ]
} }

View file

@ -798,190 +798,6 @@
}, },
"due_to_glob": true, "due_to_glob": true,
"due_to_lazy_glob": true "due_to_lazy_glob": true
},
{
"context": {
"edge": {
"range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:7:8",
"src": {
"range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
},
"key": {
"range": "TestCompile/filters/label-filter/3.d2,1:0:1-4:1:51",
"edges": [
{
"range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:7:8",
"src": {
"range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,1:1:2-1:2:3",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"src_arrow": "",
"dst": {
"range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,1:6:7-1:7:8",
"value": [
{
"string": "*",
"raw_string": "*"
}
],
"pattern": [
"*"
]
}
}
]
},
"dst_arrow": ">"
}
],
"edge_index": {
"range": "TestCompile/filters/label-filter/3.d2,1:8:9-1:11:12",
"int": null,
"glob": true
},
"primary": {},
"value": {
"map": {
"range": "TestCompile/filters/label-filter/3.d2,1:13:14-4:1:51",
"nodes": [
{
"map_key": {
"range": "TestCompile/filters/label-filter/3.d2,2:2:18-2:12:28",
"ampersand": true,
"key": {
"range": "TestCompile/filters/label-filter/3.d2,2:3:19-2:8:24",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,2:3:19-2:8:24",
"value": [
{
"string": "label",
"raw_string": "label"
}
]
}
}
]
},
"primary": {},
"value": {
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,2:10:26-2:12:28",
"value": [
{
"string": "hi",
"raw_string": "hi"
}
]
}
}
}
},
{
"map_key": {
"range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:20:49",
"key": {
"range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:15:44",
"path": [
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,3:2:31-3:7:36",
"value": [
{
"string": "style",
"raw_string": "style"
}
]
}
},
{
"unquoted_string": {
"range": "TestCompile/filters/label-filter/3.d2,3:8:37-3:15:44",
"value": [
{
"string": "opacity",
"raw_string": "opacity"
}
]
}
}
]
},
"primary": {},
"value": {
"number": {
"range": "TestCompile/filters/label-filter/3.d2,3:17:46-3:20:49",
"raw": "0.1",
"value": "1/10"
}
}
}
}
]
}
}
}
},
"due_to_glob": true,
"due_to_lazy_glob": true
} }
] ]
} }