...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/move_into_key_with_value.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/move_into_key_with_value.d2,0:0:0-3:0:16",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:0:0-2:1:15",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "a",
    20                        "raw_string": "a"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {
    28              "unquoted_string": {
    29                "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:3:3-0:7:7",
    30                "value": [
    31                  {
    32                    "string": "meow",
    33                    "raw_string": "meow"
    34                  }
    35                ]
    36              }
    37            },
    38            "value": {
    39              "map": {
    40                "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:8:8-2:1:15",
    41                "nodes": [
    42                  {
    43                    "map_key": {
    44                      "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,1:2:12-1:3:13",
    45                      "key": {
    46                        "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,1:2:12-1:3:13",
    47                        "path": [
    48                          {
    49                            "unquoted_string": {
    50                              "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,1:2:12-1:3:13",
    51                              "value": [
    52                                {
    53                                  "string": "b",
    54                                  "raw_string": "b"
    55                                }
    56                              ]
    57                            }
    58                          }
    59                        ]
    60                      },
    61                      "primary": {},
    62                      "value": {}
    63                    }
    64                  }
    65                ]
    66              }
    67            }
    68          }
    69        }
    70      ]
    71    },
    72    "root": {
    73      "id": "",
    74      "id_val": "",
    75      "attributes": {
    76        "label": {
    77          "value": ""
    78        },
    79        "labelDimensions": {
    80          "width": 0,
    81          "height": 0
    82        },
    83        "style": {},
    84        "near_key": null,
    85        "shape": {
    86          "value": ""
    87        },
    88        "direction": {
    89          "value": ""
    90        },
    91        "constraint": null
    92      },
    93      "zIndex": 0
    94    },
    95    "edges": null,
    96    "objects": [
    97      {
    98        "id": "a",
    99        "id_val": "a",
   100        "references": [
   101          {
   102            "key": {
   103              "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:0:0-0:1:1",
   104              "path": [
   105                {
   106                  "unquoted_string": {
   107                    "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,0:0:0-0:1:1",
   108                    "value": [
   109                      {
   110                        "string": "a",
   111                        "raw_string": "a"
   112                      }
   113                    ]
   114                  }
   115                }
   116              ]
   117            },
   118            "key_path_index": 0,
   119            "map_key_edge_index": -1
   120          }
   121        ],
   122        "attributes": {
   123          "label": {
   124            "value": "meow"
   125          },
   126          "labelDimensions": {
   127            "width": 0,
   128            "height": 0
   129          },
   130          "style": {},
   131          "near_key": null,
   132          "shape": {
   133            "value": "rectangle"
   134          },
   135          "direction": {
   136            "value": ""
   137          },
   138          "constraint": null
   139        },
   140        "zIndex": 0
   141      },
   142      {
   143        "id": "b",
   144        "id_val": "b",
   145        "references": [
   146          {
   147            "key": {
   148              "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,1:2:12-1:3:13",
   149              "path": [
   150                {
   151                  "unquoted_string": {
   152                    "range": "d2/testdata/d2oracle/TestMove/move_into_key_with_value.d2,1:2:12-1:3:13",
   153                    "value": [
   154                      {
   155                        "string": "b",
   156                        "raw_string": "b"
   157                      }
   158                    ]
   159                  }
   160                }
   161              ]
   162            },
   163            "key_path_index": 0,
   164            "map_key_edge_index": -1
   165          }
   166        ],
   167        "attributes": {
   168          "label": {
   169            "value": "b"
   170          },
   171          "labelDimensions": {
   172            "width": 0,
   173            "height": 0
   174          },
   175          "style": {},
   176          "near_key": null,
   177          "shape": {
   178            "value": "rectangle"
   179          },
   180          "direction": {
   181            "value": ""
   182          },
   183          "constraint": null
   184        },
   185        "zIndex": 0
   186      }
   187    ]
   188  },
   189  "err": "<nil>"
   190}

View as plain text