public function __construct()

in src/exceptions/InvalidChildrenException.hack [15:32]


  public function __construct(x\node $that, int $index) {
    parent::__construct(
      'Element `'.
      self::getElementName($that).
      '` was rendered with '.
      "invalid children.\n\n".
      $that->__getSourcePositionWithErrorDefaultForNull().
      "\n\n".
      'Verified '.
      $index.
      " children before failing.\n\n".
      "Children expected:\n".
      $that->__getChildrenDeclaration().
      "\n\n".
      "Children received:\n".
      $that->__getChildrenDescription(),
    );
  }