...

Text file src/oss.terrastruct.com/d2/testdata/d2parser/TestParse/key_with_edge.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2parser/TestParse

     1{
     2  "ast": {
     3    "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,0:0:0-2:0:10",
     4    "nodes": [
     5      {
     6        "map_key": {
     7          "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:0:1-1:8:9",
     8          "key": {
     9            "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:0:1-1:1:2",
    10            "path": [
    11              {
    12                "unquoted_string": {
    13                  "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:0:1-1:1:2",
    14                  "value": [
    15                    {
    16                      "string": "x",
    17                      "raw_string": "x"
    18                    }
    19                  ]
    20                }
    21              }
    22            ]
    23          },
    24          "edges": [
    25            {
    26              "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:3:4-1:7:8",
    27              "src": {
    28                "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:3:4-1:4:5",
    29                "path": [
    30                  {
    31                    "unquoted_string": {
    32                      "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:3:4-1:4:5",
    33                      "value": [
    34                        {
    35                          "string": "z",
    36                          "raw_string": "z"
    37                        }
    38                      ]
    39                    }
    40                  }
    41                ]
    42              },
    43              "src_arrow": "",
    44              "dst": {
    45                "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:6:7-1:7:8",
    46                "path": [
    47                  {
    48                    "unquoted_string": {
    49                      "range": "d2/testdata/d2parser/TestParse/key_with_edge.d2,1:6:7-1:7:8",
    50                      "value": [
    51                        {
    52                          "string": "q",
    53                          "raw_string": "q"
    54                        }
    55                      ]
    56                    }
    57                  }
    58                ]
    59              },
    60              "dst_arrow": ">"
    61            }
    62          ],
    63          "primary": {},
    64          "value": {}
    65        }
    66      }
    67    ]
    68  },
    69  "err": null
    70}

View as plain text