...

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

View as plain text