{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,0:0:0-11:0:77", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,0:0:0-4:1:46", "key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,0:0:0-0:1:1", "value": [ { "string": "x", "raw_string": "x" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,0:3:3-4:1:46", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,1:2:7-3:3:44", "key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,1:2:7-1:6:11", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,1:2:7-1:6:11", "value": [ { "string": "link", "raw_string": "link" } ] } } ] }, "primary": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,1:8:13-1:16:21", "value": [ { "string": "layers.y", "raw_string": "layers.y" } ] } }, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,1:17:22-3:3:44", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,2:4:28-2:16:40", "key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,2:4:28-2:10:34", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,2:4:28-2:10:34", "value": [ { "string": "portal", "raw_string": "portal" } ] } } ] }, "primary": {}, "value": { "boolean": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,2:12:36-2:16:40", "value": true } } } } ] } } } } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,6:0:48-10:1:76", "key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,6:0:48-6:6:54", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,6:0:48-6:6:54", "value": [ { "string": "layers", "raw_string": "layers" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,6:8:56-10:1:76", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,7:2:60-9:3:74", "key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,7:2:60-7:3:61", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,7:2:60-7:3:61", "value": [ { "string": "y", "raw_string": "y" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,7:5:63-9:3:74", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,8:4:69-8:5:70", "key": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,8:4:69-8:5:70", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,8:4:69-8:5:70", "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/TestCompile/portal.d2,0:0:0-0:1:1", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,0:0:0-0:1:1", "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": {}, "link": { "value": "layers.y" }, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": null, "portal": { "value": "true" } }, "zIndex": 0 } ], "layers": [ { "name": "y", "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": {} } } ] }, "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/portal.d2,8:4:69-8:5:70", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/portal.d2,8:4:69-8:5:70", "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 } ] } ] }, "err": null }