...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/slice_style.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/slice_style.d2,0:0:0-4:0:70",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,0:0:0-0:1:1",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,0:0:0-0:1:1",
    17                    "value": [
    18                      {
    19                        "string": "a",
    20                        "raw_string": "a"
    21                      }
    22                    ]
    23                  }
    24                }
    25              ]
    26            },
    27            "primary": {},
    28            "value": {}
    29          }
    30        },
    31        {
    32          "map_key": {
    33            "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,1:0:2-1:1:3",
    34            "key": {
    35              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,1:0:2-1:1:3",
    36              "path": [
    37                {
    38                  "unquoted_string": {
    39                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,1:0:2-1:1:3",
    40                    "value": [
    41                      {
    42                        "string": "a",
    43                        "raw_string": "a"
    44                      }
    45                    ]
    46                  }
    47                }
    48              ]
    49            },
    50            "primary": {},
    51            "value": {}
    52          }
    53        },
    54        {
    55          "map_key": {
    56            "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,2:0:4-2:1:5",
    57            "key": {
    58              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,2:0:4-2:1:5",
    59              "path": [
    60                {
    61                  "unquoted_string": {
    62                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,2:0:4-2:1:5",
    63                    "value": [
    64                      {
    65                        "string": "b",
    66                        "raw_string": "b"
    67                      }
    68                    ]
    69                  }
    70                }
    71              ]
    72            },
    73            "primary": {},
    74            "value": {}
    75          }
    76        },
    77        {
    78          "map_key": {
    79            "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:0:6-3:63:69",
    80            "key": {
    81              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:0:6-3:6:12",
    82              "path": [
    83                {
    84                  "unquoted_string": {
    85                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:0:6-3:1:7",
    86                    "value": [
    87                      {
    88                        "string": "b",
    89                        "raw_string": "b"
    90                      }
    91                    ]
    92                  }
    93                },
    94                {
    95                  "unquoted_string": {
    96                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:2:8-3:6:12",
    97                    "value": [
    98                      {
    99                        "string": "icon",
   100                        "raw_string": "icon"
   101                      }
   102                    ]
   103                  }
   104                }
   105              ]
   106            },
   107            "primary": {},
   108            "value": {
   109              "unquoted_string": {
   110                "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:8:14-3:63:69",
   111                "value": [
   112                  {
   113                    "string": "https://icons.terrastruct.com/essentials/142-target.svg",
   114                    "raw_string": "https://icons.terrastruct.com/essentials/142-target.svg"
   115                  }
   116                ]
   117              }
   118            }
   119          }
   120        }
   121      ]
   122    },
   123    "root": {
   124      "id": "",
   125      "id_val": "",
   126      "attributes": {
   127        "label": {
   128          "value": ""
   129        },
   130        "labelDimensions": {
   131          "width": 0,
   132          "height": 0
   133        },
   134        "style": {},
   135        "near_key": null,
   136        "shape": {
   137          "value": ""
   138        },
   139        "direction": {
   140          "value": ""
   141        },
   142        "constraint": null
   143      },
   144      "zIndex": 0
   145    },
   146    "edges": null,
   147    "objects": [
   148      {
   149        "id": "a",
   150        "id_val": "a",
   151        "references": [
   152          {
   153            "key": {
   154              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,0:0:0-0:1:1",
   155              "path": [
   156                {
   157                  "unquoted_string": {
   158                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,0:0:0-0:1:1",
   159                    "value": [
   160                      {
   161                        "string": "a",
   162                        "raw_string": "a"
   163                      }
   164                    ]
   165                  }
   166                }
   167              ]
   168            },
   169            "key_path_index": 0,
   170            "map_key_edge_index": -1
   171          },
   172          {
   173            "key": {
   174              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,1:0:2-1:1:3",
   175              "path": [
   176                {
   177                  "unquoted_string": {
   178                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,1:0:2-1:1:3",
   179                    "value": [
   180                      {
   181                        "string": "a",
   182                        "raw_string": "a"
   183                      }
   184                    ]
   185                  }
   186                }
   187              ]
   188            },
   189            "key_path_index": 0,
   190            "map_key_edge_index": -1
   191          }
   192        ],
   193        "attributes": {
   194          "label": {
   195            "value": "a"
   196          },
   197          "labelDimensions": {
   198            "width": 0,
   199            "height": 0
   200          },
   201          "style": {},
   202          "near_key": null,
   203          "shape": {
   204            "value": "rectangle"
   205          },
   206          "direction": {
   207            "value": ""
   208          },
   209          "constraint": null
   210        },
   211        "zIndex": 0
   212      },
   213      {
   214        "id": "b",
   215        "id_val": "b",
   216        "references": [
   217          {
   218            "key": {
   219              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,2:0:4-2:1:5",
   220              "path": [
   221                {
   222                  "unquoted_string": {
   223                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,2:0:4-2:1:5",
   224                    "value": [
   225                      {
   226                        "string": "b",
   227                        "raw_string": "b"
   228                      }
   229                    ]
   230                  }
   231                }
   232              ]
   233            },
   234            "key_path_index": 0,
   235            "map_key_edge_index": -1
   236          },
   237          {
   238            "key": {
   239              "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:0:6-3:6:12",
   240              "path": [
   241                {
   242                  "unquoted_string": {
   243                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:0:6-3:1:7",
   244                    "value": [
   245                      {
   246                        "string": "b",
   247                        "raw_string": "b"
   248                      }
   249                    ]
   250                  }
   251                },
   252                {
   253                  "unquoted_string": {
   254                    "range": "d2/testdata/d2oracle/TestMove/slice_style.d2,3:2:8-3:6:12",
   255                    "value": [
   256                      {
   257                        "string": "icon",
   258                        "raw_string": "icon"
   259                      }
   260                    ]
   261                  }
   262                }
   263              ]
   264            },
   265            "key_path_index": 0,
   266            "map_key_edge_index": -1
   267          }
   268        ],
   269        "attributes": {
   270          "label": {
   271            "value": "b"
   272          },
   273          "labelDimensions": {
   274            "width": 0,
   275            "height": 0
   276          },
   277          "style": {},
   278          "icon": {
   279            "Scheme": "https",
   280            "Opaque": "",
   281            "User": null,
   282            "Host": "icons.terrastruct.com",
   283            "Path": "/essentials/142-target.svg",
   284            "RawPath": "",
   285            "OmitHost": false,
   286            "ForceQuery": false,
   287            "RawQuery": "",
   288            "Fragment": "",
   289            "RawFragment": ""
   290          },
   291          "near_key": null,
   292          "shape": {
   293            "value": "rectangle"
   294          },
   295          "direction": {
   296            "value": ""
   297          },
   298          "constraint": null
   299        },
   300        "zIndex": 0
   301      }
   302    ]
   303  },
   304  "err": "<nil>"
   305}

View as plain text