...

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

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

     1{
     2  "fields": [
     3    {
     4      "name": "x",
     5      "primary": {
     6        "value": {
     7          "range": "TestCompile/fields/primary/root.d2,0:3:3-0:6:6",
     8          "value": [
     9            {
    10              "string": "yes",
    11              "raw_string": "yes"
    12            }
    13          ]
    14        }
    15      },
    16      "composite": {
    17        "fields": [
    18          {
    19            "name": "pqrs",
    20            "references": [
    21              {
    22                "string": {
    23                  "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
    24                  "value": [
    25                    {
    26                      "string": "pqrs",
    27                      "raw_string": "pqrs"
    28                    }
    29                  ]
    30                },
    31                "key_path": {
    32                  "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
    33                  "path": [
    34                    {
    35                      "unquoted_string": {
    36                        "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
    37                        "value": [
    38                          {
    39                            "string": "pqrs",
    40                            "raw_string": "pqrs"
    41                          }
    42                        ]
    43                      }
    44                    }
    45                  ]
    46                },
    47                "context": {
    48                  "edge": null,
    49                  "key": {
    50                    "range": "TestCompile/fields/primary/root.d2,0:9:9-0:14:14",
    51                    "key": {
    52                      "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
    53                      "path": [
    54                        {
    55                          "unquoted_string": {
    56                            "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
    57                            "value": [
    58                              {
    59                                "string": "pqrs",
    60                                "raw_string": "pqrs"
    61                              }
    62                            ]
    63                          }
    64                        }
    65                      ]
    66                    },
    67                    "primary": {},
    68                    "value": {}
    69                  }
    70                },
    71                "due_to_glob": false,
    72                "due_to_lazy_glob": false
    73              }
    74            ]
    75          }
    76        ],
    77        "edges": null
    78      },
    79      "references": [
    80        {
    81          "string": {
    82            "range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
    83            "value": [
    84              {
    85                "string": "x",
    86                "raw_string": "x"
    87              }
    88            ]
    89          },
    90          "key_path": {
    91            "range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
    92            "path": [
    93              {
    94                "unquoted_string": {
    95                  "range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
    96                  "value": [
    97                    {
    98                      "string": "x",
    99                      "raw_string": "x"
   100                    }
   101                  ]
   102                }
   103              }
   104            ]
   105          },
   106          "context": {
   107            "edge": null,
   108            "key": {
   109              "range": "TestCompile/fields/primary/root.d2,0:0:0-0:15:15",
   110              "key": {
   111                "range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
   112                "path": [
   113                  {
   114                    "unquoted_string": {
   115                      "range": "TestCompile/fields/primary/root.d2,0:0:0-0:1:1",
   116                      "value": [
   117                        {
   118                          "string": "x",
   119                          "raw_string": "x"
   120                        }
   121                      ]
   122                    }
   123                  }
   124                ]
   125              },
   126              "primary": {
   127                "unquoted_string": {
   128                  "range": "TestCompile/fields/primary/root.d2,0:3:3-0:6:6",
   129                  "value": [
   130                    {
   131                      "string": "yes",
   132                      "raw_string": "yes"
   133                    }
   134                  ]
   135                }
   136              },
   137              "value": {
   138                "map": {
   139                  "range": "TestCompile/fields/primary/root.d2,0:7:7-0:15:15",
   140                  "nodes": [
   141                    {
   142                      "map_key": {
   143                        "range": "TestCompile/fields/primary/root.d2,0:9:9-0:14:14",
   144                        "key": {
   145                          "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
   146                          "path": [
   147                            {
   148                              "unquoted_string": {
   149                                "range": "TestCompile/fields/primary/root.d2,0:9:9-0:13:13",
   150                                "value": [
   151                                  {
   152                                    "string": "pqrs",
   153                                    "raw_string": "pqrs"
   154                                  }
   155                                ]
   156                              }
   157                            }
   158                          ]
   159                        },
   160                        "primary": {},
   161                        "value": {}
   162                      }
   163                    }
   164                  ]
   165                }
   166              }
   167            }
   168          },
   169          "due_to_glob": false,
   170          "due_to_lazy_glob": false
   171        }
   172      ]
   173    }
   174  ],
   175  "edges": null
   176}

View as plain text