in src/CodegenWithAttributes.hack [45:65]
final public function renderAttributes(): ?string {
$attributes = $this->getAttributes();
if (C\is_empty($attributes)) {
return null;
}
return '<<'.
Str\join(
Dict\map_with_key(
$attributes,
($name, $params) ==> {
if (C\is_empty($params)) {
return $name;
}
return $name.'('.Str\join($params, ', ').')';
},
),
', '
).
'>>';
}