{
  "graph": {
    "name": "",
    "isFolderOnly": false,
    "ast": {
      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,0:0:0-32:0:543",
      "nodes": [
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,1:3:4-27:1:500",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,1:3:4-1:7:8",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,1:3:4-1:7:8",
                    "value": [
                      {
                        "string": "vars",
                        "raw_string": "vars"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "map": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,1:9:10-27:1:500",
                "nodes": [
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,2:2:14-26:3:498",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,2:2:14-2:11:23",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,2:2:14-2:11:23",
                              "value": [
                                {
                                  "string": "d2-legend",
                                  "raw_string": "d2-legend"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {
                        "double_quoted_string": {
                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,2:13:25-2:21:33",
                          "value": [
                            {
                              "string": "凡例",
                              "raw_string": "凡例"
                            }
                          ]
                        }
                      },
                      "value": {
                        "map": {
                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,2:21:33-26:3:498",
                          "nodes": [
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:4:39-8:5:160",
                                "key": {
                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:4:39-3:8:43",
                                  "path": [
                                    {
                                      "unquoted_string": {
                                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:4:39-3:8:43",
                                        "value": [
                                          {
                                            "string": "User",
                                            "raw_string": "User"
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "primary": {
                                  "double_quoted_string": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:10:45-3:50:85",
                                    "value": [
                                      {
                                        "string": "A person who interacts with the system",
                                        "raw_string": "A person who interacts with the system"
                                      }
                                    ]
                                  }
                                },
                                "value": {
                                  "map": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:51:86-8:5:160",
                                    "nodes": [
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,4:6:94-4:19:107",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,4:6:94-4:11:99",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,4:6:94-4:11:99",
                                                  "value": [
                                                    {
                                                      "string": "shape",
                                                      "raw_string": "shape"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "unquoted_string": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,4:13:101-4:19:107",
                                              "value": [
                                                {
                                                  "string": "person",
                                                  "raw_string": "person"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,5:6:114-7:7:154",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,5:6:114-5:11:119",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,5:6:114-5:11:119",
                                                  "value": [
                                                    {
                                                      "string": "style",
                                                      "raw_string": "style"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "map": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,5:13:121-7:7:154",
                                              "nodes": [
                                                {
                                                  "map_key": {
                                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,6:8:131-6:23:146",
                                                    "key": {
                                                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,6:8:131-6:12:135",
                                                      "path": [
                                                        {
                                                          "unquoted_string": {
                                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,6:8:131-6:12:135",
                                                            "value": [
                                                              {
                                                                "string": "fill",
                                                                "raw_string": "fill"
                                                              }
                                                            ]
                                                          }
                                                        }
                                                      ]
                                                    },
                                                    "primary": {},
                                                    "value": {
                                                      "double_quoted_string": {
                                                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,6:14:137-6:23:146",
                                                        "value": [
                                                          {
                                                            "string": "#f5f5f5",
                                                            "raw_string": "#f5f5f5"
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:4:166-13:5:259",
                                "key": {
                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:4:166-10:12:174",
                                  "path": [
                                    {
                                      "unquoted_string": {
                                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:4:166-10:12:174",
                                        "value": [
                                          {
                                            "string": "Database",
                                            "raw_string": "Database"
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "primary": {
                                  "double_quoted_string": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:14:176-10:39:201",
                                    "value": [
                                      {
                                        "string": "Stores application data",
                                        "raw_string": "Stores application data"
                                      }
                                    ]
                                  }
                                },
                                "value": {
                                  "map": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:40:202-13:5:259",
                                    "nodes": [
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,11:6:210-11:21:225",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,11:6:210-11:11:215",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,11:6:210-11:11:215",
                                                  "value": [
                                                    {
                                                      "string": "shape",
                                                      "raw_string": "shape"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "unquoted_string": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,11:13:217-11:21:225",
                                              "value": [
                                                {
                                                  "string": "cylinder",
                                                  "raw_string": "cylinder"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,12:6:232-12:27:253",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,12:6:232-12:16:242",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,12:6:232-12:11:237",
                                                  "value": [
                                                    {
                                                      "string": "style",
                                                      "raw_string": "style"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,12:12:238-12:16:242",
                                                  "value": [
                                                    {
                                                      "string": "fill",
                                                      "raw_string": "fill"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "double_quoted_string": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,12:18:244-12:27:253",
                                              "value": [
                                                {
                                                  "string": "#b5d3ff",
                                                  "raw_string": "#b5d3ff"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,15:4:265-17:5:347",
                                "key": {
                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,15:4:265-15:15:276",
                                  "path": [
                                    {
                                      "unquoted_string": {
                                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,15:4:265-15:15:276",
                                        "value": [
                                          {
                                            "string": "HiddenShape",
                                            "raw_string": "HiddenShape"
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "primary": {
                                  "double_quoted_string": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,15:17:278-15:55:316",
                                    "value": [
                                      {
                                        "string": "This should not appear in the legend",
                                        "raw_string": "This should not appear in the legend"
                                      }
                                    ]
                                  }
                                },
                                "value": {
                                  "map": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,15:56:317-17:5:347",
                                    "nodes": [
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,16:6:325-16:22:341",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,16:6:325-16:19:338",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,16:6:325-16:11:330",
                                                  "value": [
                                                    {
                                                      "string": "style",
                                                      "raw_string": "style"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,16:12:331-16:19:338",
                                                  "value": [
                                                    {
                                                      "string": "opacity",
                                                      "raw_string": "opacity"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "number": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,16:21:340-16:22:341",
                                              "raw": "0",
                                              "value": "0"
                                            }
                                          }
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:4:353-21:5:418",
                                "edges": [
                                  {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:4:353-19:20:369",
                                    "src": {
                                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:4:353-19:8:357",
                                      "path": [
                                        {
                                          "unquoted_string": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:4:353-19:8:357",
                                            "value": [
                                              {
                                                "string": "User",
                                                "raw_string": "User"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "src_arrow": "",
                                    "dst": {
                                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:12:361-19:20:369",
                                      "path": [
                                        {
                                          "unquoted_string": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:12:361-19:20:369",
                                            "value": [
                                              {
                                                "string": "Database",
                                                "raw_string": "Database"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "dst_arrow": ">"
                                  }
                                ],
                                "primary": {
                                  "double_quoted_string": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:22:371-19:34:383",
                                    "value": [
                                      {
                                        "string": "Reads data",
                                        "raw_string": "Reads data"
                                      }
                                    ]
                                  }
                                },
                                "value": {
                                  "map": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:35:384-21:5:418",
                                    "nodes": [
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,20:6:392-20:26:412",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,20:6:392-20:18:404",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,20:6:392-20:11:397",
                                                  "value": [
                                                    {
                                                      "string": "style",
                                                      "raw_string": "style"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,20:12:398-20:18:404",
                                                  "value": [
                                                    {
                                                      "string": "stroke",
                                                      "raw_string": "stroke"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "double_quoted_string": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,20:20:406-20:26:412",
                                              "value": [
                                                {
                                                  "string": "blue",
                                                  "raw_string": "blue"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:4:424-25:5:494",
                                "edges": [
                                  {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:4:424-23:20:440",
                                    "src": {
                                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:4:424-23:12:432",
                                      "path": [
                                        {
                                          "unquoted_string": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:4:424-23:12:432",
                                            "value": [
                                              {
                                                "string": "Database",
                                                "raw_string": "Database"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "src_arrow": "",
                                    "dst": {
                                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:16:436-23:20:440",
                                      "path": [
                                        {
                                          "unquoted_string": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:16:436-23:20:440",
                                            "value": [
                                              {
                                                "string": "User",
                                                "raw_string": "User"
                                              }
                                            ]
                                          }
                                        }
                                      ]
                                    },
                                    "dst_arrow": ">"
                                  }
                                ],
                                "primary": {
                                  "double_quoted_string": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:22:442-23:39:459",
                                    "value": [
                                      {
                                        "string": "Returns results",
                                        "raw_string": "Returns results"
                                      }
                                    ]
                                  }
                                },
                                "value": {
                                  "map": {
                                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:40:460-25:5:494",
                                    "nodes": [
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile/legend.d2,24:6:468-24:26:488",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,24:6:468-24:23:485",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,24:6:468-24:11:473",
                                                  "value": [
                                                    {
                                                      "string": "style",
                                                      "raw_string": "style"
                                                    }
                                                  ]
                                                }
                                              },
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,24:12:474-24:23:485",
                                                  "value": [
                                                    {
                                                      "string": "stroke-dash",
                                                      "raw_string": "stroke-dash"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "number": {
                                              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,24:25:487-24:26:488",
                                              "raw": "5",
                                              "value": "5"
                                            }
                                          }
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,29:0:502-29:10:512",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,29:0:502-29:4:506",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,29:0:502-29:4:506",
                    "value": [
                      {
                        "string": "user",
                        "raw_string": "user"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "unquoted_string": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,29:6:508-29:10:512",
                "value": [
                  {
                    "string": "User",
                    "raw_string": "User"
                  }
                ]
              }
            }
          }
        },
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,30:0:513-30:12:525",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,30:0:513-30:2:515",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,30:0:513-30:2:515",
                    "value": [
                      {
                        "string": "db",
                        "raw_string": "db"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "unquoted_string": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,30:4:517-30:12:525",
                "value": [
                  {
                    "string": "Database",
                    "raw_string": "Database"
                  }
                ]
              }
            }
          }
        },
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:0:526-31:16:542",
            "edges": [
              {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:0:526-31:10:536",
                "src": {
                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:0:526-31:4:530",
                  "path": [
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:0:526-31:4:530",
                        "value": [
                          {
                            "string": "user",
                            "raw_string": "user"
                          }
                        ]
                      }
                    }
                  ]
                },
                "src_arrow": "",
                "dst": {
                  "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:8:534-31:10:536",
                  "path": [
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:8:534-31:10:536",
                        "value": [
                          {
                            "string": "db",
                            "raw_string": "db"
                          }
                        ]
                      }
                    }
                  ]
                },
                "dst_arrow": ">"
              }
            ],
            "primary": {},
            "value": {
              "unquoted_string": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:12:538-31:16:542",
                "value": [
                  {
                    "string": "Uses",
                    "raw_string": "Uses"
                  }
                ]
              }
            }
          }
        }
      ]
    },
    "root": {
      "id": "",
      "id_val": "",
      "attributes": {
        "label": {
          "value": ""
        },
        "labelDimensions": {
          "width": 0,
          "height": 0
        },
        "style": {},
        "iconStyle": {},
        "near_key": null,
        "shape": {
          "value": ""
        },
        "direction": {
          "value": ""
        },
        "constraint": null
      },
      "zIndex": 0
    },
    "legend": {
      "label": "凡例",
      "objects": [
        {
          "id": "User",
          "id_val": "User",
          "references": [
            {
              "key": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:4:39-3:8:43",
                "path": [
                  {
                    "unquoted_string": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,3:4:39-3:8:43",
                      "value": [
                        {
                          "string": "User",
                          "raw_string": "User"
                        }
                      ]
                    }
                  }
                ]
              },
              "key_path_index": 0,
              "map_key_edge_index": -1
            },
            {
              "key": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:4:353-19:8:357",
                "path": [
                  {
                    "unquoted_string": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:4:353-19:8:357",
                      "value": [
                        {
                          "string": "User",
                          "raw_string": "User"
                        }
                      ]
                    }
                  }
                ]
              },
              "key_path_index": 0,
              "map_key_edge_index": 0
            },
            {
              "key": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:16:436-23:20:440",
                "path": [
                  {
                    "unquoted_string": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:16:436-23:20:440",
                      "value": [
                        {
                          "string": "User",
                          "raw_string": "User"
                        }
                      ]
                    }
                  }
                ]
              },
              "key_path_index": 0,
              "map_key_edge_index": 0
            }
          ],
          "box": {
            "TopLeft": {
              "x": 10,
              "y": 10
            },
            "Width": 100,
            "Height": 100
          },
          "attributes": {
            "label": {
              "value": "A person who interacts with the system"
            },
            "labelDimensions": {
              "width": 0,
              "height": 0
            },
            "style": {
              "fill": {
                "value": "#f5f5f5"
              }
            },
            "iconStyle": {},
            "near_key": null,
            "shape": {
              "value": "person"
            },
            "direction": {
              "value": ""
            },
            "constraint": null
          },
          "zIndex": 0
        },
        {
          "id": "Database",
          "id_val": "Database",
          "references": [
            {
              "key": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:4:166-10:12:174",
                "path": [
                  {
                    "unquoted_string": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,10:4:166-10:12:174",
                      "value": [
                        {
                          "string": "Database",
                          "raw_string": "Database"
                        }
                      ]
                    }
                  }
                ]
              },
              "key_path_index": 0,
              "map_key_edge_index": -1
            },
            {
              "key": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:12:361-19:20:369",
                "path": [
                  {
                    "unquoted_string": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,19:12:361-19:20:369",
                      "value": [
                        {
                          "string": "Database",
                          "raw_string": "Database"
                        }
                      ]
                    }
                  }
                ]
              },
              "key_path_index": 0,
              "map_key_edge_index": 0
            },
            {
              "key": {
                "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:4:424-23:12:432",
                "path": [
                  {
                    "unquoted_string": {
                      "range": "d2/testdata/d2compiler/TestCompile/legend.d2,23:4:424-23:12:432",
                      "value": [
                        {
                          "string": "Database",
                          "raw_string": "Database"
                        }
                      ]
                    }
                  }
                ]
              },
              "key_path_index": 0,
              "map_key_edge_index": 0
            }
          ],
          "box": {
            "TopLeft": {
              "x": 10,
              "y": 10
            },
            "Width": 100,
            "Height": 100
          },
          "attributes": {
            "label": {
              "value": "Stores application data"
            },
            "labelDimensions": {
              "width": 0,
              "height": 0
            },
            "style": {
              "fill": {
                "value": "#b5d3ff"
              }
            },
            "iconStyle": {},
            "near_key": null,
            "shape": {
              "value": "cylinder"
            },
            "direction": {
              "value": ""
            },
            "constraint": null
          },
          "zIndex": 0
        }
      ],
      "edges": [
        {
          "index": 0,
          "isCurve": false,
          "route": [
            {
              "x": 10,
              "y": 10
            },
            {
              "x": 110,
              "y": 10
            }
          ],
          "src_arrow": false,
          "dst_arrow": true,
          "references": [
            {
              "map_key_edge_index": 0
            }
          ],
          "attributes": {
            "label": {
              "value": "Reads data"
            },
            "labelDimensions": {
              "width": 0,
              "height": 0
            },
            "style": {
              "stroke": {
                "value": "blue"
              }
            },
            "iconStyle": {},
            "near_key": null,
            "shape": {
              "value": ""
            },
            "direction": {
              "value": ""
            },
            "constraint": null
          },
          "zIndex": 0
        },
        {
          "index": 0,
          "isCurve": false,
          "route": [
            {
              "x": 10,
              "y": 10
            },
            {
              "x": 110,
              "y": 10
            }
          ],
          "src_arrow": false,
          "dst_arrow": true,
          "references": [
            {
              "map_key_edge_index": 0
            }
          ],
          "attributes": {
            "label": {
              "value": "Returns results"
            },
            "labelDimensions": {
              "width": 0,
              "height": 0
            },
            "style": {
              "strokeDash": {
                "value": "5"
              }
            },
            "iconStyle": {},
            "near_key": null,
            "shape": {
              "value": ""
            },
            "direction": {
              "value": ""
            },
            "constraint": null
          },
          "zIndex": 0
        }
      ]
    },
    "edges": [
      {
        "index": 0,
        "isCurve": false,
        "src_arrow": false,
        "dst_arrow": true,
        "references": [
          {
            "map_key_edge_index": 0
          }
        ],
        "attributes": {
          "label": {
            "value": "Uses"
          },
          "labelDimensions": {
            "width": 0,
            "height": 0
          },
          "style": {},
          "iconStyle": {},
          "near_key": null,
          "shape": {
            "value": ""
          },
          "direction": {
            "value": ""
          },
          "constraint": null
        },
        "zIndex": 0
      }
    ],
    "objects": [
      {
        "id": "user",
        "id_val": "user",
        "references": [
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,29:0:502-29:4:506",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,29:0:502-29:4:506",
                    "value": [
                      {
                        "string": "user",
                        "raw_string": "user"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": -1
          },
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:0:526-31:4:530",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:0:526-31:4:530",
                    "value": [
                      {
                        "string": "user",
                        "raw_string": "user"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": 0
          }
        ],
        "attributes": {
          "label": {
            "value": "User"
          },
          "labelDimensions": {
            "width": 0,
            "height": 0
          },
          "style": {},
          "iconStyle": {},
          "near_key": null,
          "shape": {
            "value": "rectangle"
          },
          "direction": {
            "value": ""
          },
          "constraint": null
        },
        "zIndex": 0
      },
      {
        "id": "db",
        "id_val": "db",
        "references": [
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,30:0:513-30:2:515",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,30:0:513-30:2:515",
                    "value": [
                      {
                        "string": "db",
                        "raw_string": "db"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": -1
          },
          {
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:8:534-31:10:536",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile/legend.d2,31:8:534-31:10:536",
                    "value": [
                      {
                        "string": "db",
                        "raw_string": "db"
                      }
                    ]
                  }
                }
              ]
            },
            "key_path_index": 0,
            "map_key_edge_index": 0
          }
        ],
        "attributes": {
          "label": {
            "value": "Database"
          },
          "labelDimensions": {
            "width": 0,
            "height": 0
          },
          "style": {},
          "iconStyle": {},
          "near_key": null,
          "shape": {
            "value": "rectangle"
          },
          "direction": {
            "value": ""
          },
          "constraint": null
        },
        "zIndex": 0
      }
    ]
  },
  "err": null
}
