{ "graph": { "name": "", "isFolderOnly": false, "ast": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:0:0-3:1:38", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:0:0-3:1:38", "key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:0:0-0:3:3", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:0:0-0:3:3", "value": [ { "string": "foo", "raw_string": "foo" } ] } } ] }, "primary": {}, "value": { "map": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:4:4-3:0:37", "nodes": [ { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,1:2:8-1:12:18", "key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,1:2:8-1:7:13", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,1:2:8-1:7:13", "value": [ { "string": "label", "raw_string": "label" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,1:9:15-1:12:18", "value": [ { "string": "bar", "raw_string": "bar" } ] } } } }, { "map_key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,2:2:21-2:17:36", "key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,2:2:21-2:12:31", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,2:2:21-2:12:31", "value": [ { "string": "constraint", "raw_string": "constraint" } ] } } ] }, "primary": {}, "value": { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,2:14:33-2:17:36", "value": [ { "string": "BIZ", "raw_string": "BIZ" } ] } } } } ] } } } } ] }, "root": { "id": "", "id_val": "", "attributes": { "label": { "value": "" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "" }, "direction": { "value": "" }, "constraint": { "value": "" } }, "zIndex": 0 }, "edges": null, "objects": [ { "id": "foo", "id_val": "foo", "references": [ { "key": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:0:0-0:3:3", "path": [ { "unquoted_string": { "range": "d2/testdata/d2compiler/TestCompile/constraint_label.d2,0:0:0-0:3:3", "value": [ { "string": "foo", "raw_string": "foo" } ] } } ] }, "key_path_index": 0, "map_key_edge_index": -1 } ], "attributes": { "label": { "value": "bar" }, "labelDimensions": { "width": 0, "height": 0 }, "style": {}, "near_key": null, "shape": { "value": "rectangle" }, "direction": { "value": "" }, "constraint": { "value": "BIZ" } }, "zIndex": 0 } ] }, "err": null }