in src/core/Node.hack [192:198]
public function getFirstChildx(): \XHPChild {
$child = $this->getFirstChild();
if ($child is nonnull) {
return $child;
}
invariant_violation('%s called on element with no children', __FUNCTION__);
}