...

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

View as plain text