{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-5:1:34", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-0:1:1", "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-0:1:1", "value": [ { "string": "k", "raw_string": "k" } ] } } ] }, "primary": {}, "value": {} } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,2:0:3-5:1:34", "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,2:0:3-2:6:9", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,2:0:3-2:6:9", "value": [ { "string": "layers", "raw_string": "layers" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,2:8:11-5:1:34", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,3:2:15-3:7:20", "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,3:2:15-3:3:16", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,3:2:15-3:3:16", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",1:0:0-1:0:0", "nodes": [ { "import": { "range": ",1:0:0-1:0:0", "spread": true, "pre": "", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,3:6:19-3:7:20", "value": [ { "string": "y", "raw_string": "y" } ] } } ] } } ] }, "import": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,3:5:18-3:7:20", "spread": false, "pre": "", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,3:6:19-3:7:20", "value": [ { "string": "y", "raw_string": "y" } ] } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:2:23-4:11:32", "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:2:23-4:3:24", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:2:23-4:3:24", "value": [ { "string": "z", "raw_string": "z" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:5:26-4:11:32", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:7:28-4:10:31", "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:7:28-4:9:30", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:7:28-4:9:30", "value": [ { "string": "hi", "raw_string": "hi" } ] } } ] }, "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": "k", "id_val": "k", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-0:1:1", "value": [ { "string": "k", "raw_string": "k" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "k" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ], "layers": [ { "name": "x", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-0:1:1", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "primary": {}, "value": {} } }, { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,1:0:2-1:6:8", "value": [ { "string": "layers", "raw_string": "layers" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,2:2:14-2:5:17", "value": [ { "string": "lol", "raw_string": "lol" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:4:25-3:8:29", "value": [ { "string": "asdf", "raw_string": "asdf" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:9:30-3:13:34", "value": [ { "string": "link", "raw_string": "link" } ] } } ] }, "primary": { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "root.layers.x.layers.z" } ] } }, "value": {} } } ] } } } } ] } } } }, { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,5:1:52-5:2:53", "value": [ { "string": "z", "raw_string": "z" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,5:6:57-5:9:60", "value": [ { "string": "fjf", "raw_string": "fjf" } ] } } ] }, "primary": {}, "value": {} } } ] } } } } ] } } } } ] }, "root": { "id": "", "id_val": "", "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 }, "edges": null, "objects": [ { "id": "a", "id_val": "a", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-0:1:1", "value": [ { "string": "a", "raw_string": "a" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "a" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ], "layers": [ { "name": "lol", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:4:25-3:8:29", "value": [ { "string": "asdf", "raw_string": "asdf" } ] } } ] }, "primary": {}, "value": { "map": { "range": ",0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:9:30-3:13:34", "value": [ { "string": "link", "raw_string": "link" } ] } } ] }, "primary": { "unquoted_string": { "range": ",0:0:0-0:0:0", "value": [ { "string": "root.layers.x.layers.z" } ] } }, "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": "asdf", "id_val": "asdf", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:4:25-3:13:34", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:4:25-3:8:29", "value": [ { "string": "asdf", "raw_string": "asdf" } ] } }, { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,3:9:30-3:13:34", "value": [ { "string": "link", "raw_string": "link" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "asdf" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "link": { "value": "root.layers.x.layers.z" }, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ] }, { "name": "z", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,5:6:57-5:9:60", "value": [ { "string": "fjf", "raw_string": "fjf" } ] } } ] }, "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": "fjf", "id_val": "fjf", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,5:6:57-5:9:60", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/y.d2,5:6:57-5:9:60", "value": [ { "string": "fjf", "raw_string": "fjf" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "fjf" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ] } ] }, { "name": "z", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,0:0:0-1:0:0", "nodes": [ { "map_key": { "range": ",0:0:0-0:0:0", "key": { "range": ",0:0:0-0:0:0", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:7:28-4:9:30", "value": [ { "string": "hi", "raw_string": "hi" } ] } } ] }, "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": "hi", "id_val": "hi", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:7:28-4:9:30", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/import-link-layer-4.d2,4:7:28-4:9:30", "value": [ { "string": "hi", "raw_string": "hi" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "hi" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null }, "zIndex": 0 } ] } ] }, "err": null }