...

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

View as plain text