in src/core/Element.hack [28:41]
final public async function toStringAsync(): Awaitable<string> {
if ($this->__isRendered) {
throw new UseAfterRenderException(
'Attempted to render XHP element twice',
);
}
try {
$that = await $this->__flushRenderedRootElement();
return await $that->toStringAsync();
} catch (UseAfterRenderException $e) {
$e->__viaXHPPath(static::class);
throw $e;
}
}