in src/CodegenXHPAttribute.hack [99:114]
public function appendToBuilder(HackBuilder $builder): HackBuilder {
$value = $this->value;
return $builder
->addDocBlock($this->comment)
->addIf($this->type is nonnull, ($this->type ?? '').' ')
->add($this->name)
->addIf($this->value is nonnull, ' = '.($value ?? ''))
->addIf(
$this->decorator is nonnull,
' '.
xhp_attribute_decorator_to_string(
$this->decorator ?? XHPAttributeDecorator::REQUIRED,
),
);
}