...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/hoist_container_children.exp.json

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

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

View as plain text