private static function getShapeTypeText()

in src/definitions/ScannedTypehint.hack [164:179]


  private static function getShapeTypeText(
    string $relative_to_namespace,
    int $options,
    vec<ScannedShapeField> $fields,
  ): string {
    return Vec\map(
      $fields,
      $field ==> Str\format(
        '%s => %s',
        $field->getName()->getAST() |> ast_without_trivia($$)->getCode(),
        $field->getValueType()->getTypeText($relative_to_namespace, $options),
      ),
    )
      |> Str\join($$, ', ')
      |> 'shape('.$$.')';
  }