...

Text file src/oss.terrastruct.com/d2/testdata/d2oracle/TestMove/underscore_split_out.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/underscore_split_out.d2,0:0:0-10:0:60",
     7      "nodes": [
     8        {
     9          "map_key": {
    10            "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,0:0:0-9:1:59",
    11            "key": {
    12              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,0:0:0-0:1:1",
    13              "path": [
    14                {
    15                  "unquoted_string": {
    16                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.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              "map": {
    30                "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,0:3:3-9:1:59",
    31                "nodes": [
    32                  {
    33                    "map_key": {
    34                      "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,1:2:7-3:3:23",
    35                      "key": {
    36                        "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,1:2:7-1:3:8",
    37                        "path": [
    38                          {
    39                            "unquoted_string": {
    40                              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,1:2:7-1:3:8",
    41                              "value": [
    42                                {
    43                                  "string": "b",
    44                                  "raw_string": "b"
    45                                }
    46                              ]
    47                            }
    48                          }
    49                        ]
    50                      },
    51                      "primary": {},
    52                      "value": {
    53                        "map": {
    54                          "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,1:5:10-3:3:23",
    55                          "nodes": [
    56                            {
    57                              "map_key": {
    58                                "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:4:16-2:7:19",
    59                                "key": {
    60                                  "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:4:16-2:7:19",
    61                                  "path": [
    62                                    {
    63                                      "unquoted_string": {
    64                                        "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:4:16-2:5:17",
    65                                        "value": [
    66                                          {
    67                                            "string": "_",
    68                                            "raw_string": "_"
    69                                          }
    70                                        ]
    71                                      }
    72                                    },
    73                                    {
    74                                      "unquoted_string": {
    75                                        "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:6:18-2:7:19",
    76                                        "value": [
    77                                          {
    78                                            "string": "c",
    79                                            "raw_string": "c"
    80                                          }
    81                                        ]
    82                                      }
    83                                    }
    84                                  ]
    85                                },
    86                                "primary": {},
    87                                "value": {}
    88                              }
    89                            }
    90                          ]
    91                        }
    92                      }
    93                    }
    94                  },
    95                  {
    96                    "map_key": {
    97                      "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,4:2:26-8:3:57",
    98                      "key": {
    99                        "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,4:2:26-4:3:27",
   100                        "path": [
   101                          {
   102                            "unquoted_string": {
   103                              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,4:2:26-4:3:27",
   104                              "value": [
   105                                {
   106                                  "string": "c",
   107                                  "raw_string": "c"
   108                                }
   109                              ]
   110                            }
   111                          }
   112                        ]
   113                      },
   114                      "primary": {},
   115                      "value": {
   116                        "map": {
   117                          "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,4:5:29-8:3:57",
   118                          "nodes": [
   119                            {
   120                              "map_key": {
   121                                "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,5:4:35-7:5:53",
   122                                "key": {
   123                                  "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,5:4:35-5:5:36",
   124                                  "path": [
   125                                    {
   126                                      "unquoted_string": {
   127                                        "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,5:4:35-5:5:36",
   128                                        "value": [
   129                                          {
   130                                            "string": "e",
   131                                            "raw_string": "e"
   132                                          }
   133                                        ]
   134                                      }
   135                                    }
   136                                  ]
   137                                },
   138                                "primary": {},
   139                                "value": {
   140                                  "map": {
   141                                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,5:7:38-7:5:53",
   142                                    "nodes": [
   143                                      {
   144                                        "map_key": {
   145                                          "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,6:6:46-6:7:47",
   146                                          "key": {
   147                                            "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,6:6:46-6:7:47",
   148                                            "path": [
   149                                              {
   150                                                "unquoted_string": {
   151                                                  "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,6:6:46-6:7:47",
   152                                                  "value": [
   153                                                    {
   154                                                      "string": "f",
   155                                                      "raw_string": "f"
   156                                                    }
   157                                                  ]
   158                                                }
   159                                              }
   160                                            ]
   161                                          },
   162                                          "primary": {},
   163                                          "value": {}
   164                                        }
   165                                      }
   166                                    ]
   167                                  }
   168                                }
   169                              }
   170                            }
   171                          ]
   172                        }
   173                      }
   174                    }
   175                  }
   176                ]
   177              }
   178            }
   179          }
   180        }
   181      ]
   182    },
   183    "root": {
   184      "id": "",
   185      "id_val": "",
   186      "attributes": {
   187        "label": {
   188          "value": ""
   189        },
   190        "labelDimensions": {
   191          "width": 0,
   192          "height": 0
   193        },
   194        "style": {},
   195        "near_key": null,
   196        "shape": {
   197          "value": ""
   198        },
   199        "direction": {
   200          "value": ""
   201        },
   202        "constraint": null
   203      },
   204      "zIndex": 0
   205    },
   206    "edges": null,
   207    "objects": [
   208      {
   209        "id": "a",
   210        "id_val": "a",
   211        "references": [
   212          {
   213            "key": {
   214              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,0:0:0-0:1:1",
   215              "path": [
   216                {
   217                  "unquoted_string": {
   218                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,0:0:0-0:1:1",
   219                    "value": [
   220                      {
   221                        "string": "a",
   222                        "raw_string": "a"
   223                      }
   224                    ]
   225                  }
   226                }
   227              ]
   228            },
   229            "key_path_index": 0,
   230            "map_key_edge_index": -1
   231          }
   232        ],
   233        "attributes": {
   234          "label": {
   235            "value": "a"
   236          },
   237          "labelDimensions": {
   238            "width": 0,
   239            "height": 0
   240          },
   241          "style": {},
   242          "near_key": null,
   243          "shape": {
   244            "value": "rectangle"
   245          },
   246          "direction": {
   247            "value": ""
   248          },
   249          "constraint": null
   250        },
   251        "zIndex": 0
   252      },
   253      {
   254        "id": "b",
   255        "id_val": "b",
   256        "references": [
   257          {
   258            "key": {
   259              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,1:2:7-1:3:8",
   260              "path": [
   261                {
   262                  "unquoted_string": {
   263                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,1:2:7-1:3:8",
   264                    "value": [
   265                      {
   266                        "string": "b",
   267                        "raw_string": "b"
   268                      }
   269                    ]
   270                  }
   271                }
   272              ]
   273            },
   274            "key_path_index": 0,
   275            "map_key_edge_index": -1
   276          }
   277        ],
   278        "attributes": {
   279          "label": {
   280            "value": "b"
   281          },
   282          "labelDimensions": {
   283            "width": 0,
   284            "height": 0
   285          },
   286          "style": {},
   287          "near_key": null,
   288          "shape": {
   289            "value": "rectangle"
   290          },
   291          "direction": {
   292            "value": ""
   293          },
   294          "constraint": null
   295        },
   296        "zIndex": 0
   297      },
   298      {
   299        "id": "c",
   300        "id_val": "c",
   301        "references": [
   302          {
   303            "key": {
   304              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:4:16-2:7:19",
   305              "path": [
   306                {
   307                  "unquoted_string": {
   308                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:4:16-2:5:17",
   309                    "value": [
   310                      {
   311                        "string": "_",
   312                        "raw_string": "_"
   313                      }
   314                    ]
   315                  }
   316                },
   317                {
   318                  "unquoted_string": {
   319                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,2:6:18-2:7:19",
   320                    "value": [
   321                      {
   322                        "string": "c",
   323                        "raw_string": "c"
   324                      }
   325                    ]
   326                  }
   327                }
   328              ]
   329            },
   330            "key_path_index": 1,
   331            "map_key_edge_index": -1
   332          },
   333          {
   334            "key": {
   335              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,4:2:26-4:3:27",
   336              "path": [
   337                {
   338                  "unquoted_string": {
   339                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,4:2:26-4:3:27",
   340                    "value": [
   341                      {
   342                        "string": "c",
   343                        "raw_string": "c"
   344                      }
   345                    ]
   346                  }
   347                }
   348              ]
   349            },
   350            "key_path_index": 0,
   351            "map_key_edge_index": -1
   352          }
   353        ],
   354        "attributes": {
   355          "label": {
   356            "value": "c"
   357          },
   358          "labelDimensions": {
   359            "width": 0,
   360            "height": 0
   361          },
   362          "style": {},
   363          "near_key": null,
   364          "shape": {
   365            "value": "rectangle"
   366          },
   367          "direction": {
   368            "value": ""
   369          },
   370          "constraint": null
   371        },
   372        "zIndex": 0
   373      },
   374      {
   375        "id": "e",
   376        "id_val": "e",
   377        "references": [
   378          {
   379            "key": {
   380              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,5:4:35-5:5:36",
   381              "path": [
   382                {
   383                  "unquoted_string": {
   384                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,5:4:35-5:5:36",
   385                    "value": [
   386                      {
   387                        "string": "e",
   388                        "raw_string": "e"
   389                      }
   390                    ]
   391                  }
   392                }
   393              ]
   394            },
   395            "key_path_index": 0,
   396            "map_key_edge_index": -1
   397          }
   398        ],
   399        "attributes": {
   400          "label": {
   401            "value": "e"
   402          },
   403          "labelDimensions": {
   404            "width": 0,
   405            "height": 0
   406          },
   407          "style": {},
   408          "near_key": null,
   409          "shape": {
   410            "value": "rectangle"
   411          },
   412          "direction": {
   413            "value": ""
   414          },
   415          "constraint": null
   416        },
   417        "zIndex": 0
   418      },
   419      {
   420        "id": "f",
   421        "id_val": "f",
   422        "references": [
   423          {
   424            "key": {
   425              "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,6:6:46-6:7:47",
   426              "path": [
   427                {
   428                  "unquoted_string": {
   429                    "range": "d2/testdata/d2oracle/TestMove/underscore_split_out.d2,6:6:46-6:7:47",
   430                    "value": [
   431                      {
   432                        "string": "f",
   433                        "raw_string": "f"
   434                      }
   435                    ]
   436                  }
   437                }
   438              ]
   439            },
   440            "key_path_index": 0,
   441            "map_key_edge_index": -1
   442          }
   443        ],
   444        "attributes": {
   445          "label": {
   446            "value": "f"
   447          },
   448          "labelDimensions": {
   449            "width": 0,
   450            "height": 0
   451          },
   452          "style": {},
   453          "near_key": null,
   454          "shape": {
   455            "value": "rectangle"
   456          },
   457          "direction": {
   458            "value": ""
   459          },
   460          "constraint": null
   461        },
   462        "zIndex": 0
   463      }
   464    ]
   465  },
   466  "err": "<nil>"
   467}

View as plain text