...

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

View as plain text