...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestDelete/underscore_no_conflict.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2oracle/TestDelete

     1{
     2  "graph": {
     3    "name": "",
     4    "isFolderOnly": false,
     5    "ast": {
     6      "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:0:0-5:0:18",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:0:0-4:1:17",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "x",
    20                        "raw_string": "x"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {},
    28            "value": {
    29              "map": {
    30                "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:3:3-4:1:17",
    31                "nodes": [
    32                  {
    33                    "map_key": {
    34                      "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:2:7-1:5:10",
    35                      "key": {
    36                        "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:2:7-1:5:10",
    37                        "path": [
    38                          {
    39                            "unquoted_string": {
    40                              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:2:7-1:3:8",
    41                              "value": [
    42                                {
    43                                  "string": "_",
    44                                  "raw_string": "_"
    45                                }
    46                              ]
    47                            }
    48                          },
    49                          {
    50                            "unquoted_string": {
    51                              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:4:9-1:5:10",
    52                              "value": [
    53                                {
    54                                  "string": "z",
    55                                  "raw_string": "z"
    56                                }
    57                              ]
    58                            }
    59                          }
    60                        ]
    61                      },
    62                      "primary": {},
    63                      "value": {}
    64                    }
    65                  },
    66                  {
    67                    "map_key": {
    68                      "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,3:2:14-3:3:15",
    69                      "key": {
    70                        "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,3:2:14-3:3:15",
    71                        "path": [
    72                          {
    73                            "unquoted_string": {
    74                              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,3:2:14-3:3:15",
    75                              "value": [
    76                                {
    77                                  "string": "z",
    78                                  "raw_string": "z"
    79                                }
    80                              ]
    81                            }
    82                          }
    83                        ]
    84                      },
    85                      "primary": {},
    86                      "value": {}
    87                    }
    88                  }
    89                ]
    90              }
    91            }
    92          }
    93        }
    94      ]
    95    },
    96    "root": {
    97      "id": "",
    98      "id_val": "",
    99      "attributes": {
   100        "label": {
   101          "value": ""
   102        },
   103        "labelDimensions": {
   104          "width": 0,
   105          "height": 0
   106        },
   107        "style": {},
   108        "near_key": null,
   109        "shape": {
   110          "value": ""
   111        },
   112        "direction": {
   113          "value": ""
   114        },
   115        "constraint": null
   116      },
   117      "zIndex": 0
   118    },
   119    "edges": null,
   120    "objects": [
   121      {
   122        "id": "x",
   123        "id_val": "x",
   124        "references": [
   125          {
   126            "key": {
   127              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:0:0-0:1:1",
   128              "path": [
   129                {
   130                  "unquoted_string": {
   131                    "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,0:0:0-0:1:1",
   132                    "value": [
   133                      {
   134                        "string": "x",
   135                        "raw_string": "x"
   136                      }
   137                    ]
   138                  }
   139                }
   140              ]
   141            },
   142            "key_path_index": 0,
   143            "map_key_edge_index": -1
   144          }
   145        ],
   146        "attributes": {
   147          "label": {
   148            "value": "x"
   149          },
   150          "labelDimensions": {
   151            "width": 0,
   152            "height": 0
   153          },
   154          "style": {},
   155          "near_key": null,
   156          "shape": {
   157            "value": "rectangle"
   158          },
   159          "direction": {
   160            "value": ""
   161          },
   162          "constraint": null
   163        },
   164        "zIndex": 0
   165      },
   166      {
   167        "id": "z",
   168        "id_val": "z",
   169        "references": [
   170          {
   171            "key": {
   172              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:2:7-1:5:10",
   173              "path": [
   174                {
   175                  "unquoted_string": {
   176                    "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:2:7-1:3:8",
   177                    "value": [
   178                      {
   179                        "string": "_",
   180                        "raw_string": "_"
   181                      }
   182                    ]
   183                  }
   184                },
   185                {
   186                  "unquoted_string": {
   187                    "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,1:4:9-1:5:10",
   188                    "value": [
   189                      {
   190                        "string": "z",
   191                        "raw_string": "z"
   192                      }
   193                    ]
   194                  }
   195                }
   196              ]
   197            },
   198            "key_path_index": 1,
   199            "map_key_edge_index": -1
   200          }
   201        ],
   202        "attributes": {
   203          "label": {
   204            "value": "z"
   205          },
   206          "labelDimensions": {
   207            "width": 0,
   208            "height": 0
   209          },
   210          "style": {},
   211          "near_key": null,
   212          "shape": {
   213            "value": "rectangle"
   214          },
   215          "direction": {
   216            "value": ""
   217          },
   218          "constraint": null
   219        },
   220        "zIndex": 0
   221      },
   222      {
   223        "id": "z",
   224        "id_val": "z",
   225        "references": [
   226          {
   227            "key": {
   228              "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,3:2:14-3:3:15",
   229              "path": [
   230                {
   231                  "unquoted_string": {
   232                    "range": "d2/testdata/d2oracle/TestDelete/underscore_no_conflict.d2,3:2:14-3:3:15",
   233                    "value": [
   234                      {
   235                        "string": "z",
   236                        "raw_string": "z"
   237                      }
   238                    ]
   239                  }
   240                }
   241              ]
   242            },
   243            "key_path_index": 0,
   244            "map_key_edge_index": -1
   245          }
   246        ],
   247        "attributes": {
   248          "label": {
   249            "value": "z"
   250          },
   251          "labelDimensions": {
   252            "width": 0,
   253            "height": 0
   254          },
   255          "style": {},
   256          "near_key": null,
   257          "shape": {
   258            "value": "rectangle"
   259          },
   260          "direction": {
   261            "value": ""
   262          },
   263          "constraint": null
   264        },
   265        "zIndex": 0
   266      }
   267    ]
   268  },
   269  "err": "<nil>"
   270}

View as plain text