...

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

View as plain text