private function getDataForTrace()

in src/InspectorCLI.hack [156:169]


  private function getDataForTrace(vec<(HHAST\Node, arraykey)> $trace): string {
    // This data is all included in the CSS class names, but there's a /lot/ of
    // other stuff in there. Provide something less noisy for the JS
    return Vec\map($trace, $entry ==> {
      list($node, $field) = $entry;
      return Str\format(
        '%s.%d.%s',
        \get_class($node) |> Str\split($$, '\\') |> C\lastx($$),
        $node->getUniqueID(),
        (string)$field,
      );
    })
      |> Str\join($$, ' ');
  }