...

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

View as plain text