{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,0:0:0-14:0:109", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:0:1-1:22:23", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:0:1-1:14:15", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:0:1-1:3:4", "value": [ { "string": "***", "raw_string": "***" } ], "pattern": [ "*", "", "*", "", "*" ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:4:5-1:9:10", "value": [ { "string": "style", "raw_string": "style" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:10:11-1:14:15", "value": [ { "string": "fill", "raw_string": "fill" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23", "value": [ { "string": "yellow", "raw_string": "yellow" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:0:24-2:16:40", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:0:24-2:8:32", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:0:24-2:2:26", "value": [ { "string": "**", "raw_string": "**" } ], "pattern": [ "*", "", "*" ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:3:27-2:8:32", "value": [ { "string": "shape", "raw_string": "shape" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,2:10:34-2:16:40", "value": [ { "string": "circle", "raw_string": "circle" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:0:41-3:22:63", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:0:41-3:16:57", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:0:41-3:1:42", "value": [ { "string": "*", "raw_string": "*" } ], "pattern": [ "*" ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:2:43-3:7:48", "value": [ { "string": "style", "raw_string": "style" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:8:49-3:16:57", "value": [ { "string": "multiple", "raw_string": "multiple" } ] } } ] }, "primary": {}, "value": { "boolean": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,3:18:59-3:22:63", "value": true } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-7:1:75", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:3:68-7:1:75", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "primary": {}, "value": {} } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:0:77-13:1:108", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:0:77-9:6:83", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:0:77-9:6:83", "value": [ { "string": "layers", "raw_string": "layers" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,9:8:85-13:1:108", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:2:89-12:3:106", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:2:89-10:6:93", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:2:89-10:6:93", "value": [ { "string": "next", "raw_string": "next" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,10:8:95-12:3:106", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "primary": {}, "value": {} } } ] } } } } ] } } } } ] }, "root": { "id": "", "id_val": "", "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 }, "edges": null, "objects": [ { "id": "x", "id_val": "x", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,5:0:65-5:1:66", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "x" }, "labelDimensions": { "width": 0, "height": 0 }, "style": { "fill": { "value": "yellow" }, "multiple": { "value": "true" } }, "near_key": null, "shape": { "value": "circle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 }, { "id": "y", "id_val": "y", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,6:2:72-6:3:73", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "y" }, "labelDimensions": { "width": 0, "height": 0 }, "style": { "fill": { "value": "yellow" } }, "near_key": null, "shape": { "value": "circle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ], "layers": [ { "name": "next", "isFolderOnly": false, "ast": { "range": ",1:0:0-2:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "a" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",1:0:0-2:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "style" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",1:0:0-2:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "fill" } ] } } ] }, "primary": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,1:16:17-1:22:23", "value": [ { "string": "yellow", "raw_string": "yellow" } ] } }, "value": {} } } ] } } } } ] } } } } ] }, "root": { "id": "", "id_val": "", "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 }, "edges": null, "objects": [ { "id": "a", "id_val": "a", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile2/globs/alixander-lazy-globs-review.d2,11:4:101-11:5:102", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "a" }, "labelDimensions": { "width": 0, "height": 0 }, "style": { "fill": { "value": "yellow" } }, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ] } ] }, "err": null }