...

Text file src/oss.terrastruct.com/d2/testdata/d2ir/TestCompile/fields/label.exp.json

Documentation: oss.terrastruct.com/d2/testdata/d2ir/TestCompile/fields

     1{
     2  "fields": [
     3    {
     4      "name": "x",
     5      "primary": {
     6        "value": {
     7          "range": "TestCompile/fields/label.d2,0:3:3-0:6:6",
     8          "value": [
     9            {
    10              "string": "yes",
    11              "raw_string": "yes"
    12            }
    13          ]
    14        }
    15      },
    16      "references": [
    17        {
    18          "string": {
    19            "range": "TestCompile/fields/label.d2,0:0:0-0:1:1",
    20            "value": [
    21              {
    22                "string": "x",
    23                "raw_string": "x"
    24              }
    25            ]
    26          },
    27          "key_path": {
    28            "range": "TestCompile/fields/label.d2,0:0:0-0:1:1",
    29            "path": [
    30              {
    31                "unquoted_string": {
    32                  "range": "TestCompile/fields/label.d2,0:0:0-0:1:1",
    33                  "value": [
    34                    {
    35                      "string": "x",
    36                      "raw_string": "x"
    37                    }
    38                  ]
    39                }
    40              }
    41            ]
    42          },
    43          "context": {
    44            "edge": null,
    45            "key": {
    46              "range": "TestCompile/fields/label.d2,0:0:0-0:6:6",
    47              "key": {
    48                "range": "TestCompile/fields/label.d2,0:0:0-0:1:1",
    49                "path": [
    50                  {
    51                    "unquoted_string": {
    52                      "range": "TestCompile/fields/label.d2,0:0:0-0:1:1",
    53                      "value": [
    54                        {
    55                          "string": "x",
    56                          "raw_string": "x"
    57                        }
    58                      ]
    59                    }
    60                  }
    61                ]
    62              },
    63              "primary": {},
    64              "value": {
    65                "unquoted_string": {
    66                  "range": "TestCompile/fields/label.d2,0:3:3-0:6:6",
    67                  "value": [
    68                    {
    69                      "string": "yes",
    70                      "raw_string": "yes"
    71                    }
    72                  ]
    73                }
    74              }
    75            }
    76          },
    77          "due_to_glob": false,
    78          "due_to_lazy_glob": false
    79        }
    80      ]
    81    }
    82  ],
    83  "edges": null
    84}

View as plain text