{
  "graph": {
    "name": "",
    "isFolderOnly": true,
    "ast": {
      "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,0:0:0-13:0:109",
      "nodes": [
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,1:0:1-3:1:24",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,1:0:1-1:4:5",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,1:0:1-1:4:5",
                    "value": [
                      {
                        "string": "vars",
                        "raw_string": "vars"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "map": {
                "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,1:6:7-3:1:24",
                "nodes": [
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,2:2:11-2:13:22",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,2:2:11-2:3:12",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,2:2:11-2:3:12",
                              "value": [
                                {
                                  "string": "x",
                                  "raw_string": "x"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {
                        "unquoted_string": {
                          "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,2:5:14-2:13:22",
                          "value": [
                            {
                              "string": "im x var",
                              "raw_string": "im x var"
                            }
                          ]
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "map_key": {
            "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,5:0:26-12:1:108",
            "key": {
              "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,5:0:26-5:9:35",
              "path": [
                {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,5:0:26-5:9:35",
                    "value": [
                      {
                        "string": "scenarios",
                        "raw_string": "scenarios"
                      }
                    ]
                  }
                }
              ]
            },
            "primary": {},
            "value": {
              "map": {
                "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,5:11:37-12:1:108",
                "nodes": [
                  {
                    "map_key": {
                      "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,6:2:41-11:3:106",
                      "key": {
                        "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,6:2:41-6:3:42",
                        "path": [
                          {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,6:2:41-6:3:42",
                              "value": [
                                {
                                  "string": "l",
                                  "raw_string": "l"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "primary": {},
                      "value": {
                        "map": {
                          "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,6:5:44-11:3:106",
                          "nodes": [
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,7:4:50-9:5:90",
                                "key": {
                                  "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,7:4:50-7:8:54",
                                  "path": [
                                    {
                                      "unquoted_string": {
                                        "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,7:4:50-7:8:54",
                                        "value": [
                                          {
                                            "string": "vars",
                                            "raw_string": "vars"
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "primary": {},
                                "value": {
                                  "map": {
                                    "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,7:10:56-9:5:90",
                                    "nodes": [
                                      {
                                        "map_key": {
                                          "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,8:6:64-8:26:84",
                                          "key": {
                                            "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,8:6:64-8:7:65",
                                            "path": [
                                              {
                                                "unquoted_string": {
                                                  "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,8:6:64-8:7:65",
                                                  "value": [
                                                    {
                                                      "string": "x",
                                                      "raw_string": "x"
                                                    }
                                                  ]
                                                }
                                              }
                                            ]
                                          },
                                          "primary": {},
                                          "value": {
                                            "unquoted_string": {
                                              "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,8:9:67-8:26:84",
                                              "value": [
                                                {
                                                  "string": "im replaced x var",
                                                  "raw_string": "im replaced x var"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            {
                              "map_key": {
                                "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:4:95-10:11:102",
                                "key": {
                                  "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:4:95-10:5:96",
                                  "path": [
                                    {
                                      "unquoted_string": {
                                        "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:4:95-10:5:96",
                                        "value": [
                                          {
                                            "string": "x",
                                            "raw_string": "x"
                                          }
                                        ]
                                      }
                                    }
                                  ]
                                },
                                "primary": {},
                                "value": {
                                  "unquoted_string": {
                                    "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:7:98-10:8:99",
                                    "value": [
                                      {
                                        "substitution": {
                                          "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:7:98-10:11:102",
                                          "spread": false,
                                          "path": [
                                            {
                                              "unquoted_string": {
                                                "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:9:100-10:10:101",
                                                "value": [
                                                  {
                                                    "string": "x",
                                                    "raw_string": "x"
                                                  }
                                                ]
                                              }
                                            }
                                          ]
                                        }
                                      }
                                    ]
                                  }
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      ]
    },
    "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
    },
    "edges": null,
    "objects": null,
    "scenarios": [
      {
        "name": "l",
        "isFolderOnly": false,
        "ast": {
          "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.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/TestCompile2/vars/boards/replace.d2,1:0:1-1:4:5",
                        "value": [
                          {
                            "string": "vars",
                            "raw_string": "vars"
                          }
                        ]
                      }
                    }
                  ]
                },
                "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": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,2:2:11-2:3:12",
                                  "value": [
                                    {
                                      "string": "x",
                                      "raw_string": "x"
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          "primary": {
                            "unquoted_string": {
                              "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,8:9:67-8:26:84",
                              "value": [
                                {
                                  "string": "im replaced x var",
                                  "raw_string": "im replaced x var"
                                }
                              ]
                            }
                          },
                          "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/TestCompile2/vars/boards/replace.d2,10:4:95-10:5:96",
                        "value": [
                          {
                            "string": "x",
                            "raw_string": "x"
                          }
                        ]
                      }
                    }
                  ]
                },
                "primary": {
                  "unquoted_string": {
                    "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,8:9:67-8:26:84",
                    "value": [
                      {
                        "string": "im replaced x var",
                        "raw_string": "im replaced x var"
                      }
                    ]
                  }
                },
                "value": {}
              }
            }
          ]
        },
        "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
        },
        "edges": null,
        "objects": [
          {
            "id": "x",
            "id_val": "x",
            "references": [
              {
                "key": {
                  "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:4:95-10:5:96",
                  "path": [
                    {
                      "unquoted_string": {
                        "range": "d2/testdata/d2compiler/TestCompile2/vars/boards/replace.d2,10:4:95-10:5:96",
                        "value": [
                          {
                            "string": "x",
                            "raw_string": "x"
                          }
                        ]
                      }
                    }
                  ]
                },
                "key_path_index": 0,
                "map_key_edge_index": -1
              }
            ],
            "attributes": {
              "label": {
                "value": "im replaced x var"
              },
              "labelDimensions": {
                "width": 0,
                "height": 0
              },
              "style": {},
              "iconStyle": {},
              "near_key": null,
              "shape": {
                "value": "rectangle"
              },
              "direction": {
                "value": ""
              },
              "constraint": null
            },
            "zIndex": 0
          }
        ]
      }
    ]
  },
  "err": null
}
