...

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

View as plain text