From 69df741a6b9a63c59b6f398f046b80882f264829 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 17 Aug 2023 14:57:14 -0700 Subject: [PATCH] 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 -}