protected function buildXHPAttributes()

in src/CodegenClassish.hack [333:347]


  protected function buildXHPAttributes(HackBuilder $builder): void {
    if (C\is_empty($this->xhpAttributes)) {
      return;
    }
    $builder->ensureNewLine();
    $builder->addLine('attribute')->indent();

    $attributes = $this->xhpAttributes;
    $last = VecP\pop_backx(inout $attributes);
    foreach($attributes as $attr) {
      $builder->addRenderer($attr);
      $builder->addLine(',');
    }
    $builder->addRenderer($last)->addLine(';')->unindent();
  }